diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2025-02-14 18:03:01 -0600 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2025-03-10 13:41:47 -0500 |
commit | a7eb9124d92be1330afd18c98e4f28f297b50cb8 (patch) | |
tree | 4de22108cc97c5787754d0ce6260d937e62f42ed /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 3f8c4959fc18e477801386a625e726c59f52a2c4 (diff) |
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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions