USB 端口在 20.04 上随机且频繁地“崩溃”

USB 端口在 20.04 上随机且频繁地“崩溃”

我正在运行 Ubuntu 20.04,但这也是 2018 年之前的任何版本(包括 18.04)的一个问题。

我有一台戴尔 XPS 13 (2018),它有三个 USB-C 端口。其中两个在左侧,标有“Thunderbolt”。每当我有设备(鼠标、键盘、显示器/集线器)时,两个“Thunderbolt”端口就会随机冻结,我必须拔下/重新插入设备才能重新打开它们。这种情况经常发生,非常烦人。我还注意到它有时甚至会中断我的蓝牙音频甚至耳机插孔音频。笔记本电脑右侧的单个 USB-C 端口似乎不受所有这些影响。

唯一不会出问题的是连接到这些插头的显示器。如果我将显示器、键盘和显示器都连接到插入这两个雷电端口之一的同一个集线器,键盘和鼠标将冻结,但显示器将保持打开状态而不受影响。

这种情况发生在多个不同的设备和集线器上,但它们在其他机器上运行良好,所以我知道问题不在于设备本身。

这可能是什么原因造成的?

USB“崩溃”后的 dmesg:

[442620.376698] pci_bus 0000:04: Allocating resources
[442620.376717] pcieport 0000:04:01.0: bridge window [io  0x1000-0x0fff] to [bus 06-38] add_size 1000
[442620.376718] pcieport 0000:04:02.0: bridge window [io  0x1000-0x0fff] to [bus 39] add_size 1000
[442620.376720] pcieport 0000:04:02.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 39] add_size 200000 add_align 100000
[442620.376722] pcieport 0000:04:04.0: bridge window [io  0x1000-0x0fff] to [bus 3a-6d] add_size 1000
[442620.376723] pcieport 0000:03:00.0: bridge window [io  0x1000-0x0fff] to [bus 04-6d] add_size 4000
[442620.376727] pcieport 0000:03:00.0: BAR 13: no space for [io  size 0x4000]
[442620.376728] pcieport 0000:03:00.0: BAR 13: failed to assign [io  size 0x4000]
[442620.376729] pcieport 0000:03:00.0: BAR 13: no space for [io  size 0x4000]
[442620.376729] pcieport 0000:03:00.0: BAR 13: failed to assign [io  size 0x4000]
[442620.376734] pcieport 0000:04:02.0: BAR 15: no space for [mem size 0x00200000 64bit pref]
[442620.376735] pcieport 0000:04:02.0: BAR 15: failed to assign [mem size 0x00200000 64bit pref]
[442620.376736] pcieport 0000:04:01.0: BAR 13: no space for [io  size 0x1000]
[442620.376737] pcieport 0000:04:01.0: BAR 13: failed to assign [io  size 0x1000]
[442620.376737] pcieport 0000:04:02.0: BAR 13: no space for [io  size 0x1000]
[442620.376738] pcieport 0000:04:02.0: BAR 13: failed to assign [io  size 0x1000]
[442620.376739] pcieport 0000:04:04.0: BAR 13: no space for [io  size 0x1000]
[442620.376740] pcieport 0000:04:04.0: BAR 13: failed to assign [io  size 0x1000]
[442620.376742] pcieport 0000:04:04.0: BAR 13: no space for [io  size 0x1000]
[442620.376743] pcieport 0000:04:04.0: BAR 13: failed to assign [io  size 0x1000]
[442620.376744] pcieport 0000:04:02.0: BAR 15: no space for [mem size 0x00200000 64bit pref]
[442620.376745] pcieport 0000:04:02.0: BAR 15: failed to assign [mem size 0x00200000 64bit pref]
[442620.376746] pcieport 0000:04:02.0: BAR 13: no space for [io  size 0x1000]
[442620.376747] pcieport 0000:04:02.0: BAR 13: failed to assign [io  size 0x1000]
[442620.376748] pcieport 0000:04:01.0: BAR 13: no space for [io  size 0x1000]
[442620.376749] pcieport 0000:04:01.0: BAR 13: failed to assign [io  size 0x1000]
[442625.508545] pci_bus 0000:04: Allocating resources
[442625.508565] pcieport 0000:04:01.0: bridge window [io  0x1000-0x0fff] to [bus 06-38] add_size 1000
[442625.508568] pcieport 0000:04:02.0: bridge window [io  0x1000-0x0fff] to [bus 39] add_size 1000
[442625.508570] pcieport 0000:04:02.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 39] add_size 200000 add_align 100000
[442625.508572] pcieport 0000:04:04.0: bridge window [io  0x1000-0x0fff] to [bus 3a-6d] add_size 1000
[442625.508574] pcieport 0000:03:00.0: bridge window [io  0x1000-0x0fff] to [bus 04-6d] add_size 4000
[442625.508577] pcieport 0000:03:00.0: BAR 13: no space for [io  size 0x4000]
[442625.508579] pcieport 0000:03:00.0: BAR 13: failed to assign [io  size 0x4000]
[442625.508580] pcieport 0000:03:00.0: BAR 13: no space for [io  size 0x4000]
[442625.508581] pcieport 0000:03:00.0: BAR 13: failed to assign [io  size 0x4000]
[442625.508586] pcieport 0000:04:02.0: BAR 15: no space for [mem size 0x00200000 64bit pref]
[442625.508587] pcieport 0000:04:02.0: BAR 15: failed to assign [mem size 0x00200000 64bit pref]
[442625.508588] pcieport 0000:04:01.0: BAR 13: no space for [io  size 0x1000]
[442625.508589] pcieport 0000:04:01.0: BAR 13: failed to assign [io  size 0x1000]
[442625.508590] pcieport 0000:04:02.0: BAR 13: no space for [io  size 0x1000]
[442625.508591] pcieport 0000:04:02.0: BAR 13: failed to assign [io  size 0x1000]
[442625.508592] pcieport 0000:04:04.0: BAR 13: no space for [io  size 0x1000]
[442625.508593] pcieport 0000:04:04.0: BAR 13: failed to assign [io  size 0x1000]
[442625.508594] pcieport 0000:04:04.0: BAR 13: no space for [io  size 0x1000]
[442625.508595] pcieport 0000:04:04.0: BAR 13: failed to assign [io  size 0x1000]
[442625.508597] pcieport 0000:04:02.0: BAR 15: no space for [mem size 0x00200000 64bit pref]
[442625.508598] pcieport 0000:04:02.0: BAR 15: failed to assign [mem size 0x00200000 64bit pref]
[442625.508599] pcieport 0000:04:02.0: BAR 13: no space for [io  size 0x1000]
[442625.508600] pcieport 0000:04:02.0: BAR 13: failed to assign [io  size 0x1000]
[442625.508601] pcieport 0000:04:01.0: BAR 13: no space for [io  size 0x1000]
[442625.508602] pcieport 0000:04:01.0: BAR 13: failed to assign [io  size 0x1000]
[442633.480320] r8152 4-2.4:1.0 enx000108b002e8: Tx timeout
[442638.600400] xhci_hcd 0000:39:00.0: xHCI host not responding to stop endpoint command.
[442638.600411] xhci_hcd 0000:39:00.0: xHCI host controller not responding, assume dead
[442638.600454] r8152 4-2.4:1.0 enx000108b002e8: Tx status -108
[442638.600460] r8152 4-2.4:1.0 enx000108b002e8: Tx status -108
[442638.600464] r8152 4-2.4:1.0 enx000108b002e8: Tx status -108
[442638.600468] r8152 4-2.4:1.0 enx000108b002e8: Tx status -108
[442638.600519] xhci_hcd 0000:39:00.0: HC died; cleaning up
[442638.600574] usb 3-2: USB disconnect, device number 2
[442638.600579] usb 3-2.1: USB disconnect, device number 14
[442638.600620] usb 3-2.4.1: USB disconnect, device number 7
[442638.601354] usb 4-2: USB disconnect, device number 2
[442638.601360] usb 4-2.4: USB disconnect, device number 3
[442638.603245] usb 3-2.2: USB disconnect, device number 15
[442638.641817] r8152 4-2.4:1.0 enx000108b002e8: Using pass-thru MAC addr 10:65:30:b9:9c:ab
[442638.720850] usb 3-2.4.3: USB disconnect, device number 9
[442638.761090] usb 3-2.3: USB disconnect, device number 5
[442638.939965] usb 3-2.4: USB disconnect, device number 6
[442638.942303] usb 3-2.5: USB disconnect, device number 8
[442651.284777] xhci_hcd 0000:39:00.0: remove, state 1
[442651.284781] usb usb4: USB disconnect, device number 1
[442651.284974] xhci_hcd 0000:39:00.0: USB bus 4 deregistered
[442651.284980] xhci_hcd 0000:39:00.0: remove, state 1
[442651.284982] usb usb3: USB disconnect, device number 1
[442651.285109] xhci_hcd 0000:39:00.0: Host halt failed, -19
[442651.285111] xhci_hcd 0000:39:00.0: Host not accessible, reset failed.
[442651.285214] xhci_hcd 0000:39:00.0: USB bus 3 deregistered
[442651.320704] pci_bus 0000:04: Allocating resources
[442651.320719] pcieport 0000:04:01.0: bridge window [io  0x1000-0x0fff] to [bus 06-38] add_size 1000
[442651.320720] pcieport 0000:04:02.0: bridge window [io  0x1000-0x0fff] to [bus 39] add_size 1000
[442651.320722] pcieport 0000:04:02.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 39] add_size 200000 add_align 100000
[442651.320723] pcieport 0000:04:04.0: bridge window [io  0x1000-0x0fff] to [bus 3a-6d] add_size 1000
[442651.320725] pcieport 0000:03:00.0: bridge window [io  0x1000-0x0fff] to [bus 04-6d] add_size 4000
[442651.320728] pcieport 0000:03:00.0: BAR 13: no space for [io  size 0x4000]
[442651.320729] pcieport 0000:03:00.0: BAR 13: failed to assign [io  size 0x4000]
[442651.320730] pcieport 0000:03:00.0: BAR 13: no space for [io  size 0x4000]
[442651.320731] pcieport 0000:03:00.0: BAR 13: failed to assign [io  size 0x4000]
[442651.320734] pcieport 0000:04:02.0: BAR 15: no space for [mem size 0x00200000 64bit pref]
[442651.320735] pcieport 0000:04:02.0: BAR 15: failed to assign [mem size 0x00200000 64bit pref]
[442651.320736] pcieport 0000:04:01.0: BAR 13: no space for [io  size 0x1000]
[442651.320737] pcieport 0000:04:01.0: BAR 13: failed to assign [io  size 0x1000]
[442651.320738] pcieport 0000:04:02.0: BAR 13: no space for [io  size 0x1000]
[442651.320738] pcieport 0000:04:02.0: BAR 13: failed to assign [io  size 0x1000]
[442651.320739] pcieport 0000:04:04.0: BAR 13: no space for [io  size 0x1000]
[442651.320740] pcieport 0000:04:04.0: BAR 13: failed to assign [io  size 0x1000]
[442651.320741] pcieport 0000:04:04.0: BAR 13: no space for [io  size 0x1000]
[442651.320742] pcieport 0000:04:04.0: BAR 13: failed to assign [io  size 0x1000]
[442651.320744] pcieport 0000:04:02.0: BAR 15: no space for [mem size 0x00200000 64bit pref]
[442651.320745] pcieport 0000:04:02.0: BAR 15: failed to assign [mem size 0x00200000 64bit pref]
[442651.320745] pcieport 0000:04:02.0: BAR 13: no space for [io  size 0x1000]
[442651.320746] pcieport 0000:04:02.0: BAR 13: failed to assign [io  size 0x1000]
[442651.320747] pcieport 0000:04:01.0: BAR 13: no space for [io  size 0x1000]
[442651.320748] pcieport 0000:04:01.0: BAR 13: failed to assign [io  size 0x1000]
[442656.294645] pcieport 0000:04:00.0: Refused to change power state, currently in D3
[442656.297221] pci_bus 0000:05: busn_res: [bus 05] is released
[442656.298859] pci_bus 0000:06: busn_res: [bus 06-38] is released
[442656.299481] pci_bus 0000:39: busn_res: [bus 39] is released
[442656.301787] pci_bus 0000:3a: busn_res: [bus 3a-6d] is released
[442656.301865] pci_bus 0000:04: busn_res: [bus 04-6d] is released

dmesg 中的这一部分可能特别有用:

[442638.600519] xhci_hcd 0000:39:00.0: HC died; cleaning up
[442638.600574] usb 3-2: USB disconnect, device number 2
[442638.600579] usb 3-2.1: USB disconnect, device number 14
[442638.600620] usb 3-2.4.1: USB disconnect, device number 7
[442638.601354] usb 4-2: USB disconnect, device number 2
[442638.601360] usb 4-2.4: USB disconnect, device number 3
[442638.603245] usb 3-2.2: USB disconnect, device number 15
[442638.641817] r8152 4-2.4:1.0 enx000108b002e8: Using pass-thru MAC addr 10:65:30:b9:9c:ab
[442638.720850] usb 3-2.4.3: USB disconnect, device number 9
[442638.761090] usb 3-2.3: USB disconnect, device number 5
[442638.939965] usb 3-2.4: USB disconnect, device number 6
[442638.942303] usb 3-2.5: USB disconnect, device number 8
[442651.284777] xhci_hcd 0000:39:00.0: remove, state 1
[442651.284781] usb usb4: USB disconnect, device number 1
[442651.284974] xhci_hcd 0000:39:00.0: USB bus 4 deregistered
[442651.284980] xhci_hcd 0000:39:00.0: remove, state 1
[442651.284982] usb usb3: USB disconnect, device number 1
[442651.285109] xhci_hcd 0000:39:00.0: Host halt failed, -19
[442651.285111] xhci_hcd 0000:39:00.0: Host not accessible, reset failed.

相关内容