Comment 0 for bug 1857385

Revision history for this message
kraba (kraba) wrote :

Hello,
I'm using a Lenovo T495s with the Lenovo AJ40 - Ultra Docking Station USB-C (https://support.lenovo.com/us/en/solutions/pd500173O) and, when I undock the laptop from the docking station, the USB Hub disconnects all the local laptop USB ports and they are unusable.
If I try to re-attach the laptop to the docking station nothing change, the ports (docking and laptop) are still disconnected, the hdmi/lan/power is working good. Sometimes it happens also when the laptop is docked and I'm working.

The issue seems similar of the bug 1766076:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1766076

but here no thunderbolt, it's a ryzen cpu.
As written in the bug 1766076, the only way to have the USB in working condition is unbinding/binding the xhci or using the unit/systemd workaround described on post 83 (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1766076/comments/83) with some modification, sometimes is still not working at all.

The issue is present on Ubuntu 19.10 (see below the logs), on Ubuntu 18.04 (with kernel 4.x or 5.0 mainline by ubuntu, 5.2 and 5.4 debs installed from kernel.org) and on Fedora 31 too. In Windows everything is working fine.

The bios and firmware of the docking station are updated at the last one (1 month ago).

The dmesg when I undock the laptop:

[ 305.299725] usb 2-1: USB disconnect, device number 2
[ 305.310888] [drm] DM_MST: stopping TM on aconnector: 000000008e933bad [id: 77]
[ 305.311186] [drm] DM_MST: Disabling connector: 000000000c5e8d66 [id: 81] [master: 000000008e933bad]
[ 305.311957] [drm] DM_MST: Disabling connector: 00000000b7fb3125 [id: 86] [master: 000000008e933bad]
[ 305.312136] [drm] DM_MST: Disabling connector: 00000000e642e447 [id: 91] [master: 000000008e933bad]
[ 305.362012] r8169 0000:03:00.0 enp3s0f0: Link is Down
[ 305.464627] usb 3-4: USB disconnect, device number 2
[ 305.464642] usb 3-4.2: USB disconnect, device number 3
[ 305.472691] usb 2-4: USB disconnect, device number 4
[ 305.472704] usb 2-4.2: USB disconnect, device number 5
[ 305.472712] usb 2-4.2.4: USB disconnect, device number 7
[ 306.725746] usb 2-4.2.4: 2:1: usb_set_interface failed (-19)
[ 306.725892] usb 2-4.2.4: 2:1: usb_set_interface failed (-19)
...hundreds of line - the same
[ 310.520323] usb 2-4.2.4: 2:1: usb_set_interface failed (-19)
[ 310.520504] xhci_hcd 0000:05:00.3: xHCI host not responding to stop endpoint command.
[ 310.520622] usb 2-4.2.4: 2:1: usb_set_interface failed (-19)
....hundreds of line - the same
[ 310.529388] usb 2-4.2.4: 2:1: usb_set_interface failed (-19)
[ 310.529626] usb 2-4.2.4: 2:1: usb_set_interface failed (-19)
[ 310.530634] usb 2-4.2.4: 2:1: usb_set_interface failed (-19)
[ 310.530740] usb 2-4.2.4: 2:1: usb_set_interface failed (-19)
[ 310.530843] usb 2-4.2.4: 2:1: usb_set_interface failed (-19)
[ 310.531095] usb 2-4.2.4: 2:1: usb_set_interface failed (-19)
[ 310.531324] usb 2-4.2.4: 2:1: usb_set_interface failed (-19)
[ 310.532315] xhci_hcd 0000:05:00.3: xHCI host controller not responding, assume dead
[ 310.532379] xhci_hcd 0000:05:00.3: HC died; cleaning up
[ 310.532440] xhci_hcd 0000:05:00.3: Timeout while waiting for configure endpoint command
[ 310.670248] usb 2-4.3: USB disconnect, device number 6
[ 310.834039] usb 2-4.5: USB disconnect, device number 8
[ 310.835017] usb 2-2: USB disconnect, device number 10

When I re-attach the latop to the docking:

[ 343.111212] r8169 0000:03:00.0 enp3s0f0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 344.272052] [drm] DM_MST: starting TM on aconnector: 000000008e933bad [id: 77]
[ 344.365795] [drm] DM_MST: added connector: 00000000e2f1a7b4 [id: 100] [master: 000000008e933bad]
[ 344.365857] [drm] DM_MST: added connector: 00000000c263592d [id: 105] [master: 000000008e933bad]
[ 344.365899] [drm] DM_MST: added connector: 0000000044df80f6 [id: 116] [master: 000000008e933bad]

Software:
Ubuntu 19.10 - Ubuntu 5.3.0-24.26-generic 5.3.10
Linux xxxx 5.3.0-24-generic #26-Ubuntu SMP Thu Nov 14 01:33:18 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

lspci: (laptop + docking)
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 7
01:00.0 Network controller: Intel Corporation Wireless-AC 9260 (rev 29)
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0e)
03:00.1 Serial controller: Realtek Semiconductor Co., Ltd. Device 816a (rev 0e)
03:00.2 Serial controller: Realtek Semiconductor Co., Ltd. Device 816b (rev 0e)
03:00.3 IPMI Interface: Realtek Semiconductor Co., Ltd. Device 816c (rev 0e)
03:00.4 USB controller: Realtek Semiconductor Co., Ltd. Device 816d (rev 0e)
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev d2)
05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller
05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
05:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor
05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller

fwupdmgr get-topology

├─ Prometheus 654a303a1e04fc691939521f42e5a306fdc28433
│ └─ Prometheus IOTA Config 35af324dd3c451bc30f39e4c877bc54dd0eb4373
├─ 20QJCTO1WW System Firmware e4eabd9f25b643f6505492b906237786c51b88a9
├─ UEFI Device Firmware 45c16422ab5db47f84c0a9ef1ee73645a6332ae7
├─ UEFI Device Firmware 9169e7d5c798b90147cdc12be3f5155e46e52b74
└─ SAMSUNG MZVLB512HBJQ-000L7 03281da317dccd2b18de2bd1cc70a782df40ed7e