Linux Power Management development
 help / color / mirror / Atom feed
From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: Marco Sousa <marcomsousa@gmail.com>
Cc: linux-usb@vger.kernel.org, linux-pci@vger.kernel.org,
	linux-pm@vger.kernel.org, westeri@kernel.org,
	bhelgaas@google.com, lukas@wunner.de, rafael@kernel.org,
	superm1@kernel.org, Shyam-sundar.S-k@amd.com
Subject: Re: [BUG] AMD Strix Point USB4 (1022:150a): mid-s2idle pciehp hot-add causes D3cold->D0 failure and hard hang
Date: Thu, 26 Nov 2026 07:48:37 +0100	[thread overview]
Message-ID: <20261126064837.GK191152@black.igk.intel.com> (raw)
In-Reply-To: <CAHRsBfbYF3wocif+a0FRyBBkhcL+FtKF2qm=ne0jgLCzL8cH9w@mail.gmail.com>

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.

      reply	other threads:[~2026-11-26  6:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261126064837.GK191152@black.igk.intel.com \
    --to=mika.westerberg@linux.intel.com \
    --cc=Shyam-sundar.S-k@amd.com \
    --cc=bhelgaas@google.com \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=lukas@wunner.de \
    --cc=marcomsousa@gmail.com \
    --cc=rafael@kernel.org \
    --cc=superm1@kernel.org \
    --cc=westeri@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox