* [REGRESSION] PCI: d4c79b63d82d4 "Allow D3 for native Hotplug capable Root Ports on non-x86" silently breaks surprise hotplug on empty slots
@ 2026-11-23 14:44 Bjoern Doebel
2026-11-23 18:23 ` Bjoern Doebel
0 siblings, 1 reply; 2+ messages in thread
From: Bjoern Doebel @ 2026-11-23 14:44 UTC (permalink / raw)
To: Bjorn Helgaas, Manivannan Sadhasivam
Cc: Lukas Wunner, Konrad Dybcio, Krishna Chaitanya Chundru,
Neil Armstrong, Lorenzo Pieralisi, Krzysztof Wilczyński,
linux-pci, linux-kernel
Hi Bjorn, Manivannan,
Commit d4c79b63d82d4 ("PCI: Allow D3 for native Hotplug capable Root
Ports on non-x86 platforms") breaks surprise hotplug on empty slots on
AWS Graviton bare metal. I didn't find this failure mode covered in
the existing discussion, but am leaving links to related reports
at the end.
Observation (m7g.metal, aarch64, native PCIe hotplug via _OSC): ENI
(Elastic Network Interface) attachment hot-adds an ENA NIC behind one
of the hotplug-capable Switch Downstream Ports, which are all empty at
boot. Since d4c79b63d82d4, those ports runtime-suspend to D3hot shortly
after boot (all 45 empty ports report "suspended" in
power/runtime_status), and a subsequent ENI attach produces no event
at all: no "Card present" from pciehp, no ACPI/GPE activity, no new
device, no error anywhere. Ports with live children stay awake, so
only devices attached after boot are affected.
The device itself is fully present behind the suspended port: with the
ENI attached and the event lost, a manual
echo 1 > /sys/bus/pci/rescan
enumerates and probes it normally. So the hot-add completes in hardware,
but we lose the event delivery. From code reading, the port suspends
with the hotplug interrupt disabled (pciehp_runtime_suspend() ->
pciehp_disable_interrupt()) and nothing wakes a port with an empty slot.
Functionality works on 7.2. It also works if I manually disable D3
via pcie_port_pm=off and if I revert d4c79b63d82d4.
kernel empty ports result
------------------------------------------ ------------- ----------
7.2-based (before this commit) active PASS
7.3-based (contains this commit) suspended FAIL
7.3-based + pcie_port_pm=off active PASS
7.3-based, only this commit reverted active PASS
This failure reproduces deterministically in our CI.
Related reports referencing this commit:
- system suspend crash on Qualcomm SC8280XP CRD:
https://lore.kernel.org/all/3eeb3465-a1e6-4fdc-8019-3907d9c55691@gmail.com/
- commit recommended as a D3cold fix in the qcom hotplug thread:
https://lore.kernel.org/linux-pci/1ae8d4f0-1c32-4dbd-a18e-7a2ce2627efc@oss.qualcomm.com/
Happy to try out any suggestions on how to proceed fixing this.
Best,
Bjoern
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [REGRESSION] PCI: d4c79b63d82d4 "Allow D3 for native Hotplug capable Root Ports on non-x86" silently breaks surprise hotplug on empty slots
2026-11-23 14:44 [REGRESSION] PCI: d4c79b63d82d4 "Allow D3 for native Hotplug capable Root Ports on non-x86" silently breaks surprise hotplug on empty slots Bjoern Doebel
@ 2026-11-23 18:23 ` Bjoern Doebel
0 siblings, 0 replies; 2+ messages in thread
From: Bjoern Doebel @ 2026-11-23 18:23 UTC (permalink / raw)
To: Bjorn Helgaas, Manivannan Sadhasivam
Cc: Lukas Wunner, Konrad Dybcio, Krishna Chaitanya Chundru,
Neil Armstrong, Lorenzo Pieralisi, Krzysztof Wilczyński,
linux-pci, linux-kernel
Hi again,
turns out I missed that our colleagues from the ENA side already
submitted a series to fix this:
https://lore.kernel.org/all/20261116165110.2773301-1-avivb@amazon.com/
I confirmed this fixes my observed behavior.
Sorry for the noise.
Best,
Bjoern
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-23 18:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 14:44 [REGRESSION] PCI: d4c79b63d82d4 "Allow D3 for native Hotplug capable Root Ports on non-x86" silently breaks surprise hotplug on empty slots Bjoern Doebel
2026-11-23 18:23 ` Bjoern Doebel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®