xHCI host controller not responding, assume dead via USB-C docking station

Bug #1857385 reported by kraba
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

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 to 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
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu8.2
Architecture: amd64
DistroRelease: Ubuntu 19.10
InstallationDate: Installed on 2019-12-23 (0 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
MachineType: LENOVO 20QJCTO1WW
Package: linux (not installed)
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.3.0-24-generic root=UUID=f581f338-3e87-4b63-afef-1045664329fe ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 5.3.0-24.26-generic 5.3.10
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-5.3.0-24-generic N/A
 linux-backports-modules-5.3.0-24-generic N/A
 linux-firmware 1.183.3
Tags: eoan
Uname: Linux 5.3.0-24-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True
dmi.bios.date: 10/29/2019
dmi.bios.vendor: LENOVO
dmi.bios.version: R13ET40W(1.14 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20QJCTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.modalias: dmi:bvnLENOVO:bvrR13ET40W(1.14):bd10/29/2019:svnLENOVO:pn20QJCTO1WW:pvrThinkPadT495s:rvnLENOVO:rn20QJCTO1WW:rvrNotDefined:cvnLENOVO:ct10:cvrNone:
dmi.product.family: ThinkPad T495s
dmi.product.name: 20QJCTO1WW
dmi.product.sku: LENOVO_MT_20QJ_BU_Think_FM_ThinkPad T495s
dmi.product.version: ThinkPad T495s
dmi.sys.vendor: LENOVO

Revision history for this message
kraba (kraba) wrote :
tags: added: apport-collected eoan
description: updated
Revision history for this message
kraba (kraba) wrote : AlsaInfo.txt

apport information

Revision history for this message
kraba (kraba) wrote : AudioDevicesInUse.txt

apport information

Revision history for this message
kraba (kraba) wrote : CRDA.txt

apport information

Revision history for this message
kraba (kraba) wrote : CurrentDmesg.txt

apport information

Revision history for this message
kraba (kraba) wrote : IwConfig.txt

apport information

Revision history for this message
kraba (kraba) wrote : Lspci.txt

apport information

Revision history for this message
kraba (kraba) wrote : Lsusb.txt

apport information

Revision history for this message
kraba (kraba) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
kraba (kraba) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
kraba (kraba) wrote : ProcInterrupts.txt

apport information

Revision history for this message
kraba (kraba) wrote : ProcModules.txt

apport information

Revision history for this message
kraba (kraba) wrote : RfKill.txt

apport information

Revision history for this message
kraba (kraba) wrote : UdevDb.txt

apport information

Revision history for this message
kraba (kraba) wrote : WifiSyslog.txt

apport information

kraba (kraba)
description: updated
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
kraba (kraba) wrote :

just for info : I tried also the kernel provided by https://launchpad.net/~kaihengfeng on post 90 ( https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1766076/comments/90) but nothing changed

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Revision history for this message
kraba (kraba) wrote :
Download full text (15.8 KiB)

tested but it's still stucking the usb hub. After the undock I need to run the reset of the USB hub to have it working.

Undock:

[ 84.219765] usb 2-1: USB disconnect, device number 2
[ 84.225638] [drm] DM_MST: stopping TM on aconnector: 00000000da0f527b [id: 78]
[ 84.225876] [drm] DM_MST: Disabling connector: 0000000063ebb1ca [id: 83] [master: 00000000da0f527b]
[ 84.227747] [drm] DM_MST: Disabling connector: 000000004a641ca6 [id: 88] [master: 00000000da0f527b]
[ 84.228238] [drm] DM_MST: Disabling connector: 00000000c365f2c1 [id: 93] [master: 00000000da0f527b]
[ 84.255498] usb 3-4: USB disconnect, device number 2
[ 84.255516] usb 3-4.2: USB disconnect, device number 3
[ 84.255528] usb 3-4.2.2: USB disconnect, device number 4
[ 84.285331] r8169 0000:03:00.0 enp3s0f0: Link is Down
[ 84.380070] usb 2-4: USB disconnect, device number 3
[ 84.380088] usb 2-4.2: USB disconnect, device number 4
[ 84.380101] usb 2-4.2.4: USB disconnect, device number 6
[ 84.590759] usb 2-4.3: USB disconnect, device number 5
[ 94.852024] xhci_hcd 0000:05:00.3: Abort failed to stop command ring: -110
[ 94.863836] xhci_hcd 0000:05:00.3: xHCI host controller not responding, assume dead
[ 94.863859] xhci_hcd 0000:05:00.3: HC died; cleaning up
[ 94.863951] xhci_hcd 0000:05:00.3: Timeout while waiting for configure endpoint command
[ 94.865041] usb 2-4.5: USB disconnect, device number 7

Dock:

[ 147.920108] r8169 0000:03:00.0 enp3s0f0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 148.973615] [drm] DM_MST: starting TM on aconnector: 00000000da0f527b [id: 78]
[ 149.070161] [drm] DM_MST: added connector: 000000001e859739 [id: 101] [master: 00000000da0f527b]
[ 149.070321] [drm] DM_MST: added connector: 00000000761fd001 [id: 106] [master: 00000000da0f527b]
[ 149.070414] [drm] DM_MST: added connector: 00000000f8739422 [id: 117] [master: 00000000da0f527b]

unbind/bind manually/via script:

[ 197.186295] xhci_hcd 0000:05:00.3: remove, state 1
[ 197.186302] usb usb3: USB disconnect, device number 1
[ 197.186786] xhci_hcd 0000:05:00.3: USB bus 3 deregistered
[ 197.186850] xhci_hcd 0000:05:00.3: remove, state 1
[ 197.186854] usb usb2: USB disconnect, device number 1
[ 197.187771] xhci_hcd 0000:05:00.3: USB bus 2 deregistered
[ 197.188174] xhci_hcd 0000:05:00.4: remove, state 4
[ 197.188181] usb usb5: USB disconnect, device number 1
[ 197.188540] xhci_hcd 0000:05:00.4: USB bus 5 deregistered
[ 197.188560] xhci_hcd 0000:05:00.4: remove, state 1
[ 197.188567] usb usb4: USB disconnect, device number 1
[ 197.188569] usb 4-1: USB disconnect, device number 2
[ 197.189511] usb 4-2: USB disconnect, device number 3
[ 197.189517] usb 4-2.1: USB disconnect, device number 4
[ 197.262799] usb 4-2.4: USB disconnect, device number 5
[ 197.312146] xhci_hcd 0000:05:00.4: Host halt failed, -110
[ 197.312149] xhci_hcd 0000:05:00.4: Host controller not halted, aborting reset.
[ 197.312483] xhci_hcd 0000:05:00.4: USB bus 4 deregistered
[ 198.315237] xhci_hcd 0000:05:00.3: xHCI Host Controller
[ 198.315247] xhci_hcd 0000:05:00.3: new USB bus registered, assigned bus number 2
[ 198.315424] xhci_hcd 0000:05:00.3: hcc params 0x0270ffe5 hci vers...

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Can you please test this kernel:
https://people.canonical.com/~khfeng/lp1857385/

Revision history for this message
kraba (kraba) wrote :
Download full text (20.5 KiB)

Tested, still the same results: no usb available after the undock on laptop (I had a pendrive attached to test)

uname -a
Linux 5.3.0-27-generic #29~lp1857385 SMP Fri Jan 3 21:30:32 CST 2020 x86_64 x86_64 x86_64 GNU/Linux

dmesg when I undock the laptop:

[ 129.399949] usb 2-1: USB disconnect, device number 2
[ 129.417254] [drm] DM_MST: stopping TM on aconnector: 0000000076d67240 [id: 77]
[ 129.417557] [drm] DM_MST: Disabling connector: 00000000242d96de [id: 81] [master: 0000000076d67240]
[ 129.418358] [drm] DM_MST: Disabling connector: 000000003436afd3 [id: 86] [master: 0000000076d67240]
[ 129.418543] [drm] DM_MST: Disabling connector: 000000001b62a1c6 [id: 91] [master: 0000000076d67240]
[ 129.431465] usb 3-4: USB disconnect, device number 2
[ 129.431478] usb 3-4.2: USB disconnect, device number 3
[ 129.467388] r8169 0000:03:00.0 enp3s0f0: Link is Down
[ 129.581266] usb 2-4: USB disconnect, device number 3
[ 129.581280] usb 2-4.2: USB disconnect, device number 4
[ 129.581288] usb 2-4.2.4: USB disconnect, device number 6
[ 131.262762] usb 2-4.2.4: 2:1: usb_set_interface failed (-19)
[ 131.262932] usb 2-4.2.4: 2:1: usb_set_interface failed (-19)
....hundreds of lines (the same)
[ 134.530663] usb 2-4.2.4: 2:1: usb_set_interface failed (-19)
[ 135.983562] [drm] Fence fallback timer expired on ring sdma0
[ 135.987559] [drm] Fence fallback timer expired on ring gfx
[ 136.495422] [drm] Fence fallback timer expired on ring sdma0
[ 137.007323] [drm] Fence fallback timer expired on ring sdma0
[ 137.519202] [drm] Fence fallback timer expired on ring sdma0
[ 138.031056] [drm] Fence fallback timer expired on ring sdma0
[ 142.290091] iwlwifi 0000:01:00.0: Error sending STATISTICS_CMD: time out after 2000ms.
[ 142.290101] iwlwifi 0000:01:00.0: Current CMD queue read_ptr 176 write_ptr 177
[ 142.292482] iwlwifi 0000:01:00.0: Start IWL Error Log Dump:
[ 142.292486] iwlwifi 0000:01:00.0: Status: 0x00000080, count: 6
[ 142.292491] iwlwifi 0000:01:00.0: Loaded firmware version: 46.6bf1df06.0
[ 142.292495] iwlwifi 0000:01:00.0: 0x00000071 | NMI_INTERRUPT_UMAC_FATAL
[ 142.292499] iwlwifi 0000:01:00.0: 0x000026F4 | trm_hw_status0
[ 142.292502] iwlwifi 0000:01:00.0: 0x00000000 | trm_hw_status1
[ 142.292506] iwlwifi 0000:01:00.0: 0x0048853E | branchlink2
[ 142.292509] iwlwifi 0000:01:00.0: 0x00192402 | interruptlink1
[ 142.292512] iwlwifi 0000:01:00.0: 0x00479392 | interruptlink2
[ 142.292515] iwlwifi 0000:01:00.0: 0x0001ACA2 | data1
[ 142.292518] iwlwifi 0000:01:00.0: 0xFF001000 | data2
[ 142.292521] iwlwifi 0000:01:00.0: 0xF0000000 | data3
[ 142.292524] iwlwifi 0000:01:00.0: 0x4780C555 | beacon time
[ 142.292527] iwlwifi 0000:01:00.0: 0x059DFF69 | tsf low
[ 142.292529] iwlwifi 0000:01:00.0: 0x00000163 | tsf hi
[ 142.292532] iwlwifi 0000:01:00.0: 0x00000000 | time gp1
[ 142.292535] iwlwifi 0000:01:00.0: 0x08362F53 | time gp2
[ 142.292538] iwlwifi 0000:01:00.0: 0x00000001 | uCode revision type
[ 142.292541] iwlwifi 0000:01:00.0: 0x0000002E | uCode version major
[ 142.292543] iwlwifi 0000:01:00.0: 0x6BF1DF06 | uCode version minor
[ 142.292546] iwlwifi 0000:01:00.0: 0x00000321 | hw version
[ 142.292549] iwlwifi 0000:01:00...

Revision history for this message
Xavier Claessens (zdra) wrote :

Same here on x395 (amd chipset) with Ubuntu 18.04 and 20.04 (kernel 5.4.0-14-generic). Also same on Fedora 31.

Attached a script that restore USB after undocking as workaround.

Revision history for this message
Xavier Claessens (zdra) wrote :

Logs I see in dmesg when undocking:

[ 233.116257] xhci_hcd 0000:05:00.3: Abort failed to stop command ring: -110
[ 233.128054] xhci_hcd 0000:05:00.3: xHCI host controller not responding, assume dead
[ 233.128087] xhci_hcd 0000:05:00.3: HC died; cleaning up
[ 233.128286] xhci_hcd 0000:05:00.3: Timeout while waiting for configure endpoint command
[ 233.128382] usb 2-4.2.4: Not enough bandwidth for altsetting 1
[ 233.128389] usb 2-4.2.4: 2:1: usb_set_interface failed (-19)
... last 2 lines are repeated a lot.

Revision history for this message
Carlo Wood (carlo-alinoe) wrote :
Revision history for this message
Raymond Yeung (rksyeung) wrote :

This issue seems very recent, I want to know if this applies to my case and if there's a workaround (e.g. lower the speed via configuration - how?).

I'm using NXP embedded processor (SoC) running Ubuntu 19.06 with Linux kernel 4.14.122. A condole message exact like what everyone reports here is shown at end of Linux initialization. And we will lose access to a USB device. Obvious this breaks our system.

I notice a very similar problem was reported like a couple of years ago. Do we still have no fix?

Revision history for this message
Bernie Bernstein (bernie9998) wrote :
Download full text (18.4 KiB)

I have the same issue with my Cable Matters USB-C dual 4k DisplayPort docking station and HP Elitebook laptop.

In my experience, it does not occur on every disconnect, however each time it does occur, it appears to be preceded by a kernel oops:

[114032.828215] usb 2-1: USB disconnect, device number 50
[114032.828220] usb 2-1.3: USB disconnect, device number 51
[114032.828222] usb 2-1.3.2: USB disconnect, device number 58
[114032.828225] usb 2-1.3.2.1: USB disconnect, device number 59
[114032.829619] [drm] DM_MST: stopping TM on aconnector: 00000000660e4f23 [id: 77]
[114032.829741] [drm] DM_MST: Disabling connector: 000000005955f6aa [id: 95] [master: 00000000660e4f23]
[114032.829901] ------------[ cut here ]------------
[114032.829902] sysfs group 'power' not found for kobject 'i2c-11'
[114032.829920] WARNING: CPU: 3 PID: 42300 at fs/sysfs/group.c:279 sysfs_remove_group+0x7c/0x80
[114032.829921] Modules linked in: vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) ccm binfmt_misc rfcomm cmac algif_hash algif_skcipher af_alg cdc_ether usbnet snd_usb_audio snd_usbmidi_lib usbhid r8152 mii bnep btusb btrtl btbcm btintel bluetooth ecdh_generic ecc uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common bonding aufs evdi(OE) snd_hda_codec_conexant snd_hda_codec_generic overlay ledtrig_audio snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hda_core snd_hwdep snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device snd_timer snd iwlmvm nls_iso8859_1 soundcore mac80211 libarc4 edac_mce_amd iwlwifi kvm_amd ccp kvm hp_wmi joydev input_leds sparse_keymap serio_raw wmi_bmof hid_multitouch cfg80211 ucsi_acpi typec_ucsi ipmi_devintf k10temp ipmi_msghandler typec mac_hid hp_wireless sch_fq_codel v4l2loopback(OE) videodev mc parport_pc ppdev lp parport ip_tables x_tables autofs4 raid10 raid456 async_raid6_recov async_memcpy async_pq
[114032.829978] async_xor async_tx xor uas usb_storage raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic amdgpu crct10dif_pclmul crc32_pclmul amd_iommu_v2 ghash_clmulni_intel gpu_sched i2c_algo_bit ttm aesni_intel drm_kms_helper i2c_hid crypto_simd hid cryptd syscopyarea sysfillrect glue_helper psmouse sysimgblt nvme fb_sys_fops ahci i2c_piix4 drm libahci nvme_core r8169 realtek wmi video i2c_amd_mp2_plat i2c_amd_mp2_pci
[114032.830005] CPU: 3 PID: 42300 Comm: kworker/3:0 Tainted: G OE 5.4.0-42-generic #46-Ubuntu
[114032.830007] Hardware name: HP HP EliteBook 755 G5/83D5, BIOS Q81 Ver. 01.10.00 01/03/2020
[114032.830019] Workqueue: events drm_dp_destroy_connector_work [drm_kms_helper]
[114032.830023] RIP: 0010:sysfs_remove_group+0x7c/0x80
[114032.830026] Code: e7 e8 98 b9 ff ff 5b 41 5c 41 5d 5d c3 4c 89 e7 e8 e9 b4 ff ff eb c9 49 8b 55 00 48 8b 33 48 c7 c7 10 de b8 97 e8 6f 9f d1 ff <0f> 0b eb d8 0f 1f 44 00 00 48 85 f6 74 37 55 48 89 e5 41 55 41 54
[114032.830027] RSP: 0018:ffffabccc0363c18 EFLAGS: 00010286
[114032.830029] RAX: 0000000000000000 RBX: ffffffff978f3c60 RCX: 0000000000000006
[114032.830030] RDX: 0000000000000007 RSI: 0000000000000086 RDI: ffff9a4d5fcd78c0
[114032.830032] RBP: ffffabccc0363c30 R08: 0000000000000c98 R09: 0000000000000004
[11403...

Revision history for this message
simone-c (simone-c) wrote :

Lenovo X1 Extreme Gen2
Docking Lenovo Thunderbolt 3 Gen2

Was getting similar random disconnects every 2-5 minutes:

[125028.443102] pcieport 0000:05:01.0: pciehp: Slot(1): Link Down
[125028.443108] pcieport 0000:05:01.0: pciehp: Slot(1): Card not present
[125028.443122] pcieport 0000:08:04.0: can't change power state from D3cold to D0 (config space inaccessible)
[125028.444133] xhci_hcd 0000:09:00.0: remove, state 1
[125028.444151] usb usb6: USB disconnect, device number 1
[125028.444156] usb 6-2: USB disconnect, device number 2
[125028.444162] usb 6-2.1: USB disconnect, device number 3
[125028.444167] usb 6-2.1.2: USB disconnect, device number 5
[125028.444369] xhci_hcd 0000:09:00.0: xHCI host controller not responding, assume dead
..
.

Fixed by connecting two power supplies to both laptop and docking (2x135W).

Revision history for this message
Walex B (walexb) wrote :

This is happening to me on a ThinkPad E495 with AMD chipset and no docking station, with Ubuntu LTS 20, kernel 5.11.0-40-generic (latest HWE), for example on inserting an USB mouse:

Nov 11 19:00:52 cyme upowerd[2469]: treating change event as add on /sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-4
Nov 11 19:00:52 cyme kernel: usb usb1-port4: disabled by hub (EMI?), re-enabling...
Nov 11 19:00:52 cyme kernel: usb 1-4: USB disconnect, device number 18
Nov 11 19:00:52 cyme kernel: usb 1-4: new low-speed USB device number 19 using xhci_hcd
Nov 11 19:01:03 cyme kernel: xhci_hcd 0000:05:00.3: xHCI host not responding to stop endpoint command.
Nov 11 19:01:03 cyme kernel: [43B blob data]
Nov 11 19:01:03 cyme kernel: xhci_hcd 0000:05:00.3: xHCI host controller not responding, assume dead
Nov 11 19:01:03 cyme kernel: xhci_hcd 0000:05:00.3: HC died; cleaning up
Nov 11 19:01:03 cyme kernel: usb usb1-port4: couldn't allocate usb_device

The workaround described in comment #22 above, to unbind and then bind the devices, works for me too. Weird. It did not seem to happen with earlier recent kernel version, but not sure when i started to happen.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.