[Bug 1940004]
dion
1940004 at bugs.launchpad.net
Sat Sep 18 18:39:58 UTC 2021
I also have exactly same problem, but with a bit different HW.
Now it's USB DAC branded as "Qudelix-5K". As far as I understand it's
USB1 device.
[ 174.358189] usb 5-2.3.2.2.1.1: new full-speed USB device number 17 using xhci_hcd
[ 174.475229] usb 5-2.3.2.2.1.1: New USB device found, idVendor=0a12, idProduct=4025, bcdDevice=19.70
[ 174.475232] usb 5-2.3.2.2.1.1: New USB device strings: Mfr=1, Product=8, SerialNumber=3
[ 174.475233] usb 5-2.3.2.2.1.1: Product: Qudelix-5K USB DAC/MIC 48KHz
[ 174.475234] usb 5-2.3.2.2.1.1: Manufacturer: QTIL
[ 174.475235] usb 5-2.3.2.2.1.1: SerialNumber: ABCDEF0123456789
It produces corrupted sound (actually some noise) just after a few
seconds of playback if connected to Dell WD19TB thunderbolt dock
station. Issue happens with USB-A ports on dock plus one Type-C port
(front). Second Type-C port (named as "Type-C with Thunderbolt 3 port"
works.
When such noise happens I'm getting followed in dmesg:
xhci_hcd 0000:3a:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 5 comp_code 1
xhci_hcd 0000:3a:00.0: Looking for event-dma 00000000ffe940f0 trb-start 00000000ffe94100 trb-end 00000000ffe94100 seg-start 00000000ffe94000 seg-end 00000000ffe94ff0
xhci_hcd 0000:3a:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 5 comp_code 1
xhci_hcd 0000:3a:00.0: Looking for event-dma 00000000ffe949b0 trb-start 00000000ffe949c0 trb-end 00000000ffe949c0 seg-start 00000000ffe94000 seg-end 00000000ffe94ff0
I've tried to add/remove extra USB hubs (originally Qudelix was plugged
to internal USB3 hub of monitor). But even if plugged directly to dock,
it produces corrupted sound.
Another important thing: this dock has built-in Ethernet with r8153
chipset like mentioned above.
After reading comments here I've tried to disable soft retry using
followed patch:
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index 1c9a7957c45c..07cbcf50160c 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -189,10 +189,11 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
if (pdev->vendor == PCI_VENDOR_ID_INTEL) {
xhci->quirks |= XHCI_LPM_SUPPORT;
xhci->quirks |= XHCI_INTEL_HOST;
xhci->quirks |= XHCI_AVOID_BEI;
+ xhci->quirks |= XHCI_NO_SOFT_RETRY;
}
if (pdev->vendor == PCI_VENDOR_ID_INTEL &&
pdev->device == PCI_DEVICE_ID_INTEL_PANTHERPOINT_XHCI) {
xhci->quirks |= XHCI_EP_LIMIT_QUIRK;
xhci->limit_active_eps = 64;
And it completely fixed issue for me. DAC produces clear sound even if
connected through chain of two hubs!
PS.
lspci -k -nn | grep -B2 xhci
00:14.0 USB controller [0c03]: Intel Corporation Comet Lake PCH-LP USB 3.1 xHCI Host Controller [8086:02ed]
Subsystem: Hewlett-Packard Company Comet Lake PCH-LP USB 3.1 xHCI Host Controller [103c:8724]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
--
37:00.0 USB controller [0c03]: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 4C 2018] [8086:15ec] (rev 06)
Subsystem: Hewlett-Packard Company JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 4C 2018] [103c:8723]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
--
3a:00.0 USB controller [0c03]: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge DD 2018] [8086:15f0] (rev 06)
Subsystem: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge DD 2018] [8086:0000]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
5.14.6 kernel
Hope that this will help to fix it
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1940004
Title:
xhci_hcd 0000:00:14.0: WARN Set TR Deq Ptr cmd failed due to incorrect
slot or ep state
Status in Release Upgrader:
Confirmed
Status in ubuntu-release-upgrader package in Ubuntu:
Confirmed
Bug description:
Recently my external USB drive enclosure stops working after a bit of
IO activity (copy jobs etc.). This wasn't the case not too long ago. I
use this enclosure as an archive backup and plug it every month or so.
Import to note that this issue is/was being tracked here: https://bugzilla.kernel.org/show_bug.cgi?id=202541 and a few patches have been suggested. I have a dell XPS 7590 laptop and according to comment
195 patch in comment # 176 fixes the issue.
$ uname -a
Linux kambuntu 5.11.0-25-generic #27~20.04.1-Ubuntu SMP Tue Jul 13 17:41:23 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ dmesg -T
[Sun Aug 15 10:47:19 2021] usb 2-2: new SuperSpeed Gen 1 USB device number 10 using xhci_hcd
[Sun Aug 15 10:47:19 2021] usb 2-2: New USB device found, idVendor=152d, idProduct=0539, bcdDevice= 1.00
[Sun Aug 15 10:47:19 2021] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[Sun Aug 15 10:47:19 2021] usb 2-2: Product: USB to ATA/ATAPI Bridge
[Sun Aug 15 10:47:19 2021] usb 2-2: Manufacturer: JMicron
[Sun Aug 15 10:47:19 2021] usb 2-2: SerialNumber: DCC10435415F
[Sun Aug 15 10:47:19 2021] usb-storage 2-2:1.0: USB Mass Storage device detected
[Sun Aug 15 10:47:19 2021] usb-storage 2-2:1.0: Quirks match for vid 152d pid 0539: 4000000
[Sun Aug 15 10:47:19 2021] scsi host4: usb-storage 2-2:1.0
[Sun Aug 15 10:47:20 2021] scsi 4:0:0:0: Direct-Access WDC WD30 EFRX-68AX9N0 PQ: 0 ANSI: 5
[Sun Aug 15 10:47:20 2021] scsi 4:0:0:1: Direct-Access WDC WD30 EFRX-68AX9N0 PQ: 0 ANSI: 5
[Sun Aug 15 10:47:20 2021] scsi 4:0:0:2: Direct-Access WDC WD30 EFRX-68AX9N0 PQ: 0 ANSI: 5
[Sun Aug 15 10:47:20 2021] scsi 4:0:0:3: Direct-Access WDC WD30 EFRX-68AX9N0 PQ: 0 ANSI: 5
[Sun Aug 15 10:47:20 2021] sd 4:0:0:0: Attached scsi generic sg1 type 0
[Sun Aug 15 10:47:20 2021] scsi 4:0:0:1: Attached scsi generic sg2 type 0
[Sun Aug 15 10:47:20 2021] sd 4:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[Sun Aug 15 10:47:20 2021] sd 4:0:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[Sun Aug 15 10:47:20 2021] sd 4:0:0:2: Attached scsi generic sg3 type 0
[Sun Aug 15 10:47:20 2021] sd 4:0:0:1: [sdc] Very big device. Trying to use READ CAPACITY(16).
[Sun Aug 15 10:47:20 2021] sd 4:0:0:3: Attached scsi generic sg4 type 0
[Sun Aug 15 10:47:20 2021] sd 4:0:0:0: [sdb] Write Protect is off
[Sun Aug 15 10:47:20 2021] sd 4:0:0:0: [sdb] Mode Sense: 28 00 00 00
[Sun Aug 15 10:47:20 2021] sd 4:0:0:1: [sdc] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[Sun Aug 15 10:47:20 2021] sd 4:0:0:0: [sdb] No Caching mode page found
[Sun Aug 15 10:47:20 2021] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[Sun Aug 15 10:47:20 2021] sd 4:0:0:1: [sdc] Write Protect is off
[Sun Aug 15 10:47:20 2021] sd 4:0:0:1: [sdc] Mode Sense: 28 00 00 00
[Sun Aug 15 10:47:20 2021] sd 4:0:0:2: [sdd] Very big device. Trying to use READ CAPACITY(16).
[Sun Aug 15 10:47:20 2021] sd 4:0:0:1: [sdc] No Caching mode page found
[Sun Aug 15 10:47:20 2021] sd 4:0:0:1: [sdc] Assuming drive cache: write through
[Sun Aug 15 10:47:20 2021] sd 4:0:0:3: [sde] Very big device. Trying to use READ CAPACITY(16).
[Sun Aug 15 10:47:20 2021] sd 4:0:0:3: [sde] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[Sun Aug 15 10:47:20 2021] sd 4:0:0:3: [sde] Write Protect is off
[Sun Aug 15 10:47:20 2021] sd 4:0:0:3: [sde] Mode Sense: 28 00 00 00
[Sun Aug 15 10:47:20 2021] sd 4:0:0:3: [sde] No Caching mode page found
[Sun Aug 15 10:47:20 2021] sd 4:0:0:3: [sde] Assuming drive cache: write through
[Sun Aug 15 10:47:20 2021] sd 4:0:0:2: [sdd] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[Sun Aug 15 10:47:20 2021] sd 4:0:0:2: [sdd] Write Protect is off
[Sun Aug 15 10:47:20 2021] sd 4:0:0:2: [sdd] Mode Sense: 28 00 00 00
[Sun Aug 15 10:47:20 2021] sd 4:0:0:2: [sdd] No Caching mode page found
[Sun Aug 15 10:47:20 2021] sd 4:0:0:2: [sdd] Assuming drive cache: write through
[Sun Aug 15 10:47:22 2021] sdc: sdc1
[Sun Aug 15 10:47:22 2021] sde: sde1
[Sun Aug 15 10:47:22 2021] sdb: sdb1
[Sun Aug 15 10:47:22 2021] sdd: sdd1
[Sun Aug 15 10:47:22 2021] sd 4:0:0:1: [sdc] Attached SCSI disk
[Sun Aug 15 10:47:22 2021] sd 4:0:0:3: [sde] Attached SCSI disk
[Sun Aug 15 10:47:22 2021] sd 4:0:0:0: [sdb] Attached SCSI disk
[Sun Aug 15 10:47:22 2021] sd 4:0:0:2: [sdd] Attached SCSI disk
[Sun Aug 15 11:00:35 2021] usb 2-2: USB disconnect, device number 10
[Sun Aug 15 11:00:35 2021] xhci_hcd 0000:00:14.0: WARN Set TR Deq Ptr
cmd failed due to incorrect slot or ep state.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ubuntu-release-upgrader-core 1:20.04.36
ProcVersionSignature: Ubuntu 5.11.0-25.27~20.04.1-generic 5.11.22
Uname: Linux 5.11.0-25-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu27.18
Architecture: amd64
CasperMD5CheckResult: skip
CrashDB: ubuntu
CurrentDesktop: KDE
Date: Sun Aug 15 11:30:57 2021
InstallationDate: Installed on 2021-03-26 (142 days ago)
InstallationMedia: Kubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
PackageArchitecture: all
ProcEnviron:
LANGUAGE=en_CA:en
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_CA.UTF-8
SHELL=/bin/bash
SourcePackage: ubuntu-release-upgrader
Symptom: ubuntu-release-upgrader
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-release-upgrader/+bug/1940004/+subscriptions
More information about the foundations-bugs
mailing list