You are not logged in.

#1 2021-10-29 16:02:39

maxp
Member
Registered: 2021-10-29
Posts: 1

Kernel 5.14.14 USB problem

Hello, after kernel upgrade (latest version, 5.14.14) i have an issue with usb devices (none recognized)

My hardware is C610/X99 series chipset USB xHCI Host Controller

all works up to the previous version (5.14.12), even after kernel rollback.

journal reports some errors:

kernel: xhci_hcd 0000:00:14.0: Abort failed to stop command ring: -110
kernel: xhci_hcd 0000:00:14.0: xHCI host controller not responding, assume dead
kernel: xhci_hcd 0000:00:14.0: HC died; cleaning up
kernel: xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
kernel: audit: type=1130 audit(1635519077.048:27): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=ldconfig comm="systemd" exe="/usr/lib/systemd/systemd" hostname=?>
kernel: usb 2-2: device not accepting address 2, error -108
kernel: usb usb2-port2: couldn't allocate usb_device
kernel: usb usb1-port1: couldn't allocate usb_device

lsusb command output:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Regards

Massimiliano

Last edited by maxp (2021-10-29 16:23:23)

Offline

#2 2021-11-02 11:26:26

smartding
Member
Registered: 2021-02-21
Posts: 35

Re: Kernel 5.14.14 USB problem

I have similar issues with 5.14.15, my RTL8153 Gigabit Ethernet Adapter (a usb device) is missing after upgrading to 5.14.15 from 5.14.13.

Although my usb keyboard and mouse work just fine.

"lsusb" shows the following devices are missing after upgrading to 5.14.15:

Bus 002 Device 006: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 002 Device 005: ID 05e3:0626 Genesys Logic, Inc. USB3.1 Hub
Bus 002 Device 004: ID 05e3:0749 Genesys Logic, Inc. SD Card Reader and Writer
Bus 002 Device 003: ID 05e3:0626 Genesys Logic, Inc. USB3.1 Hub

Also "dmesg" shows similar error messages:

[   11.562863] xhci_hcd 0000:00:0d.0: Abort failed to stop command ring: -110
[   11.562868] xhci_hcd 0000:00:0d.0: xHCI host controller not responding, assume dead
[   11.562871] xhci_hcd 0000:00:0d.0: HC died; cleaning up
[   11.562936] xhci_hcd 0000:00:0d.0: Timeout while waiting for setup device command
[   11.976163] usb 2-3: device not accepting address 2, error -108
[   11.976259] usb usb2-port3: couldn't allocate usb_device

Last edited by smartding (2021-11-02 11:49:16)

Offline

#3 2021-11-02 21:34:44

hansdegoede
Member
Registered: 2014-09-12
Posts: 16

Re: Kernel 5.14.14 USB problem

This is likely caused by this commit:
https://git.kernel.org/pub/scm/linux/ke … 447738ca42

Can one of you try building a 5.14.14 kernel with that commit reverted?

Offline

#4 2021-11-03 01:31:57

devsk
Member
Registered: 2019-07-07
Posts: 8

Re: Kernel 5.14.14 USB problem

I reverted the patch 2 and patch 1 from the following patchset, on top of 5.14.16 and regained by USB hub connectivity. The patch 3 is just a refactor and was not there in 5.14.14, so I didn't bother.

https://lore.kernel.org/all/20210909064 … on@ti.com/

These things are very tricky! Some hardware or the other will be broken!

Offline

#5 2021-11-03 01:35:35

devsk
Member
Registered: 2019-07-07
Posts: 8

Re: Kernel 5.14.14 USB problem

My symptoms were:

[   11.704858] xhci_hcd 0000:00:14.0: Abort failed to stop command ring: -110
[   11.704881] xhci_hcd 0000:00:14.0: xHCI host controller not responding, assume dead
[   11.704888] xhci_hcd 0000:00:14.0: HC died; cleaning up
[   11.704916] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[   11.704919] xhci_hcd 0000:00:14.0: Error while assigning device slot ID
[   11.704937] xhci_hcd 0000:00:14.0: Max number of devices this xHCI host supports is 64.
[   11.704938] usb 1-2-port1: couldn't allocate usb_device

Offline

#6 2021-11-03 09:04:18

hansdegoede
Member
Registered: 2014-09-12
Posts: 16

Re: Kernel 5.14.14 USB problem

@devsk, thank you for figuring this out.

I've reported your findings upstream, so that we can get this fixed in the next 5.14.y release:
https://lore.kernel.org/stable/42bcbea6 … edhat.com/

Offline

#7 2021-11-04 01:47:00

smartding
Member
Registered: 2021-02-21
Posts: 35

Re: Kernel 5.14.14 USB problem

Looks like we can expect to have the issue fixed in 5.14.16 according to this: https://lore.kernel.org/stable/YYLKngiZ … kroah.com/

Edit--------

Just tried 5.14.16, still not working

Last edited by smartding (2021-11-04 09:19:27)

Offline

#8 2021-11-06 17:22:35

devsk
Member
Registered: 2019-07-07
Posts: 8

Re: Kernel 5.14.14 USB problem

Reverted in https://cdn.kernel.org/pub/linux/kernel … og-5.14.17. @smartding: See if it fixes it for you.

Offline

#9 2021-11-07 04:04:48

smartding
Member
Registered: 2021-02-21
Posts: 35

Re: Kernel 5.14.14 USB problem

devsk wrote:

Reverted in https://cdn.kernel.org/pub/linux/kernel … og-5.14.17. @smartding: See if it fixes it for you.

Just compiled 5.14.17 on gentoo, the issue is still there.

My Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter is missing from "lsusb", and eth0 is missing from "ip addr"

Offline

#10 2021-11-07 22:11:52

Sourav
Member
From: India
Registered: 2019-04-22
Posts: 84
Website

Re: Kernel 5.14.14 USB problem

Same, all my USB devices are disabled during a cold boot, but after restart I can use them.

Journalctl -k -b shows:

Nov 04 16:57:00 archlinux kernel: usb 4-1: device not accepting address 2, error -108
Nov 04 16:57:00 archlinux kernel: usb usb4-port1: couldn't allocate usb_device
Nov 04 16:57:00 archlinux kernel: usb usb3-port1: couldn't allocate usb_device

Here's the full log

This is for kernel 5.14.15 Arch's kernel. The similar problem is still on Kernel 5.14.17.

Offline

#11 2021-11-08 23:17:58

devsk
Member
Registered: 2019-07-07
Posts: 8

Re: Kernel 5.14.14 USB problem

> Same, all my USB devices are disabled during a cold boot, but after restart I can use them.

This was something the original commit that got removed, was trying to address. So, you are stuck between a rock and a hard place....:-)

> My Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter is missing from "lsusb", and eth0 is missing from "ip addr"

Is that the cold boot or reboot?

My issue was that USB hub was never detected, cold boot or restart.

Offline

#12 2021-11-09 02:25:37

slayerking
Member
Registered: 2021-03-02
Posts: 4

Re: Kernel 5.14.14 USB problem

I had this issue (or a very similar one) on the latest kernel and tried going back a few versions even tried the lts but it was still there. So decided to do a fresh install and the error kept popping up repeatedly when the live disc booted, until I started removing usb devices (found out it was my optical drive) once I plugged it back in the error stopped.

Last edited by slayerking (2021-11-09 02:26:27)

Offline

#13 2021-11-13 01:26:22

smartding
Member
Registered: 2021-02-21
Posts: 35

Re: Kernel 5.14.14 USB problem

Tested the just released 5.15.2 kernel from arch repository, the issue is still there.

My Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter is missing from "lsusb", and eth0 is missing from "ip addr"

But my usb mouse and keyboard work just fine.

It doesn't matter whether it's a reboot or cold boot.

Rolling back to 5.14.13 fixes all the problems

dmesg shows:

[   11.571191] xhci_hcd 0000:00:0d.0: Abort failed to stop command ring: -110
[   11.571195] xhci_hcd 0000:00:0d.0: xHCI host controller not responding, assume dead
[   11.571199] xhci_hcd 0000:00:0d.0: HC died; cleaning up
[   11.571263] clocksource: timekeeping watchdog on CPU6: Marking clocksource 'tsc' as unstable because the skew is too large:
[   11.571265] clocksource:                       'acpi_pm' wd_nsec: 0 wd_now: 563fb9 wd_last: 64183d mask: ffffff
[   11.571266] clocksource:                       'tsc' cs_nsec: 4433474186 cs_now: 10536bcb7b cs_last: d6ea8de82 mask: ffffffffffffffff
[   11.571268] clocksource:                       'tsc' is current clocksource.
[   11.571269] tsc: Marking TSC unstable due to clocksource watchdog
[   11.571277] xhci_hcd 0000:00:0d.0: Timeout while waiting for setup device command
[   11.571300] TSC found unstable after boot, most likely due to broken BIOS. Use 'tsc=unstable'.
[   11.571301] sched_clock: Marking unstable (11550448607, 20852688)<-(11592202535, -20901811)
[   11.571463] clocksource: Checking clocksource tsc synchronization from CPU 5 to CPUs 0-1,3,7.
[   11.571499] clocksource: Switched to clocksource acpi_pm
[   11.784481] usb 3-3.4: new full-speed USB device number 12 using xhci_hcd
[   11.877206] usb 3-3.4: New USB device found, idVendor=043e, idProduct=9a39, bcdDevice= 2.03
[   11.877209] usb 3-3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   11.877210] usb 3-3.4: Product: USB Controls
[   11.877211] usb 3-3.4: Manufacturer: LG Electronics Inc.
[   11.877211] usb 3-3.4: SerialNumber: 001NTGY7Q583
[   11.892542] hid-generic 0003:043E:9A39.0009: hiddev97,hidraw8: USB HID v1.11 Device [LG Electronics Inc. USB Controls] on usb-0000:00:14.0-3.4/input0
[   11.897516] cdc_acm 3-3.4:1.1: ttyACM0: USB ACM device
[   11.897527] usbcore: registered new interface driver cdc_acm
[   11.897528] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   11.984550] usb 2-3: device not accepting address 2, error -108
[   11.984607] usb usb2-port3: couldn't allocate usb_device

Last edited by smartding (2021-11-13 01:30:03)

Offline

#14 2021-11-14 21:24:16

nomeed
Member
Registered: 2015-05-08
Posts: 13

Re: Kernel 5.14.14 USB problem

Same for me but only usb 3 ports are unavailable. My last known working kernel was 5.13.10. Broken since 5.14.2

Nov 14 16:29:25 kernel: xhci_hcd 0000:00:14.0: Abort failed to stop command ring: -110
Nov 14 16:29:25 kernel: xhci_hcd 0000:00:14.0: xHCI host controller not responding, assume dead
Nov 14 16:29:25 kernel: xhci_hcd 0000:00:14.0: HC died; cleaning up
Nov 14 16:29:25 kernel: xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
Nov 14 16:29:25 kernel: usb 4-3: device not accepting address 2, error -108
Nov 14 16:29:25 kernel: usb usb4-port3: couldn't allocate usb_device
Nov 14 16:29:25 kernel: usb usb3-port3: couldn't allocate usb_device
description: USB controller
product: 7 Series/C210 Series Chipset Family USB xHCI Host Controller
vendor: Intel Corporation
physical id: 14
bus info: pci@0000:00:14.0
version: 04
width: 64 bits
clock: 33MHz
capabilities: xhci bus_master cap_list
configuration: driver=xhci_hcd latency=0
resources: irq:32 memory:f7e00000-f7e0ffff

Offline

#15 2021-11-16 17:31:09

yostral
Member
Registered: 2021-11-16
Posts: 1

Re: Kernel 5.14.14 USB problem

Same problem here on one of my computers. USB 2 and 3 ports are not recognized anymore since kernel 5.14.x.
I had hope with the 5.15 serie, but no, still no more USB... sad

Offline

#16 2021-11-22 11:37:32

smartding
Member
Registered: 2021-02-21
Posts: 35

Re: Kernel 5.14.14 USB problem

kernel 5.15.4-arch1-1 seems to have fixed the issue.

My Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter is back.

dmesg shows no error.

Offline

#17 2021-11-24 20:17:19

nomeed
Member
Registered: 2015-05-08
Posts: 13

Re: Kernel 5.14.14 USB problem

smartding wrote:

kernel 5.15.4-arch1-1 seems to have fixed the issue.

My Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter is back.

dmesg shows no error.

can confirm for my host as well

Offline

#18 2021-11-25 19:47:02

Sourav
Member
From: India
Registered: 2019-04-22
Posts: 84
Website

Re: Kernel 5.14.14 USB problem

Yeah, just tried 5.15.4 and it seems to be fixed!

It's even better than the 5.14.12 that worked last - where the device takes about 5 seconds to get turned on after the system boots!

Offline

#19 2021-12-04 14:06:22

hansdegoede
Member
Registered: 2014-09-12
Posts: 16

Re: Kernel 5.14.14 USB problem

For those of you who are still having issues, it looks like commit ff0e50d3564f33b7f4b35cadeabd951d66cfc570 ("xhci: Fix command ring pointer corruption while aborting a command") is breaking things for some users and this has not been fixed yet. So if you are still seeing issues despite the recent fixes, try reverting that commit and please let us know if this helps.

I'll also start an upstream mailinglist thread about this.

Offline

#20 2021-12-04 14:18:00

hansdegoede
Member
Registered: 2014-09-12
Posts: 16

Re: Kernel 5.14.14 USB problem

Offline

Board footer

Powered by FluxBB