[PATCH v2 0/2] PCI: Avoid capability searches in save/restore state

Bjorn Helgaas posted 2 patches 10 months, 1 week ago
drivers/pci/pci.c       | 36 +++++++++++++++++++++---------------
drivers/pci/pci.h       |  1 +
drivers/pci/pcie/aspm.c | 15 ++++++++-------
drivers/pci/probe.c     |  1 +
include/linux/pci.h     |  1 +
5 files changed, 32 insertions(+), 22 deletions(-)
[PATCH v2 0/2] PCI: Avoid capability searches in save/restore state
Posted by Bjorn Helgaas 10 months, 1 week ago
From: Bjorn Helgaas <bhelgaas@google.com>

Reduce the number of times we search config space for PCI capabilities when
saving and restoring device state.

Bjorn Helgaas (2):
  PCI: Avoid pointless capability searches
  PCI: Cache offset of Resizable BAR capability

 drivers/pci/pci.c       | 36 +++++++++++++++++++++---------------
 drivers/pci/pci.h       |  1 +
 drivers/pci/pcie/aspm.c | 15 ++++++++-------
 drivers/pci/probe.c     |  1 +
 include/linux/pci.h     |  1 +
 5 files changed, 32 insertions(+), 22 deletions(-)

v2 changes:
  - Drop VC change that broke saving state (thanks, Ilpo)

v1: https://lore.kernel.org/r/20250208050329.1092214-1-helgaas@kernel.org

-- 
2.34.1
Re: [PATCH v2 0/2] PCI: Avoid capability searches in save/restore state
Posted by Bjorn Helgaas 10 months ago
On Fri, Feb 14, 2025 at 06:02:59PM -0600, Bjorn Helgaas wrote:
> From: Bjorn Helgaas <bhelgaas@google.com>
> 
> Reduce the number of times we search config space for PCI capabilities when
> saving and restoring device state.
> 
> Bjorn Helgaas (2):
>   PCI: Avoid pointless capability searches
>   PCI: Cache offset of Resizable BAR capability
> 
>  drivers/pci/pci.c       | 36 +++++++++++++++++++++---------------
>  drivers/pci/pci.h       |  1 +
>  drivers/pci/pcie/aspm.c | 15 ++++++++-------
>  drivers/pci/probe.c     |  1 +
>  include/linux/pci.h     |  1 +
>  5 files changed, 32 insertions(+), 22 deletions(-)
> 
> v2 changes:
>   - Drop VC change that broke saving state (thanks, Ilpo)
> 
> v1: https://lore.kernel.org/r/20250208050329.1092214-1-helgaas@kernel.org

Applied to pci/enumeration with Ilpo's reviewed-by for v6.15.