You are not logged in.
After updating to 5.14.15-arch1-1, my USB stops working when I put my Thinkpad X1 Extreme gen 3 to sleep. A reboot sometimes solves it, but not always. What does help is:
# rmmod xhci_pci && modprobe xhci_pciWhich I got from this topic, which smells a lot like this problem. There's two things that are weird about this case however:
1) I do not have a Renesas usb controller, but one from Intel, so not sure what the relationship is:
[jvlek@rick-sanchez ~]$ lspci | grep -i usb
7:00:14.0 USB controller: Intel Corporation Comet Lake USB 3.1 xHCI Host Controller
29:2c:00.0 USB controller: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 4C 2018] (rev 06)2) Even weirder, apparently I do have the Renesas module loaded:
[jvlek@rick-sanchez ~]$ lsmod | grep xhci
3:xhci_pci 20480 0
\217:xhci_pci_renesas 20480 1 xhci_pciMore system info below:
[jvlek@rick-sanchez ~]$ uname -a
Linux rick-sanchez 5.14.15-arch1-1 #1 SMP PREEMPT Wed, 27 Oct 2021 23:38:14 +0000 x86_64 GNU/Linux
[jvlek@rick-sanchez ~]$
[jvlek@rick-sanchez ~]$
[jvlek@rick-sanchez ~]$ lspci
00:00.0 Host bridge: Intel Corporation 10th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 02)
00:02.0 VGA compatible controller: Intel Corporation CometLake-H GT2 [UHD Graphics] (rev 05)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 02)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Comet Lake PCH Thermal Controller
00:14.0 USB controller: Intel Corporation Comet Lake USB 3.1 xHCI Host Controller
00:14.2 RAM memory: Intel Corporation Comet Lake PCH Shared SRAM
00:14.3 Network controller: Intel Corporation Comet Lake PCH CNVi WiFi
00:16.0 Communication controller: Intel Corporation Comet Lake HECI Controller
00:16.3 Serial controller: Intel Corporation Comet Lake Keyboard and Text (KT) Redirection
00:1b.0 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #17 (rev f0)
00:1c.0 PCI bridge: Intel Corporation Device 06b8 (rev f0)
00:1c.7 PCI bridge: Intel Corporation Device 06bf (rev f0)
00:1d.0 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #9 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Device 068e
00:1f.3 Multimedia audio controller: Intel Corporation Comet Lake PCH cAVS
00:1f.4 SMBus: Intel Corporation Comet Lake PCH SMBus Controller
00:1f.5 Serial bus controller [0c80]: Intel Corporation Comet Lake PCH SPI Controller
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev a1)
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
04:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:01.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:02.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:04.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
06:00.0 System peripheral: Intel Corporation JHL7540 Thunderbolt 3 NHI [Titan Ridge 4C 2018] (rev 06)
2c:00.0 USB controller: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 4C 2018] (rev 06)
54:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01)
55:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
[jvlek@rick-sanchez ~]$
[jvlek@rick-sanchez ~]$
[jvlek@rick-sanchez ~]$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 2109:0211 VIA Labs, Inc. USB3.0 Hub
Bus 002 Device 002: ID 2109:0820 VIA Labs, Inc. VL820 Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 06cb:00bd Synaptics, Inc. Prometheus MIS Touch Fingerprint Reader
Bus 001 Device 003: ID 04f2:b6cb Chicony Electronics Co., Ltd Integrated Camera
Bus 001 Device 006: ID 8087:0026 Intel Corp. AX201 Bluetooth
Bus 001 Device 009: ID 2109:8886 VIA Labs, Inc. USB Billboard Device
Bus 001 Device 011: ID 24f0:204a Metadot Das Keyboard 4
Bus 001 Device 010: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 008: ID 2109:2211 VIA Labs, Inc. USB2.0 Hub
Bus 001 Device 007: ID 046d:085c Logitech, Inc. C922 Pro Stream Webcam
Bus 001 Device 005: ID 17ef:a022 Lenovo Lenovo Monitor USB Speaker
Bus 001 Device 002: ID 2109:2820 VIA Labs, Inc. VL820 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubIn the dmesg output you can see that the keyboard is recognized at first, but then something happens that causes errors (only deemed relevant part shown):
[jvlek@rick-sanchez ~]$ sudo dmesg | grep -i usb
<snip>
<snip>
1277:[ 7.609420] input: Metadot - Das Keyboard Das Keyboard 4 as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.1/1-1.4.1.2/1-1.4.1.2:1.0/0003:24F0:204A.0002/input/input21
1284:[ 7.665458] hid-generic 0003:24F0:204A.0002: input,hidraw1: USB HID v1.10 Keyboard [Metadot - Das Keyboard Das Keyboard 4] on usb-0000:00:14.0-1.4.1.2/input0
1285:[ 7.666482] input: Metadot - Das Keyboard Das Keyboard 4 System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.1/1-1.4.1.2/1-1.4.1.2:1.1/0003:24F0:204A.0003/input/input22
1286:[ 7.722094] input: Metadot - Das Keyboard Das Keyboard 4 Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.1/1-1.4.1.2/1-1.4.1.2:1.1/0003:24F0:204A.0003/input/input23
1287:[ 7.722167] hid-generic 0003:24F0:204A.0003: input,hidraw2: USB HID v1.10 Device [Metadot - Das Keyboard Das Keyboard 4] on usb-0000:00:14.0-1.4.1.2/input1
1288:[ 8.012291] usbcore: registered new interface driver snd-usb-audio
1343:[ 40.625310] usb 1-1: USB disconnect, device number 2
1344:[ 40.625313] usb 1-1.2: USB disconnect, device number 5
1345:[ 40.626324] usb 1-1.3: cannot submit urb (err = -19)
1346:[ 40.632131] usb 1-1.3: cannot submit urb 0, error -19: no device
1347:[ 40.692634] usb 1-1.3: USB disconnect, device number 7
1348:[ 40.760122] usb 1-1.4: USB disconnect, device number 8
1349:[ 40.760136] usb 1-1.4.1: USB disconnect, device number 10
1350:[ 40.760141] usb 1-1.4.1.2: USB disconnect, device number 11
1351:[ 40.805351] usb 2-1: USB disconnect, device number 2
1352:[ 40.805356] usb 2-1.4: USB disconnect, device number 3
1353:[ 41.075677] usb 1-1.5: USB disconnect, device number 9
1354:[ 45.195332] usb 1-1: new high-speed USB device number 12 using xhci_hcd
1355:[ 45.338336] usb 1-1: New USB device found, idVendor=2109, idProduct=2820, bcdDevice= d.04
1356:[ 45.338347] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
1357:[ 45.338351] usb 1-1: Product: USB2.0 Hub
1358:[ 45.338355] usb 1-1: Manufacturer: VIA Labs, Inc.
1359:[ 45.339540] hub 1-1:1.0: USB hub found
1368:[ 55.478731] xhci_hcd 0000:00:14.0: USBSTS: HCHalted EINT
1379:[ 55.479724] xhci_hcd 0000:00:14.0: USBSTS: HCHalted EINT
1381:[ 55.479796] usb 1-1: USB disconnect, device number 12
1382:[ 55.479944] usb 1-8: USB disconnect, device number 3
1383:[ 55.653145] usb 1-9: USB disconnect, device number 4
1384:[ 55.653622] usb 1-14: USB disconnect, device number 6
1386:[ 56.018664] usb 2-1: device not accepting address 5, error -108
1387:[ 56.018688] usb usb2-port1: couldn't allocate usb_device
1416:[ 1330.636771] usb usb4: USB disconnect, device number 1
1417:[ 1330.637300] xhci_hcd 0000:2c:00.0: USB bus 4 deregistered
1419:[ 1330.637340] usb usb3: USB disconnect, device number 1
1420:[ 1330.639149] xhci_hcd 0000:2c:00.0: USB bus 3 deregistered
1422:[ 1330.639345] usb usb2: USB disconnect, device number 1
1423:[ 1330.639615] xhci_hcd 0000:00:14.0: USB bus 2 deregistered
1425:[ 1330.639633] usb usb1: USB disconnect, device number 1Last edited by jeroenvlek (2021-11-02 09:31:15)
Offline
There's another message that didn't show up because of the grep above in dmesg that might provide a clue. Either way, I can use my USB keyboard to unlock my LUKS container. My bluetooth (via USB) mouse is also found. It's only after KDE finished starting up that it seems to break.
[ 29.608220] input: MX Anywhere 3 Mouse as /devices/virtual/misc/uhid/0005:046D:B025.0004/input/input29
[ 29.646379] usb 2-1: USB disconnect, device number 2
[ 29.646388] usb 2-1.4: USB disconnect, device number 3
[ 29.719915] hid-generic 0005:046D:B025.0004: input,hidraw0: BLUETOOTH HID v0.14 Mouse [MX Anywhere 3] on b0:60:88:1c:22:07
[ 29.857765] usb 1-1.5: USB disconnect, device number 9
[ 33.186335] usb 1-1: new high-speed USB device number 12 using xhci_hcd
[ 34.019191] usb 1-1: New USB device found, idVendor=2109, idProduct=2820, bcdDevice= d.04
[ 34.019370] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 34.019371] usb 1-1: Product: USB2.0 Hub
[ 34.019372] usb 1-1: Manufacturer: VIA Labs, Inc.
[ 34.020444] hub 1-1:1.0: USB hub found
[ 34.020743] hub 1-1:1.0: 5 ports detected
[ 36.878095] kauditd_printk_skb: 18 callbacks suppressed
[ 36.878098] audit: type=1131 audit(1635929730.597:124): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user@964 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 36.943817] audit: type=1131 audit(1635929730.664:125): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user-runtime-dir@964 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 44.176331] xhci_hcd 0000:00:14.0: Abort failed to stop command ring: -110
[ 44.176337] xhci_hcd 0000:00:14.0: xHCI host controller not responding, assume dead
[ 44.176347] xhci_hcd 0000:00:14.0: HC died; cleaning up
[ 44.176689] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[ 44.176694] xhci_hcd 0000:00:14.0: xHCI host not responding to stop endpoint command.
[ 44.176695] xhci_hcd 0000:00:14.0: USBSTS: HCHalted EINT
[ 44.176836] clocksource: timekeeping watchdog on CPU1: Marking clocksource 'tsc' as unstable because the skew is too large:
[ 44.176838] clocksource: 'acpi_pm' wd_nsec: 0 wd_now: 8f89e3 wd_last: d74242 mask: ffffff
[ 44.176839] clocksource: 'tsc' cs_nsec: 3373884068 cs_now: 35d975c5ae cs_last: 33f6d28aac mask: ffffffffffffffff
[ 44.176841] clocksource: 'tsc' is current clocksource.
[ 44.177009] tsc: Marking TSC unstable due to clocksource watchdog
[ 44.177976] usb 1-1: USB disconnect, device number 12
[ 44.178322] TSC found unstable after boot, most likely due to broken BIOS. Use 'tsc=unstable'.
[ 44.178323] sched_clock: Marking unstable (44170390523, 7931800)<-(44199095702, -20773479)
[ 44.178673] usb 1-8: USB disconnect, device number 3
[ 44.179820] clocksource: Checking clocksource tsc synchronization from CPU 13 to CPUs 0-1,3-4,6,14.
[ 44.180164] clocksource: Switched to clocksource acpi_pm
[ 44.337325] usb 1-9: USB disconnect, device number 4
[ 44.337703] usb 1-14: USB disconnect, device number 6
[ 44.450438] audit: type=1130 audit(1635929738.171:126): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 44.716436] usb 2-1: device not accepting address 4, error -108
[ 44.716500] usb usb2-port1: couldn't allocate usb_deviceThis topic seems to be related, so will try the kernel parameter setting as proposed in this topic
Furhermore, this still works as a temporary fix:
rmmod xhci_pci && modprobe xhci_pciLast edited by jeroenvlek (2021-11-03 09:08:13)
Offline