Linux Power Management development
 help / color / mirror / Atom feed
* [BUG] AMD Strix Point USB4 (1022:150a): mid-s2idle pciehp hot-add causes D3cold->D0 failure and hard hang
@ 2026-11-25 21:40 Marco Sousa
  2026-11-26  6:48 ` Mika Westerberg
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Sousa @ 2026-11-25 21:40 UTC (permalink / raw)
  To: linux-usb, linux-pci, linux-pm
  Cc: westeri, bhelgaas, lukas, rafael, superm1, Shyam-sundar.S-k

Hi all,
I filed a bug report with full sanitized dmesg logs, lspci topology,
controlled A/B test results, and a thunderbolt.dyndbg=+p boot log here:

  https://bugzilla.kernel.org/show_bug.cgi?id=222327

Short summary:
On an ASUS Zenbook S 16 UM5606WA (AMD Ryzen AI 9 HX 370 / Strix Point,
BIOS UM5606WA.321, s2idle-only) docked to an HP Thunderbolt Dock G4
(Intel Goshen Ridge 8086:0b26 + igc 8086:5502), reproduced on vanilla
6.18.65-lts and 7.2.4..7.3.6-arch1-1:

1. At boot, tb_acpi_add_link() creates the device link from 0000:00:01.1
   [1022:150a] (consumer) to 0000:c6:00.5 [1022:151c] (supplier):
     [ 5.005536] thunderbolt 0000:c6:00.5: created link from 0000:00:01.1
2. Host router reset tears down the firmware PCIe tunnel:
     [ 5.008763] thunderbolt 0000:c6:00.5: 0: resetting
     [ 5.008813] pcieport 0000:00:01.1: pciehp: Slot(0): Link Down
     [ 5.008895] pcieport 0000:00:01.1: pciehp: Slot(0): Card not present
   0000:00:01.1 then runtime-suspends into D3cold (power resource
   \_SB_.PCI0.GPP0.PWRS).
3. After dock authorization, tb_tunnel_pci() activates the PCIe tunnel
   cleanly:
     [ 9.429077] thunderbolt 0000:c6:00.5: 0:5 <-> 2:9 (PCI): activating
     [ 9.430721] thunderbolt 0000:c6:00.5: PCIe Down path activation complete
     [ 9.432080] thunderbolt 0000:c6:00.5: PCIe Up path activation complete
   Yet 0000:00:01.1 remains asleep in D3cold and never wakes to enumerate
   0000:01:00.0 / 0000:60:00.0 (igc).
4. On the first s2idle entry, pci_pm_suspend() runtime-resumes
   0000:00:01.1 mid-suspend, invoking pciehp_runtime_resume() ->
   pciehp_check_presence() concurrently with device_suspend:
     pci 0000:01:00.0: PM: parent 0000:00:01.1 should not be sleeping
     pcieport 0000:02:0x.0: Unable to change power state from D3cold
to D0, device inaccessible
     pcieport 0000:02:0x.0: pciehp: Slot #8191 ... /
pcie_do_write_cmd: no response from device
     igc 0000:60:00.0: PCIe link lost, device now detached
   Entering s2idle in this unenumerated/wedged state causes a complete
   hard hang requiring a ~30 s power-button EC reset.
5. Controlled A/B proof on 7.3.6: waking 0000:00:01.1 from D3cold once
   before suspend (power/control=on + lspci, then restoring auto) makes
   pciehp immediately see Slot(0): Card present / Link Up, enumerates
   0000:01:00.0 + igc, and makes s2idle 100% reliable with full hardware
   S0i3 residency (11-27 s, Last S0i3 Status: Success).

Also attached on Bug 222327 is a secondary drivers/thunderbolt/nhi.c:143
(ring_interrupt_active) WARNING + Call Trace seen on dock hot-unplug.

I have the hardware on my desk and am happy to write and test a patch.
Could you advise where the proper fix belongs?
- Should tb_tunnel_pci() runtime-resume the linked host PCIe root port
  when activating a PCIe tunnel?
- Should pciehp_runtime_resume() avoid hot-adding devices while system
  suspend is in progress?
- Or is 1022:150a expected to receive a hardware/ACPI wake from D3cold
  on tunnel activation?

Happy to collect any extra dumps (sudo lspci -vvnn, acpidump, amd-s2idle)
or test debug patches.

Thanks,
Marco

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-26  6:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 21:40 [BUG] AMD Strix Point USB4 (1022:150a): mid-s2idle pciehp hot-add causes D3cold->D0 failure and hard hang Marco Sousa
2026-11-26  6:48 ` Mika Westerberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox