diff options
| author | Bjorn Helgaas <bhelgaas@google.com> | 2025-02-15 03:03:01 +0300 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2025-03-10 21:41:47 +0300 |
| commit | a7eb9124d92be1330afd18c98e4f28f297b50cb8 (patch) | |
| tree | 4de22108cc97c5787754d0ce6260d937e62f42ed /tools/perf/scripts/python | |
| parent | 3f8c4959fc18e477801386a625e726c59f52a2c4 (diff) | |
| download | linux-a7eb9124d92be1330afd18c98e4f28f297b50cb8.tar.xz | |
PCI: Cache offset of Resizable BAR capability
Previously most resizable BAR interfaces (pci_rebar_get_possible_sizes(),
pci_rebar_set_size(), etc) as well as pci_restore_state() searched config
space for a Resizable BAR capability. Most devices don't have such a
capability, so this is wasted effort, especially for pci_restore_state().
Search for a Resizable BAR capability once at enumeration-time and cache
the offset so we don't have to search every time we need it. No functional
change intended.
Link: https://lore.kernel.org/r/20250215000301.175097-3-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
