Thunderbolt docking station drops USB

Bug #1921643 reported by Viktor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

My Lenovo Thunderbolt Dock Gen2 randomly drops the USB controller, resulting in no USB at all.
It sometimes happens after a few seconds of being plugged in to the notebook, but sometimes it works for hours.
The display connected to the dock stays active and working.

I tried to blacklist the driver (r8152) for the usb3-ethernet controller, as suggested in a few forums, but it does not solve the issue.

dmesg is full of the following messages:
[ 1001.028336] xhci_hcd 0000:08:00.0: WARN Event TRB for slot 11 ep 1 with no TDs queued?
[ 1001.029304] xhci_hcd 0000:08:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 1 comp_code 1
[ 1001.029324] xhci_hcd 0000:08:00.0: Looking for event-dma 000000087785b460 trb-start 000000087785b540 trb-end 000000087785b540 seg-start 000000087785b000 seg-end 000000087785bff0

I'm running ubuntu 20.10, but it also happened under 20.04. Everything is up to date as of writing this bugreport.
The dock is running the latest firmware, but the issue was present with earlier version of the firmware too.
I also tried both thunderbolt ports on the notebook (MSI Prestige 15), the issue happens on both.
The dock works flawlessly under windows 10.
---
ProblemType: Bug
AlsaVersion: Advanced Linux Sound Architecture Driver Version k5.8.0-48-generic.
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.11-0ubuntu50.5
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: viktor 1021 F.... pulseaudio
 /dev/snd/controlC0: viktor 1021 F.... pulseaudio
Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
Card1.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
Card1.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 20.10
InstallationDate: Installed on 2020-06-05 (306 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
MachineType: Micro-Star International Co., Ltd. Prestige 15 A10SC
Package: linux (not installed)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.8.0-48-generic root=UUID=d852534f-8d9d-4f1f-90c8-c7dadb006539 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 5.8.0-48.54-generic 5.8.18
RelatedPackageVersions:
 linux-restricted-modules-5.8.0-48-generic N/A
 linux-backports-modules-5.8.0-48-generic N/A
 linux-firmware 1.190.3
Tags: groovy
Uname: Linux 5.8.0-48-generic x86_64
UpgradeStatus: Upgraded to groovy on 2021-03-11 (26 days ago)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 11/18/2019
dmi.bios.release: 1.8
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: E16S3IMS.108
dmi.board.asset.tag: Default string
dmi.board.name: MS-16S3
dmi.board.vendor: Micro-Star International Co., Ltd.
dmi.board.version: REV:1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: Micro-Star International Co., Ltd.
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrE16S3IMS.108:bd11/18/2019:br1.8:svnMicro-StarInternationalCo.,Ltd.:pnPrestige15A10SC:pvrREV1.0:rvnMicro-StarInternationalCo.,Ltd.:rnMS-16S3:rvrREV1.0:cvnMicro-StarInternationalCo.,Ltd.:ct10:cvrN/A:
dmi.product.family: Prestige
dmi.product.name: Prestige 15 A10SC
dmi.product.sku: 16S3.1
dmi.product.version: REV:1.0
dmi.sys.vendor: Micro-Star International Co., Ltd.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1921643/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Paul White (paulw2u)
affects: ubuntu → linux (Ubuntu)
tags: added: focal groovy
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1921643

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Viktor (lamalas) wrote : AlsaDevices.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Viktor (lamalas) wrote : CRDA.txt

apport information

Revision history for this message
Viktor (lamalas) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Viktor (lamalas) wrote : Card0.Codecs.codec.2.txt

apport information

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

apport information

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

apport information

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

apport information

Revision history for this message
Viktor (lamalas) wrote : Lspci-vt.txt

apport information

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

apport information

Revision history for this message
Viktor (lamalas) wrote : Lsusb-t.txt

apport information

Revision history for this message
Viktor (lamalas) wrote : Lsusb-v.txt

apport information

Revision history for this message
Viktor (lamalas) wrote : PaInfo.txt

apport information

Revision history for this message
Viktor (lamalas) wrote : PciMultimedia.txt

apport information

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

apport information

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

apport information

Revision history for this message
Viktor (lamalas) wrote : ProcEnviron.txt

apport information

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

apport information

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

apport information

Revision history for this message
Viktor (lamalas) wrote : PulseList.txt

apport information

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

apport information

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

apport information

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

apport information

Revision history for this message
Viktor (lamalas) wrote : acpidump.txt

apport information

Viktor (lamalas)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Viktor (lamalas) wrote :

I tested with https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.12/amd64/ for a few (5-6) hours (sorry I don't use desktop linux much at all now days), dmesg is still full of errors like these:

[ 2852.594018] xhci_hcd 0000:3c:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 1 comp_code 1
[ 2852.594051] xhci_hcd 0000:3c:00.0: Looking for event-dma 00000001ed2ad1d0 trb-start 00000001ed2ad1e0 trb-end 00000001ed2ad1e0 seg-start 00000001ed2ad000 seg-end 00000001ed2adff0
[ 2854.671891] usb 5-2.4.1: reset full-speed USB device number 8 using xhci_hcd

So far it did not drop the usb controller, so that's good. 5-2.4.1 is a wireless receiver for my mouse, if I plug it in directly to the machine it does not throw this error, but in the dock this message occurs every few minutes. It was plugged into the same physical port when I used the previous kernel and this error message did not occur.

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

There are many fixes in 5.13-rc*, it may worth a try.

If the issue persists, please raise the issue to <email address hidden>

Revision history for this message
Viktor (lamalas) wrote (last edit ):

Just to keep this alive, I'm running 5.13.1 and so far it seems to be working. I only used it for ~8 hours and so far I have not seen any Transfer event errors, nor any USB reset (I see a lot of other new errors, it even failed to boot with 5.13.1 at first, but those are irrelevant regarding this issue).
I don't know if its going to be stable on the long term or not, as even with the 5.8 kernel it sometimes managed to work for 3+ days non stop without any issues (but most of the time crashed after 5-30 minutes).

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
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.