usb: xhci-pci: don't perform Soft Retry on the AMD X470 chipset host
Subsystems (3)
PATCH 1/1 usb: xhci-pci: don't perform Soft Retry on the AMD X470 chipset host
Commit a4a251f8c235 ("usb: xhci: do not perform Soft Retry for some xHCI hosts") disabled Soft Retry on the 300 series Promontory hosts, which fail to resume an endpoint after it. The X470 chipset host (1022:43d0) has the same problem.
With an RT3070 USB Wi-Fi adapter (rt2800usb) on an X470 port, the bulk IN endpoint sees one USB Transaction Error while the interface is brought up. xhci soft-retries it with a Reset Endpoint command that preserves the transfer state, the endpoint context reads back as running, and no transfer completes on it again: the adapter receives frames (its RX FIFO overflow counter climbs) but none reach the host. Booting with xhci_hcd.quirks=0x10000000000 (XHCI_NO_SOFT_RETRY) lets the URB complete with an error instead, rt2x00usb resubmits it and reception keeps working.
--- drivers/usb/host/xhci-pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/usb/host/xhci-pci.c +3 -1
@@ -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_X470_XHCI 0x43d0#define PCI_DEVICE_ID_ATI_NAVI10_7316_XHCI 0x7316
@@ -493,7 +494,8 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)if (pdev->vendor ==PCI_VENDOR_ID_AMD && (pdev->device ==PCI_DEVICE_ID_AMD_PROMONTORYA_2 || - pdev->device ==PCI_DEVICE_ID_AMD_PROMONTORYA_4 )) + pdev->device ==PCI_DEVICE_ID_AMD_PROMONTORYA_4 || + pdev->device ==PCI_DEVICE_ID_AMD_X470_XHCI )) xhci->quirks |=XHCI_NO_SOFT_RETRY ;if (pdev->vendor ==PCI_VENDOR_ID_ZHAOXIN ) {
Signature · 1 line
2.56.1
[email protected]
AI reviewSashiko has reviewed this patch and found no issues.
Quoted 15 lines
Commit
a4a251f8c235("usb: xhci: do not perform Soft Retry for some xHCI hosts") disabled Soft Retry on the 300 series Promontory hosts, which fail to resume an endpoint after it. The X470 chipset host (1022:43d0) has the same problem.With an RT3070 USB Wi-Fi adapter (rt2800usb) on an X470 port, the bulk IN endpoint sees one USB Transaction Error while the interface is brought up. xhci soft-retries it with a Reset Endpoint command that preserves the transfer state, the endpoint context reads back as running, and no transfer completes on it again: the adapter receives frames (its RX FIFO overflow counter climbs) but none reach the host. Booting with xhci_hcd.quirks=0x10000000000 (
XHCI_NO_SOFT_RETRY) lets the URB complete with an error instead, rt2x00usb resubmits it and reception keeps working.
Quoted 2 lines
Signed-off-by Rosen Penev <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1