Skip to content

PCI/PM: Keep hotplug ports that can't wake from D3hot out of D3

Aviv Bakal linux-pci lkml stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Patch 1: check a copy of NO_D3 taken in pci_pm_init(), so pci_bridge_d3_possible() does not change when a FINAL fixup sets the flag after portdrv has probed.
- Patch 2: reuse quirk_no_ata_d3(), renamed to quirk_no_d3().

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3PCI/PM: Honor PCI_DEV_FLAGS_NO_D3 in pci_bridge_d3_possible()drivers/pci/pci.c include/linux/pci.h+11 -01 reply
2/3PCI: Avoid runtime D3 on Amazon PCIe switch portsdrivers/pci/quirks.c+14 -60 replies
3/3PCI/PM: Keep hotplug ports out of D3 if they can't signal PME from D3hotdrivers/pci/pci.c+11 -10 replies

Reviews trailers per patch

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

PatchBjoern Doebel
SeriesT-b
1/3
2/3
3/3

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

Read the v2 thread

Cover letter [PATCH v2 0/3] PCI/PM: Keep hotplug ports that can't wake from D3hot out of D3

d4c79b63d82d ("PCI: Allow D3 for native hotplug-capable Root Ports on non-x86 platforms") lets native pciehp ports runtime suspend to D3hot on non-x86. The PCIe switch ports on AWS instances advertise PME from D3hot but do not send it, so hotplug events such as an ENI attach are lost on Graviton. x86 keeps the old logic, so the problem does not show up there.

Patches 1-2 handle existing switch devices, which advertise PME:
patch 1 makes pci_bridge_d3_possible() honor PCI_DEV_FLAGS_NO_D3, and patch 2 sets that flag on the Amazon switch ports.

Patch 3 handles switch devices that advertise no PME from D3hot: such hotplug ports are kept out of D3.

Changes in v2:
- Patch 1: check a copy of NO_D3 taken in pci_pm_init(), so pci_bridge_d3_possible() does not change when a FINAL fixup sets the flag after portdrv has probed.
- Patch 2: reuse quirk_no_ata_d3(), renamed to quirk_no_d3().

v1: https://lore.kernel.org/all/[email protected]/

Aviv Bakal (3):
PCI/PM: Honor PCI_DEV_FLAGS_NO_D3 in pci_bridge_d3_possible()
PCI: Avoid runtime D3 on Amazon PCIe switch ports PCI/PM: Keep hotplug ports out of D3 if they can't signal PME from
D3hot

 drivers/pci/pci.c    | 22 +++++++++++++++++++++-
 drivers/pci/quirks.c | 20 ++++++++++++++------
 include/linux/pci.h  |  1 +
 3 files changed, 36 insertions(+), 7 deletions(-)

base-commit: 23c62304dde29abe92013d85910d03a77dada35d

Signature · 1 line
2.50.1