All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Pecio <michal.pecio@gmail.com>
To: Martin Alderson <martinalderson@gmail.com>
Cc: Mathias Nyman <mathias.nyman@linux.intel.com>, linux-usb@vger.kernel.org
Subject: Re: xhci_hcd: AMD Raphael/Granite Ridge USB 2.0 xHCI [1022:15b8] dies on resume from suspend
Date: Fri, 29 May 2026 00:10:57 +0200	[thread overview]
Message-ID: <20260529001057.1e0403c4.michal.pecio@gmail.com> (raw)
In-Reply-To: <CA+_z3hRdXfZm2ziCmsXEDEY-i8XJjxnw2oe6mkTf+O+B0fx91A@mail.gmail.com>

On Thu, 28 May 2026 12:52:16 +0100, Martin Alderson wrote:
> Caught a fresh failure on kernel 7.0.9-205.fc44.x86_64 with xhci_hcd.dyndbg=+p:
> 
> Timeline (single suspend cycle):
> 
>   11:09:45  xhci_suspend: stopping usb1/3/5 port polling
>   11:09:50  xhci_hcd 0000:0f:00.0: xHCI host not responding to stop
> endpoint command
>   11:09:50  xhci_hcd 0000:0f:00.0: xHCI host controller not
> responding, assume dead
>   11:09:50  xhci_hcd 0000:0f:00.0: HC died; cleaning up
>   11:09:52  xhci_hcd 0000:0e:00.3: port resume event for port 1
> (keyboard wake)
> 
> 5-second gap between suspend start and HC died - the stop endpoint
> timeout you predicted.
> 
> Command ring state at death:
> 
>   0xffffe070: Stop Ring Command: slot 1 sp 1 ep 1 flags C   (completed)
>   0xffffe080: Stop Ring Command: slot 1 sp 0 ep 1 flags C   <- dequeue (stuck)

That's odd, I wouldn't expect further Stop EP commands for the same
endpoint after one with the SP flag. Not until the USB device resumes.
Mathias may have guessed right that there is some unexpected activity
concurrently with suspend.

>   0xffffe090: empty                                          <- enqueue
> 
>   enqueue - dequeue = 1 TRB pending
>   USBCMD = 0x0   USBSTS = 0x1 (HCHalted)
>   port01 portsc = 0x663  Link=U3 CCS PP PED
> 
> 
> I have the full snapshot: command-ring/event-ring TRB dumps, all xhci
> debugfs registers, dmesg with full dyndbg trace, and the kernel
> journal for the cycle. I'm not sure the best way to send it though if
> you need it?

I suppose the debugfs zip isn't very large so an attachment would be
fine, plus another attachment with dmesg from the beginning of suspend
attempt, or complete dmesg if it doesn't exceed a few MB. Preferably
with sub-second resolution timestamps, if you have them.

Regards,
Michal

  reply	other threads:[~2026-05-28 22:11 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-29 21:52 xhci_hcd: AMD Raphael/Granite Ridge USB 2.0 xHCI [1022:15b8] dies on resume from suspend martinalderson
2026-03-30  0:07 ` Michal Pecio
2026-04-04 12:04   ` Martin Alderson
2026-04-04 13:24     ` Michal Pecio
2026-05-09 14:51       ` Martin Alderson
2026-05-09 16:06         ` Michal Pecio
2026-05-10 16:29           ` Martin Alderson
2026-05-12 10:03             ` Michal Pecio
2026-05-12 14:01               ` Mathias Nyman
2026-05-28 11:52                 ` Martin Alderson
2026-05-28 22:10                   ` Michal Pecio [this message]
2026-05-28 23:06                     ` Martin Alderson
2026-05-29 10:22                       ` Michal Pecio
2026-05-29 12:04                         ` Martin Alderson
2026-05-29 22:57                           ` Michal Pecio
2026-06-06 13:12                             ` Martin Alderson

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=20260529001057.1e0403c4.michal.pecio@gmail.com \
    --to=michal.pecio@gmail.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=martinalderson@gmail.com \
    --cc=mathias.nyman@linux.intel.com \
    /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.