Linux USB
 help / color / mirror / Atom feed
From: Michal Pecio <michal.pecio@gmail.com>
To: Riley Wagner <riwiwa00@gmail.com>
Cc: mathias.nyman@intel.com, linux-usb@vger.kernel.org,
	gregkh@linuxfoundation.org, stable@vger.kernel.org,
	"Mario Limonciello (AMD)" <superm1@kernel.org>,
	Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Subject: Re: [PATCH] usb: xhci: pci: do not perform Soft Retry on AMD 500 series chipset host
Date: Thu, 3 Dec 2026 11:39:10 +0100	[thread overview]
Message-ID: <20261203113910.158311b0.michal.pecio@gmail.com> (raw)
In-Reply-To: <20261120121357.1e1a0ce4.michal.pecio@gmail.com>

A bit late, but an update from me:

On Fri, 20 Nov 2026 12:13:57 +0100, Michal Pecio wrote:
> What if it's not connected to the root hub? Is this important?

It is, of course, important for full-speed, because Soft Retries are not
performed behind TTs. But at high-speed, hubs make no difference.

> IIRC that's the same HW bug which broke some high-speed Realtek WiFi
> dongle and caused Soft Retry to be disabled in multiple variants of
> Promontory chipsets. I actually obtained that WiFi dongle (long after
> the fact) and reproduced the issue - it happens when a device fails
> the first URB and it gets retried. Most HCs handle this normally, but
> Promontory generates no transfer events and later fails Stop Endpoint
> with Context State Error and the endpoint is "halted".

It's Ralink, not Realtek, for example RT5370.
 
> And I think I have seen similar issues on other ASMedia HCs in case of
> disconnection and repeated retries and endpoint resets. OTOH, in other
> cases this controllers perform retries correctly.

Affects all three Gen-2 and Gen-2x2 HCs I tried, but not the Gen-1
ASM1042. Newer Gen-2x2 AMD chipsets are likely affected too, I guess.

But the problem is something else than just "the first URB on the
endpoint". I have a reproducible case (full-speed bulk, no TT) where
multiple URBs complete and then Soft Retry produces no event.

The bug must be something else, maybe "no event if the retry fails".
That would be hard to deal with. I have no better solution for now.

> > diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
> > --- a/drivers/usb/host/xhci-pci.c
> > +++ b/drivers/usb/host/xhci-pci.c
> > @@ -88,6 +88,7 @@
> >  #define PCI_DEVICE_ID_AMD_PROMONTORYA_3			0x43ba
> >  #define PCI_DEVICE_ID_AMD_PROMONTORYA_2			0x43bb
> >  #define PCI_DEVICE_ID_AMD_PROMONTORYA_1			0x43bc
> > +#define PCI_DEVICE_ID_AMD_500_SERIES_XHCI		0x43ee  
> 
> I think "PROMONTORY_19" or "PROM19" would be better for consistency
> with other entries (see also: commit 9e896b4a48c4).
> 
> And isn't 1022:43ec another PROM19 ID?
> Does anyone know if 400-series or PROM21 have the same bug?

It's likely that lots of chipsets are affected, so IMO it does make
sense to add more PROM19 IDs or at least use a naming pattern which
readily extends to more IDs in the future.

Or match all by (vendor_id == AMD && subvendor == ASMEDIA), because
that seems to be a pattern with those chipsets.

> Adding some AMD people...

Still interested to hear any thoughts or suggestions.

Regards,
Michal

      reply	other threads:[~2026-12-03 10:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-17 19:33 [PATCH] usb: xhci: pci: do not perform Soft Retry on AMD 500 series chipset host Riley Wagner
2026-11-17 19:35 ` sashiko-bot
2026-11-20 11:13 ` Michal Pecio
2026-12-03 10:39   ` Michal Pecio [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=20261203113910.158311b0.michal.pecio@gmail.com \
    --to=michal.pecio@gmail.com \
    --cc=Shyam-sundar.S-k@amd.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@intel.com \
    --cc=riwiwa00@gmail.com \
    --cc=stable@vger.kernel.org \
    --cc=superm1@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