All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lukas Wunner <lukas@wunner.de>
To: Marco Sousa <marcomsousa@gmail.com>
Cc: Mario Limonciello <superm1@kernel.org>,
	Mika Westerberg <mika.westerberg@linux.intel.com>,
	linux-usb@vger.kernel.org, linux-pci@vger.kernel.org,
	linux-pm@vger.kernel.org, westeri@kernel.org,
	bhelgaas@google.com, rafael@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: Tue, 1 Dec 2026 23:04:14 +0100	[thread overview]
Message-ID: <aw9EXuqWwJitZ8Ku@wunner.de> (raw)
In-Reply-To: <CAHRsBfbuFpGKgvWpbZ2Mq=ZqK3uiKCuA_1-d6uRkk0F5AjLuxA@mail.gmail.com>

On Tue, Dec 01, 2026 at 10:52:45PM +0100, Marco Sousa wrote:
>    - At 9.615 s, GPE 0x1A (\_GPE._L1A) DID fire once (gpe1A counter = 1)
>      when the dock's USB2 hub woke xhci_hcd 0000:c6:00.3 (XHC3), briefly
>      waking 0000:00:01.1 to D0 (9.617 s) and back to D3cold (9.769 s) —
>      about 1 second BEFORE tb_tunnel_pci() activated 0:5 <-> 2:9 (PCI).

In drivers/pci/pcie/portdrv.c, pcie_portdrv_probe() calls
pm_runtime_set_autosuspend_delay() with 100, which sets the default
delay to 100 msec before the port can runtime suspend.  This can be
changed from user space via the power/autosuspend_delay_ms knob in
the PCIe port's sysfs directory.

Does increasing the timeout to > 1 sec avoid the issue?  Maybe it
just takes longer for the tunnel to be established and the PCI adapter
to see the link go up.

It may be necessary to enforce a higher minimum delay in that case.

Thanks,

Lukas

  reply	other threads:[~2026-12-01 22:04 UTC|newest]

Thread overview: 8+ 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
2026-11-28  7:55   ` Marco Sousa
2026-11-30  6:33     ` Mika Westerberg
2026-11-30 23:23       ` Mario Limonciello
2026-12-01 21:52         ` Marco Sousa
2026-12-01 22:04           ` Lukas Wunner [this message]
2026-12-01 22:07           ` Mario Limonciello

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=aw9EXuqWwJitZ8Ku@wunner.de \
    --to=lukas@wunner.de \
    --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=marcomsousa@gmail.com \
    --cc=mika.westerberg@linux.intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.