* [PATCH] xhci: pci: Reset AMD 500-series (0x43ec) xHCI controller on resume
@ 2026-12-01 17:59 Munique Feitoza
2026-12-01 21:50 ` Michal Pecio
0 siblings, 1 reply; 3+ messages in thread
From: Munique Feitoza @ 2026-12-01 17:59 UTC (permalink / raw)
To: Mathias Nyman, Greg Kroah-Hartman
Cc: linux-usb, linux-kernel, Munique Feitoza
On an AMD A520 chipset USB 3.1 xHCI controller (1022:43ec, subsystem
1b21:1142), resuming from s2idle fails Controller Restore State (CMD_CRS)
with USBSTS 0x411 (STS_SRE | STS_HALT), forcing a controller
reinitialization:
xhci_hcd 0000:02:00.0: xHC error in resume, USBSTS 0x411, Reinit
Add XHCI_RESET_ON_RESUME for PCI_DEVICE_ID_AMD_500_SERIES_XHCI (0x43ec)
so xhci_resume() performs a clean host controller reset directly instead
of failing CMD_CRS first.
Signed-off-by: Munique Feitoza <muniquefeitoz4@gmail.com>
---
drivers/usb/host/xhci-pci.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index e278db940a5834..bde0ef21c055ab 100644
--- 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 0x43ec
#define PCI_DEVICE_ID_ATI_NAVI10_7316_XHCI 0x7316
@@ -335,6 +336,10 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
if (pdev->vendor == PCI_VENDOR_ID_AMD && pdev->device == 0x43f7)
xhci->quirks |= XHCI_DEFAULT_PM_RUNTIME_ALLOW;
+ if (pdev->vendor == PCI_VENDOR_ID_AMD &&
+ pdev->device == PCI_DEVICE_ID_AMD_500_SERIES_XHCI)
+ xhci->quirks |= XHCI_RESET_ON_RESUME;
+
if ((pdev->vendor == PCI_VENDOR_ID_AMD) &&
((pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_4) ||
(pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_3) ||
--
2.56.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] xhci: pci: Reset AMD 500-series (0x43ec) xHCI controller on resume
2026-12-01 17:59 [PATCH] xhci: pci: Reset AMD 500-series (0x43ec) xHCI controller on resume Munique Feitoza
@ 2026-12-01 21:50 ` Michal Pecio
2026-12-02 0:16 ` Munique Feitoza
0 siblings, 1 reply; 3+ messages in thread
From: Michal Pecio @ 2026-12-01 21:50 UTC (permalink / raw)
To: Munique Feitoza
Cc: Mathias Nyman, Greg Kroah-Hartman, linux-usb, linux-kernel
On Tue, 01 Dec 2026 14:59:47 -0300, Munique Feitoza wrote:
> On an AMD A520 chipset USB 3.1 xHCI controller (1022:43ec, subsystem
> 1b21:1142), resuming from s2idle fails Controller Restore State (CMD_CRS)
> with USBSTS 0x411 (STS_SRE | STS_HALT), forcing a controller
> reinitialization:
>
> xhci_hcd 0000:02:00.0: xHC error in resume, USBSTS 0x411, Reinit
>
> Add XHCI_RESET_ON_RESUME for PCI_DEVICE_ID_AMD_500_SERIES_XHCI (0x43ec)
> so xhci_resume() performs a clean host controller reset directly instead
> of failing CMD_CRS first.
That makes little difference besides reducing log noise.
Can we know that no such chip is able to resume properly and this
change won't break systems which work?
Please check if commit 555040535119 (in mainline since v7.4-rc4)
solves this - it has fixed similar issues on other AMD chipsets.
Regards,
Michal
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] xhci: pci: Reset AMD 500-series (0x43ec) xHCI controller on resume
2026-12-01 21:50 ` Michal Pecio
@ 2026-12-02 0:16 ` Munique Feitoza
0 siblings, 0 replies; 3+ messages in thread
From: Munique Feitoza @ 2026-12-02 0:16 UTC (permalink / raw)
To: Michal Pecio; +Cc: Mathias Nyman, Greg Kroah-Hartman, linux-usb, linux-kernel
Hi Michal,
I tested commit 555040535119 ("usb: pci-quirks: always assert xHCI OS
ownership")
cherry-picked onto v7.4-rc1 on this AMD A520 system (0000:02:00.0, 1022:43ec).
After an s2idle suspend/resume cycle (rtcwake -m freeze -s 5), the controller
resumed cleanly with no "xHC error in resume, USBSTS 0x411, Reinit" error.
So commit 555040535119 already resolves the root cause on 1022:43ec as well.
Please drop this patch. Thank you for pointing me to it!
Best regards,
Munique
On Tue, Dec 1, 2026 at 6:50 PM Michal Pecio <michal.pecio@gmail.com> wrote:
>
> On Tue, 01 Dec 2026 14:59:47 -0300, Munique Feitoza wrote:
> > On an AMD A520 chipset USB 3.1 xHCI controller (1022:43ec, subsystem
> > 1b21:1142), resuming from s2idle fails Controller Restore State (CMD_CRS)
> > with USBSTS 0x411 (STS_SRE | STS_HALT), forcing a controller
> > reinitialization:
> >
> > xhci_hcd 0000:02:00.0: xHC error in resume, USBSTS 0x411, Reinit
> >
> > Add XHCI_RESET_ON_RESUME for PCI_DEVICE_ID_AMD_500_SERIES_XHCI (0x43ec)
> > so xhci_resume() performs a clean host controller reset directly instead
> > of failing CMD_CRS first.
>
> That makes little difference besides reducing log noise.
>
> Can we know that no such chip is able to resume properly and this
> change won't break systems which work?
>
> Please check if commit 555040535119 (in mainline since v7.4-rc4)
> solves this - it has fixed similar issues on other AMD chipsets.
>
> Regards,
> Michal
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-12-02 0:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 17:59 [PATCH] xhci: pci: Reset AMD 500-series (0x43ec) xHCI controller on resume Munique Feitoza
2026-12-01 21:50 ` Michal Pecio
2026-12-02 0:16 ` Munique Feitoza
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®