[PATCH REQUEST] xhci 7.3 regression: devices that briefly drop off the bus during enumeration take ~6 s (-110) and may die; please backport 6895dbdc19d9 "xhci: give back TDs and clean up ep0 after disconnect"
@ptr1337 is already working on this.
Since Nov 7, 2026.
Assessment
This issue has not been assessed yet.
Description
Pre-flight checklist
- I have searched existing issues and this is not a duplicate.
- I have read the Contributing Guidelines.
- I have verified the issue is reproducible with the latest available CachyOS kernel.
- I have tried to reproduce the issue on Arch Linux's
linuxkernel.
Upstream / vanilla kernel check
I have not tested with a vanilla/upstream kernel
Kernel variant
linux-cachyos (EEVDF, Clang)
System information (cachyos-bugreport.sh)
https://paste.cachyos.org/p/f086f63.log
Manual system information (if cachyos-bugreport.sh is unavailable)
- Kernel: 7.3.0-4-cachyos (linux-cachyos 7.3.0-4; 7.3.1-1 has the same xhci code)
- CPU: Intel Core i5-7500, board H110; xHCI: Intel 100/C230 Series Chipset Family USB 3.0 xHCI Controller [8086:a12f] (rev 31)
- GPU: NVIDIA GTX 1070, nvidia-580xx-dkms 580.178.04
- Architecture: x86-64
- SCX: none
- Device: UGREEN HiTune Max5C USB-C headset, Jieli Technology chip, USB ID 3654:4a55, full-speed (bcdUSB 1.10), composite (UAC1 audio + HID), on root-hub port 1-7
- cmdline note: usbcore.initial_descriptor_timeout=1000 (default 5000) and usbhid.quirks=0x3654:0x4a55:0x0004 are set; both were earlier attempts to mitigate this issue. With the default timeout the same sequence takes ~27 s instead of ~6 s.
Bug description
Since the 7.2.9 -> 7.3.0 update (2026-10-24) this USB headset takes ~6.3 s to enumerate on every plug, logging device descriptor read/64, error -110 twice, and in roughly 3 out of 5 plugs it powers itself off ~30 ms after being recognised (the kernel notices the disconnect only ~36 s later). On linux-cachyos 7.2.9 it enumerated immediately; on Windows 11 the same headset is ready in 0.8 s. Tested on Arch's linux 7.2.11.arch1-1 on the same machine: not reproducible (hot-plug enumerates in ~1.06 s, 5/5 plugs usable; details below). The "upstream kernel check" dropdown is left at "not tested" because I did not test a vanilla 7.3 kernel; the regression is however tracked upstream:
- regzbot entry "usb: xhci: devices drop off the bus and might be dead until reboot", introduced by 042aad8d0db6 ("xhci: prevent endpoint recovery after roothub disconnect") together with 7e0ef4332ed9 ("xhci: avoid xHC endpoint changes after disconnect or link error"), both v7.3-rc1: https://linux-regtracking.leemhuis.info/regzbot/mainline/
- Fix: 6895dbdc19d9 "xhci: give back TDs and clean up ep0 after disconnect" (Yiyu Zhou / Mathias Nyman, Cc: stable, Fixes: both commits), posted 2026-10-29 on linux-usb and queued in usb-linus / linux-next: https://ratatoskr.run/linux-usb/2026/10/17829454/t . It is not in 7.3.0-7.3.3 (no xhci commits in those stable releases) and not yet in Linus' tree as of 2026-11-07.
Root cause as seen here, from a dynamic-debug capture of hub.c / xhci-ring.c / xhci-hub.c (links in the Logs section) and an ETW capture on Windows for comparison:
- The headset firmware drops off the bus ~94 ms after the first port reset (seen identically on Windows: 94 ms) and reconnects by itself ~150 ms later. This is device behaviour, the same on both OSes.
- On 7.3 the xHC returns a transaction error for the pending GET_DESCRIPTOR(64) within 35 ms (
Transfer error for slot N ep 0,TRB error 4, halted endpoint index = 0, URB given back with -71). Because the root port is now flagged disconnected,xhci_handle_halted_endpoint()sets EP_DROP_PENDING and returns -ENODEV without issuing Reset Endpoint, so ep0 stays halted in the xHC. Every subsequent ep0 URB on that slot logsWARN halted endpoint, queueing URB anyway.and times out (1 s each with my timeout, 5 s by default).Completed reset device command.does not clear ep0, so the second round of hub_port_init fails the same way (Stop ep completion raced with stall,Stop ep completion resetting ep, status -19). - Only after hub_port_connect gives up on that device, disables the port and allocates a new slot does the device enumerate, and then instantly (120 ms).
- The device sometimes reboots a second time ~94 ms after the reset that follows the 64-byte descriptor read, during snd-usb-audio probe. On 7.3 the hub thread is then stuck for ~36 s in 5 s control-message timeouts before
USB disconnectis processed, and the headset switches itself off.
Comparison on Arch linux 7.2.11.arch1-1, same machine, same debug (5 user plugs, 11 connect events because the device sometimes self-reconnects):
- Same device drop at +250 ms. But the three GET_DESCRIPTOR(64) attempts all fail immediately with -71 (within 5 ms), hub.c resets the port (first reset fails with -11 while the device is still away, second succeeds at ~784 ms),
Completed reset device command., and the second round of GET_DESCRIPTOR(64) succeeds at once:New USB device foundat 1.06 s after connect, every time. NoWARN halted endpoint, no port disable, no new slot needed. - The device still reboots a second time in 5 of 11 connects. On 7.2 the hub thread notices the disconnect within ~60 ms (the pending snd-usb-audio control messages fail fast with -71),
USB disconnectis processed, the device reconnects by itself and is enumerated again. From the user's side every plug was usable within 1-5 s.
So both symptoms on 7.3 (6 s enumeration and the headset dying) come from ep0 of a disconnected-and-reconnected device never being recovered.
Windows 11 (USBHUB3/UCX ETW trace, 3 plugs): same first-reset drop at +94 ms, XACT_ERROR, "Retry Enumeration" as soon as the port reconnects, enumeration complete at 701 ms, composite device started at 775-849 ms.
Issues #1105 (G923, -110 on 7.3, fine on LTS) and #1101 (USB drive disconnects on resume) look like the same regression.
Request: please consider carrying 6895dbdc19d9 in linux-cachyos 7.3 until it lands in 7.3.y stable (it is Cc: stable and has Fixes: tags for both culprits). Happy to test a build.
Steps to reproduce
- Boot linux-cachyos 7.3.x.
- Plug a USB device whose firmware re-enumerates itself shortly after the first port reset (this Jieli 3654:4a55 headset does it every time).
journalctl -k -f.- For comparison, boot Arch
linux7.2.11 and repeat: the device is found ~1 s after connect.
Expected behavior
Device enumerates on the retry within ~1 s, as on 7.2.x (verified on linux 7.2.11.arch1-1) and as Windows does.
Actual behavior
usb 1-7: new full-speed USB device number 9 using xhci_hcd
xhci_hcd 0000:00:14.0: Transfer error for slot 8 ep 0 on endpoint
xhci_hcd 0000:00:14.0: TRB error 4, halted endpoint index = 0
xhci_hcd 0000:00:14.0: Port change event, 1-7, id 7, portsc: 0x202a0
xhci_hcd 0000:00:14.0: Giveback URB ..., len = 0, expected = 64, status = -71
xhci_hcd 0000:00:14.0: WARN halted endpoint, queueing URB anyway.
usb 1-7: device descriptor read/64, error -110
xhci_hcd 0000:00:14.0: Completed reset device command.
xhci_hcd 0000:00:14.0: WARN halted endpoint, queueing URB anyway. (x3, 1 s each)
xhci_hcd 0000:00:14.0: Stop ep completion raced with stall
xhci_hcd 0000:00:14.0: Stop ep completion resetting ep, status -19
usb 1-7: device descriptor read/64, error -110
xhci_hcd 0000:00:14.0: disable port 1-7, portsc: 0x6e1
usb 1-7: new full-speed USB device number 10 using xhci_hcd
usb 1-7: New USB device found, idVendor=3654, idProduct=4a55, bcdDevice= 1.00 (+6.3 s after connect)
xhci_hcd 0000:00:14.0: Port change event, 1-7, id 7, portsc: 0x202a0 (+94 ms after last reset: device gone)
usb 1-7: USB disconnect, device number 10 (36 s later)
Per-plug timeline on 7.3.0 (5 plugs, identical to within 5 ms): connect 0 ms, reset 105 ms, device drops 250 ms, first -110 at 2.62 s, second -110 at 5.94 s, disable port 6.04 s, found 6.28-6.30 s; second drop at 6.31-6.33 s in plugs 1, 3 and 5.
Same on 7.2.11: connect 0 ms, reset 105 ms, device drops 250 ms, three -71 by 254 ms, port reset retry 576 ms, reset device 835 ms, device descriptor read/64, error -71 logged once, found at 1.06 s.
Logs / stack traces
Full dynamic-debug captures (hostname and device serial redacted):
- 7.3.0, one plug with `file drivers/usb/core/hub.c +p`, `drivers/usb/host/xhci-ring.c +p`, `drivers/usb/host/xhci-hub.c +p` (device died afterwards): https://paste.cachyos.org/p/0271a0c.txt
- 7.3.0, five consecutive plugs with the same debug plus `drivers/usb/host/xhci.c +p`: https://paste.cachyos.org/p/334e952.txt
- Arch linux 7.2.11.arch1-1, same 5-plug procedure and debug, for comparison (not reproducible there): https://paste.cachyos.org/p/f0c56cf.txt
Additional system information
16 GB RAM, KDE Plasma 6.8.1 (Wayland), systemd, PipeWire 1.6.10. The headset itself is fine on linux-cachyos 7.2.9 (before 2026-10-24), on Arch linux 7.2.11 (tested today) and on Windows 11 build 26300 on another machine.
- Dominant language
- Shell
- Stars
- 4.9k
- Forks
- 190
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CachyOS/linux-cachyos
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
CachyOS/linux-cachyos#1196 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
CachyOS/linux-cachyos#1091 · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
CachyOS/linux-cachyos#961 · 1 comment ·
-
[FEATURE] Pre-signed hwmon / fan control modules (nct6687d, it87) for linux-cachyos-eacPossibly taken @ventureoo claimed this 1 day ago. Openenhancement
CachyOS/linux-cachyos#1206 · 3 assignees ·
-
[Feature Request] Add prebuilt signed linux-cachyos-eac-tuxedo-drivers modulePossibly taken @ventureoo claimed this 1 day ago. Openenhancement
CachyOS/linux-cachyos#1205 · 3 assignees ·
All issues in CachyOS/linux-cachyos
Similar issues
-
documentation enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
aws/aws-networking-best-practices#256 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
fossi-foundation/globalfoundries-pdk-libs-gf180mcu_fd_pv#61 ·
-
openai-directory
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
smores56/homelab-platform#289 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
omacom/omarchy#21787 · 3 comments ·
Maintainers usually reply within 1 day