hub problems on high CPU load
Hi all,
I have a monitor with an inbuilt KVM switch - it has USB ports into which my mouse and keyboard are plugged in, and appears to the host as a USB hub.
Twice today I've been working on my laptop with my desktop running Gentoo doing "emerge qtwebengine" in the background, and when I've gone to switch back the mouse and keyboard don't work. The first time I rebooted, but the second time I unplugged the hub and plugged it back in and it seems to have fixed it.
This is on 6.19.0, I don't recall anything similar happening on previous kernels. I think it's high CPU load rather than an OOM as there's nothing in the log about anything being killed.
Thanks!
Mark
Quoted 96 lines
[ 6695.077406] rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 18-.... } 21 jiffies s: 11233 root: 0x2/. [ 6695.077413] rcu: blocking rcu_node structures (internal RCU debug): l=1:16-31:0x4/. [ 6695.077416] Sending NMI from CPU 13 to CPUs 18: [ 6695.077420] NMI backtrace for cpu 18 [ 6695.077423] CPU: 18 UID: 1000 PID: 7947 Comm: CanvasRenderer Tainted: G O 6.19.0 #2 PREEMPT [ 6695.077425] Tainted: [O]=OOT_MODULE [ 6695.077425] Hardware name: ASUS System Product Name/TUF GAMING B650-PLUS WIFI, BIOS 2613 04/12/2024 [ 6695.077426] RIP: 0010:rt_mutex_slowlock_block+0x13d/0x1b0 [ 6695.077430] Code: 8b 45 18 48 83 e0 fe 49 39 c4 75 21 41 83 7c 24 34 00 74 20 41 8b 44 24 14 48 f7 03 10 00 00 00 75 12 4d 39 7d 10 75 0c f3 90 <eb> d3 90 e8 4b df 63 ff eb 0a e8 44 df 63 ff e8 4f e3 5e ff 4c 89 [ 6695.077431] RSP: 0018:ffffc9000afe7c28 EFLAGS: 00000246 [ 6695.077433] RAX: 0000000000000009 RBX: ffff88821cceac00 RCX: ffff8881b72d1601 [ 6695.077433] RDX: ffffc9000afe7d40 RSI: ffff88821cceac00 RDI: ffff8881021fbe50 [ 6695.077434] RBP: 0000000000000000 R08: 0000000000000000 R09: 000000000000d784 [ 6695.077434] R10: 000000000000d784 R11: 0000000000000206 R12: ffff8881b72d1600 [ 6695.077435] R13: ffff8881021fbe50 R14: 0000000000000000 R15: ffffc9000afe7d40 [ 6695.077435] FS: 00007f54425ff6c0(0000) GS:ffff88903ca0d000(0000) knlGS:0000000000000000 [ 6695.077436] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 6695.077436] CR2: 00007fcbd210f400 CR3: 00000001aa953000 CR4: 0000000000750ef0 [ 6695.077437] PKRU: 55555554 [ 6695.077437] Call Trace: [ 6695.077440] <TASK> [ 6695.077441] rt_mutex_wait_proxy_lock+0x41/0x80 [ 6695.077443] futex_lock_pi+0x2a3/0x510 [ 6695.077445] ? __futex_wake_mark+0x40/0x40 [ 6695.077446] ? wake_up_q+0x4c/0x80 [ 6695.077447] ? futex_wake+0x16d/0x1a0 [ 6695.077448] do_futex+0x129/0x150 [ 6695.077449] __se_sys_futex+0x11f/0x1a0 [ 6695.077449] ? restore_fpregs_from_fpstate+0x40/0xa0 [ 6695.077451] do_syscall_64+0x61/0x620 [ 6695.077452] ? arch_exit_to_user_mode_prepare+0x9/0x60 [ 6695.077453] ? irqentry_exit+0x37/0x4f0 [ 6695.077454] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 6695.077455] RIP: 0033:0x7f546e6c78cf [ 6695.077456] Code: b9 01 00 00 00 e9 21 ff ff ff 90 f3 0f 1e fa 49 89 d2 85 f6 74 45 89 ce 40 80 f6 8d 48 85 d2 74 3a 31 d2 b8 ca 00 00 00 0f 05 <83> f8 da 74 3c 83 f8 92 74 18 8d 50 23 83 fa 23 77 35 48 b9 01 20 [ 6695.077457] RSP: 002b:00007f54425fe848 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 6695.077457] RAX: ffffffffffffffda RBX: 00007f5448687f30 RCX: 00007f546e6c78cf [ 6695.077458] RDX: 0000000000000000 RSI: 0000000000000086 RDI: 00007f5448687f30 [ 6695.077458] RBP: 0000000000000000 R08: 00007f54425ff6c0 R09: 0000000000000000 [ 6695.077458] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 6695.077459] R13: 0000000000000001 R14: 00007f5448687f40 R15: 00007f541ae3b600 [ 6695.077459] </TASK> [ 7175.458090] usb 1-7: USB disconnect, device number 49 [ 7175.458096] usb 1-7.2: USB disconnect, device number 50 [ 7175.680358] usb 1-7.3: USB disconnect, device number 51 [ 7175.823763] usb 1-7.6: USB disconnect, device number 52 [10508.257777] usb 1-7: new high-speed USB device number 53 using xhci_hcd [10508.493010] hub 1-7:1.0: USB hub found [10523.797346] hub 1-7:1.0: config failed, can't read hub descriptor (err -22) [10523.808860] xhci_hcd 0000:0a:00.0: USB core suspending port 1-7 not in U0/U1/U2 [10528.917400] usb 1-7: Failed to suspend device, error -32 [10528.917435] usb 1-7: USB disconnect, device number 53 [10531.591152] usb 1-7: new high-speed USB device number 54 using xhci_hcd [10531.824808] hub 1-7:1.0: USB hub found [10531.828685] hub 1-7:1.0: 6 ports detected [10532.171254] usb 1-7.2: new full-speed USB device number 55 using xhci_hcd [10532.521914] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:02.1/0000:03:00.0/0000:04:0c.0/0000:0a:00.0/usb1/1-7/1-7.2/1-7.2:1.0/0003:046D:C53D.0062/input/input92 [10532.613001] hid-generic 0003:046D:C53D.0062: input,hidraw1: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:0a:00.0-7.2/input0 [10532.630890] input: Logitech USB Receiver Mouse as /devices/pci0000:00/0000:00:02.1/0000:03:00.0/0000:04:0c.0/0000:0a:00.0/usb1/1-7/1-7.2/1-7.2:1.1/0003:046D:C53D.0063/input/input93 [10532.630974] input: Logitech USB Receiver Consumer Control as /devices/pci0000:00/0000:00:02.1/0000:03:00.0/0000:04:0c.0/0000:0a:00.0/usb1/1-7/1-7.2/1-7.2:1.1/0003:046D:C53D.0063/input/input94 [10532.682041] input: Logitech USB Receiver System Control as /devices/pci0000:00/0000:00:02.1/0000:03:00.0/0000:04:0c.0/0000:0a:00.0/usb1/1-7/1-7.2/1-7.2:1.1/0003:046D:C53D.0063/input/input95 [10532.682113] hid-generic 0003:046D:C53D.0063: input,hiddev97,hidraw2: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:0a:00.0-7.2/input1 [10532.697804] hid-generic 0003:046D:C53D.0064: hiddev98,hidraw3: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:0a:00.0-7.2/input2 [10532.783926] usb 1-7.3: new full-speed USB device number 56 using xhci_hcd [10533.168829] logitech-djreceiver 0003:046D:C52B.0067: hiddev99,hidraw4: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:0a:00.0-7.3/input2 [10533.292744] input: Logitech MX Master 2S as /devices/pci0000:00/0000:00:02.1/0000:03:00.0/0000:04:0c.0/0000:0a:00.0/usb1/1-7/1-7.3/1-7.3:1.2/0003:046D:C52B.0067/0003:046D:4069.0068/input/input97 [10533.332006] logitech-hidpp-device 0003:046D:4069.0068: input,hidraw5: USB HID v1.11 Keyboard [Logitech MX Master 2S] on usb-0000:0a:00.0-7.3/input2:1 [10533.379238] usb 1-7.6: new high-speed USB device number 57 using xhci_hcd [10533.535878] hid-generic 0003:0BDA:1100.0069: hiddev100,hidraw6: USB HID v1.11 Device [Realtek HID Device] on usb-0000:0a:00.0-7.6/input0 [10535.673514] usb 1-7: USB disconnect, device number 54 [10535.673520] usb 1-7.2: USB disconnect, device number 55 [10535.875368] usb 1-7.3: USB disconnect, device number 56 [10535.998489] usb 1-7.6: USB disconnect, device number 57$ lspci -s 0a:00.0 -v 0a:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset USB 3.2 Controller (rev 01) (prog-if 30 [XHCI]) Subsystem: ASMedia Technology Inc. Device 1142 Flags: bus master, fast devsel, latency 0, IRQ 24, IOMMU group 21 Memory at f6900000 (64-bit, non-prefetchable) [size=32K] Capabilities: <access denied> Kernel driver in use: xhci_hcd Kernel modules: xhci_pci$ lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 13d3:3571 IMC Networks Bluetooth Radio Bus 001 Device 004: ID 0b05:19af ASUSTek Computer, Inc. AURA LED Controller Bus 001 Device 070: ID 0b00:5411 INGENICO USB2.1 Hub Bus 001 Device 071: ID 046d:c53d Logitech, Inc. G631 Keyboard Bus 001 Device 072: ID 046d:c52b Logitech, Inc. Unifying Receiver Bus 001 Device 073: ID 0bda:1100 Realtek Semiconductor Corp. HID Device Bus 002 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 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Quoted 11 lines · Mark Harmstone
Hi all,
I have a monitor with an inbuilt KVM switch - it has USB ports into which my mouse and keyboard are plugged in, and appears to the host as a USB hub.
Twice today I've been working on my laptop with my desktop running Gentoo doing "emerge qtwebengine" in the background, and when I've gone to switch back the mouse and keyboard don't work. The first time I rebooted, but the second time I unplugged the hub and plugged it back in and it seems to have fixed it.
Quoted 3 lines
This is on 6.19.0, I don't recall anything similar happening on previous kernels. I think it's high CPU load rather than an OOM as there's nothing in the log about anything being killed.
If you're sure that the problems started happening with 6.19.0, perhaps you can do a bisection between it and 6.18.0 to find out which change to the kernel was responsible.
Alan Stern
Quoted 17 lines · Alan Stern
Quoted 1 line
Quoted 11 lines · Mark Harmstone
Hi all,
I have a monitor with an inbuilt KVM switch - it has USB ports into which my mouse and keyboard are plugged in, and appears to the host as a USB hub.
Twice today I've been working on my laptop with my desktop running Gentoo doing "emerge qtwebengine" in the background, and when I've gone to switch back the mouse and keyboard don't work. The first time I rebooted, but the second time I unplugged the hub and plugged it back in and it seems to have fixed it.
Quoted 3 lines
This is on 6.19.0, I don't recall anything similar happening on previous kernels. I think it's high CPU load rather than an OOM as there's nothing in the log about anything being killed.
Quoted 5 lines
If you're sure that the problems started happening with 6.19.0, perhaps you can do a bisection between it and 6.18.0 to find out which change to the kernel was responsible.
Alan Stern
Thanks Alan, that would have been my next suggestion. Just thought I'd check here first in case it was a known issue.
Mark