Skip to content

PCI/ASPM: Save/restore L1 PM Substates for suspend/resume

Bjorn Helgaas linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v7 Latest5 patches 7 repliesIn review

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5PCI/ASPM: Move pci_configure_ltr() to aspm.cdrivers/pci/pci.c drivers/pci/pci.h drivers/pci/pcie/aspm.c +1 more+79 -800 replies
2/5PCI/ASPM: Always build aspm.cdrivers/pci/pcie/Makefile drivers/pci/pcie/aspm.c+5 -12 replies
3/5PCI/ASPM: Move pci_save_ltr_state() to aspm.cdrivers/pci/pci.c drivers/pci/pci.h drivers/pci/pcie/aspm.c+45 -400 replies
4/5PCI/ASPM: Save L1 PM Substates Capability for suspend/resumedrivers/pci/pci.c drivers/pci/pci.h drivers/pci/pcie/aspm.c +2 more+119 -61 reply
5/5PCI/ASPM: Call pci_save_ltr_state() from pci_save_pcie_state()drivers/pci/pci.c+7 -70 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchTasev Nikola
SeriesT-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/5] PCI/ASPM: Save/restore L1 PM Substates for suspend/resume

From: Bjorn Helgaas <[email protected]>

This is some rework of David's series to preserve ASPM L1 substate configuration across suspend/resume.

We've had several attempts to make this work:

(unlabeled): https://lore.kernel.org/r/[email protected]
v5: https://lore.kernel.org/r/[email protected]
v4: https://lore.kernel.org/all/[email protected]/
v3: https://lore.kernel.org/linux-pci/[email protected]/
v2: https://lore.kernel.org/linux-pci/[email protected]/
v1: https://lore.kernel.org/linux-pci/[email protected]/

The most recent posting is the unlabeled one mentioned above, and I'm calling it v6 and this rework v7.

Changes since the unlabeled v6:

- Rename pci_save_aspm_state() to pci_save_aspm_l1ss_state() (this is the reason for opening this again, because Vidya's patch [1] had to do some incidental renaming).

- Rename pcie_restore_aspm_l1ss() to pci_restore_aspm_l1ss_state() to match.

- Move the PCI_EXP_LNKCTL_ASPMC from pci_restore_aspm_state() to pci_restore_pcie_state() so both writes are in the same place.

- Rename pci_aspm_get_l1ss() to pci_configure_aspm_l1ss() and add the save_buffer there as well.

- Split [1/5] into two patches: move pci_configure_ltr() and pci_bridge_reconfigure_ltr() to aspm.c, and build aspm.c unconditionally.

- Squash [2/5] and [3/5] since [2/5] didn't add any functionality itself so they seem like a single logical change.

[1] https://lore.kernel.org/r/[email protected]

David E. Box (5):
PCI/ASPM: Move pci_configure_ltr() to aspm.c PCI/ASPM: Always build aspm.c
PCI/ASPM: Move pci_save_ltr_state() to aspm.c PCI/ASPM: Save L1 PM Substates Capability for suspend/resume PCI/ASPM: Call pci_save_ltr_state() from pci_save_pcie_state()

 drivers/pci/pci.c         |  89 ++++------------
 drivers/pci/pci.h         |  13 ++-
 drivers/pci/pcie/Makefile |   2 +-
 drivers/pci/pcie/aspm.c   | 215 ++++++++++++++++++++++++++++++++++++++
 drivers/pci/probe.c       |  62 +----------
 include/linux/pci.h       |   2 +-
 6 files changed, 252 insertions(+), 131 deletions(-)
Signature · 1 line
2.34.1