Linux PCI subsystem 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; 4+ 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] 4+ messages in thread

* Re: [BUG] AMD Strix Point USB4 (1022:150a): mid-s2idle pciehp hot-add causes D3cold->D0 failure and hard hang
  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
  2026-11-28  7:55   ` Marco Sousa
  0 siblings, 1 reply; 4+ messages in thread
From: Mika Westerberg @ 2026-11-26  6:48 UTC (permalink / raw)
  To: Marco Sousa
  Cc: linux-usb, linux-pci, linux-pm, westeri, bhelgaas, lukas, rafael,
	superm1, Shyam-sundar.S-k

Hi,

On Wed, Nov 25, 2026 at 10:40:56PM +0100, Marco Sousa wrote:
> 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?

I would start checking if you are running the latest BIOS for this machine?
This pretty much sounds like that something is mising on the BIOS side. The
AMD guys that are in Cc: hopefully can help to check if the "power
contract" _DSD is in place. It looks like it from the above but better to
check.

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

* Re: [BUG] AMD Strix Point USB4 (1022:150a): mid-s2idle pciehp hot-add causes D3cold->D0 failure and hard hang
  2026-11-26  6:48 ` Mika Westerberg
@ 2026-11-28  7:55   ` Marco Sousa
  2026-11-30  6:33     ` Mika Westerberg
  0 siblings, 1 reply; 4+ messages in thread
From: Marco Sousa @ 2026-11-28  7:55 UTC (permalink / raw)
  To: Mika Westerberg
  Cc: linux-usb, linux-pci, linux-pm, westeri, bhelgaas, lukas, rafael,
	superm1, Shyam-sundar.S-k

Hi Mika,

Thanks for the quick reply!

1. BIOS version:
   Confirmed, UM5606WA.321 (built 2025-10-14, published 2025-11-20 on
ASUS Support) is the latest official BIOS for the ASUS Zenbook S 16
UM5606WA.

2. ACPI dump & _DSD check:
   I captured an acpidump (MSDM stripped) and extracted the relevant
   INTGPPC_ SSDT ASL blocks and attached both to Bug 222327:
     https://bugzilla.kernel.org/show_bug.cgi?id=222327

   Quick summary of what is in SSDT "INTGPPC_" for GPP0 (0000:00:01.1)
   and NHI0 (0000:c6:00.5):
   - \_SB.PCI0.GPP0 (and GPP1) has all four _DSD UUIDs:
     * fdf06fad-f744-4451-bb64-ecd792215b10:
FundamentalDeviceResetTriggeredOnD3ToD0 = 1
     * 6211e2c0-58a3-4af3-90e1-927a4e0c55a4: HotPlugSupportInD3 = 1
     * efcc06cc-73ac-4bc3-bff0-76143807c389: ExternalFacingPort = 1, UID = 0
     * daffd814-6eba-4d8c-8a91-bc9bbf4aa301: usb4-host-interface =
\_SB.PCI0.GPPC.NHI0, usb4-port-number = 1
     * _S0W returns \P4D3 (0x04 / D3cold), _PRW returns {0x1A, 0x04},
       _PR0/_PR3 = PWRS (dummy PW3S flag).
   - \_SB.PCI0.GPPC.XHC3.RHUB.PRT2 (and XHC4) also has usb4-host-interface
     pointing to NHI0 (and NHI1).
   - \_SB.PCI0.GPPC.NHI0 (and NHI1) has NO _DSD block at all; _S0W returns
     \G5D3 (0x04), _PRW returns {0x1A, 0x00} (comment says {0x1A, 0x04}),
     and _PS3 calls CpmSendPmeTurnOff(0, 1, 1) + \_SB.ALIB(0x14, 1).
   - \_GPE._L1A exists and emits Notify(..., 0x02) on GPPC, NHI0/1,
     XHC0/3/4, GPP0/1, and SWUS. However, in Linux
     /sys/firmware/acpi/interrupts/gpe1A shows:
       0  EN  enabled  unmasked
     — GPE 0x1A never fires when tb_tunnel_pci() activates 0:5 <-> 2:9
     while 0000:00:01.1 is in D3cold.

Mario / Shyam — could you check the attached acpidump / INTGPPC_
excerpt on Bug 222327 to see if the USB4 power-contract / GPE 0x1A
wake wiring is complete, or if something is missing in ASUS BIOS 321?

Thanks,

-------------------------------------
Marco Sousa

El jue, 26 nov 2026 a las 7:48, Mika Westerberg
(<mika.westerberg@linux.intel.com>) escribió:
>
> Hi,
>
> On Wed, Nov 25, 2026 at 10:40:56PM +0100, Marco Sousa wrote:
> > 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?
>
> I would start checking if you are running the latest BIOS for this machine?
> This pretty much sounds like that something is mising on the BIOS side. The
> AMD guys that are in Cc: hopefully can help to check if the "power
> contract" _DSD is in place. It looks like it from the above but better to
> check.

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

* Re: [BUG] AMD Strix Point USB4 (1022:150a): mid-s2idle pciehp hot-add causes D3cold->D0 failure and hard hang
  2026-11-28  7:55   ` Marco Sousa
@ 2026-11-30  6:33     ` Mika Westerberg
  0 siblings, 0 replies; 4+ messages in thread
From: Mika Westerberg @ 2026-11-30  6:33 UTC (permalink / raw)
  To: Marco Sousa
  Cc: linux-usb, linux-pci, linux-pm, westeri, bhelgaas, lukas, rafael,
	superm1, Shyam-sundar.S-k

Hi,

On Sat, Nov 28, 2026 at 08:55:43AM +0100, Marco Sousa wrote:
> Hi Mika,
> 
> Thanks for the quick reply!
> 
> 1. BIOS version:
>    Confirmed, UM5606WA.321 (built 2025-10-14, published 2025-11-20 on
> ASUS Support) is the latest official BIOS for the ASUS Zenbook S 16
> UM5606WA.
> 
> 2. ACPI dump & _DSD check:
>    I captured an acpidump (MSDM stripped) and extracted the relevant
>    INTGPPC_ SSDT ASL blocks and attached both to Bug 222327:
>      https://bugzilla.kernel.org/show_bug.cgi?id=222327
> 
>    Quick summary of what is in SSDT "INTGPPC_" for GPP0 (0000:00:01.1)
>    and NHI0 (0000:c6:00.5):
>    - \_SB.PCI0.GPP0 (and GPP1) has all four _DSD UUIDs:
>      * fdf06fad-f744-4451-bb64-ecd792215b10:
> FundamentalDeviceResetTriggeredOnD3ToD0 = 1
>      * 6211e2c0-58a3-4af3-90e1-927a4e0c55a4: HotPlugSupportInD3 = 1
>      * efcc06cc-73ac-4bc3-bff0-76143807c389: ExternalFacingPort = 1, UID = 0
>      * daffd814-6eba-4d8c-8a91-bc9bbf4aa301: usb4-host-interface =
> \_SB.PCI0.GPPC.NHI0, usb4-port-number = 1

This looks correct to me.

>      * _S0W returns \P4D3 (0x04 / D3cold), _PRW returns {0x1A, 0x04},
>        _PR0/_PR3 = PWRS (dummy PW3S flag).
>    - \_SB.PCI0.GPPC.XHC3.RHUB.PRT2 (and XHC4) also has usb4-host-interface
>      pointing to NHI0 (and NHI1).
>    - \_SB.PCI0.GPPC.NHI0 (and NHI1) has NO _DSD block at all; _S0W returns
>      \G5D3 (0x04), _PRW returns {0x1A, 0x00} (comment says {0x1A, 0x04}),
>      and _PS3 calls CpmSendPmeTurnOff(0, 1, 1) + \_SB.ALIB(0x14, 1).
>    - \_GPE._L1A exists and emits Notify(..., 0x02) on GPPC, NHI0/1,
>      XHC0/3/4, GPP0/1, and SWUS. However, in Linux
>      /sys/firmware/acpi/interrupts/gpe1A shows:
>        0  EN  enabled  unmasked
>      — GPE 0x1A never fires when tb_tunnel_pci() activates 0:5 <-> 2:9
>      while 0000:00:01.1 is in D3cold.

I do remember that some AMD systems had similar issue? That the hotplug/PME
GPE did not trigger. Not sure if that was fixed on the BIOS side. Anyways
let's wait for the AMD folks to chime in.

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

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

Thread overview: 4+ 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
2026-11-28  7:55   ` Marco Sousa
2026-11-30  6:33     ` Mika Westerberg

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