diff options
| author | Logan Odell <loganodell@google.com> | 2026-09-10 10:36:48 -0700 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2026-09-28 14:51:52 -0500 |
| commit | ae43799529c480510dcc14bd0ed141a1d85b9259 (patch) | |
| tree | df87acd850e58fecc87a6d40bd644d4fc51b3bb1 /tools/perf/scripts/python | |
| parent | 7bff67d3d686be285b31b8b3d2b3739a5d4402b4 (diff) | |
PCI/IOV: Read VF config values that need not match PF
Per PCIe r7.0, sec 7.5.1.1.5 and 7.5.1.2.3, VF Revision IDs and Subsystem
IDs may differ from the PF's. Read these values from VF config space
instead of using cached values from VF 0.
Per 7.5.1.1.6 and 7.5.1.2.3, VF Class Codes and Subsystem Vendor IDs must
be the same as the PF's. Use the PF's value instead of reading from VF
config space.
Per 7.5.1.1.9, the Header Type for a VF must be 0, so hardcode that
assignment.
Fixes: cf0921bea66c ("PCI/IOV: Use VF0 cached config registers for other VFs")
Signed-off-by: Logan Odell <loganodell@google.com>
[bhelgaas: commit log, move "rev" decl inside block that uses it]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260910173648.1304517-1-loganodell@google.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
