[Bug 1940004]

ske5074 1940004 at bugs.launchpad.net
Wed Sep 7 19:13:51 UTC 2022


(In reply to Sean Kennedy from comment #205)
> I also have the issue.  Using Proxmox 7.2 (Debian Bullseye) with a Lenovo
> M910q core-i7-7700T,  using two TPLink UE300 (RTL8153) USB to 1Gbe Ethernet
> adapters. Each one is stable in a lower USB slot. Swapping the adapters does
> not change the behavior and only impacts the USB device in the higher slot. 
> Changes to different ports without change.

Update - Tried a different dongle - a 2.5Gbe and have two hard drives
attached to the system.  Doesn't matter where the 2.5Gbe dongle is
attached,  it eventually errors with "WARN Set TR Deq Ptr cmd failed"
And the error rate is only around six times a day right now:

8156 Realtek Semiconductor Corp. USB 10/100/1G/2.5G LAN

# dmesg -T | grep xhci
[Tue Sep  6 13:37:13 2022] xhci_hcd 0000:00:14.0: xHCI Host Controller
[Tue Sep  6 13:37:13 2022] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1
[Tue Sep  6 13:37:13 2022] xhci_hcd 0000:00:14.0: hcc params 0x200077c1 hci version 0x100 quirks 0x0000000000009810
[Tue Sep  6 13:37:13 2022] usb usb1: Manufacturer: Linux 5.15.39-4-pve xhci-hcd
[Tue Sep  6 13:37:13 2022] xhci_hcd 0000:00:14.0: xHCI Host Controller
[Tue Sep  6 13:37:13 2022] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2
[Tue Sep  6 13:37:13 2022] xhci_hcd 0000:00:14.0: Host supports USB 3.0 SuperSpeed
[Tue Sep  6 13:37:13 2022] usb usb2: Manufacturer: Linux 5.15.39-4-pve xhci-hcd
[Tue Sep  6 13:37:13 2022] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd
[Tue Sep  6 13:37:14 2022] usb 2-3: new SuperSpeed USB device number 3 using xhci_hcd
[Tue Sep  6 13:37:14 2022] usb 2-4: new SuperSpeed USB device number 4 using xhci_hcd
[Tue Sep  6 14:39:22 2022] xhci_hcd 0000:00:14.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.
[Tue Sep  6 14:39:22 2022] usb 2-4: new SuperSpeed USB device number 5 using xhci_hcd
[Tue Sep  6 18:44:01 2022] xhci_hcd 0000:00:14.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.
[Tue Sep  6 18:44:01 2022] xhci_hcd 0000:00:14.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.
[Tue Sep  6 18:44:02 2022] usb 2-4: new SuperSpeed USB device number 6 using xhci_hcd
[Tue Sep  6 22:19:06 2022] xhci_hcd 0000:00:14.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.
[Tue Sep  6 22:19:07 2022] usb 2-4: new SuperSpeed USB device number 7 using xhci_hcd


Since this drops the device from the system and offlines the link,  I created a simple script to detect zero UP ethernet devices via cron once a minute and runs a ifnet -a.   It's clunky but works.  

crontab:
# m h  dom mon dow   command
* * * * * /root/fixnet.sh >/dev/null 2>&1

fixnet.sh:
#!/bin/sh

STATE=`ip link | grep " enx" | grep UP | wc -l`
if [ $STATE -gt 0 ]; then
  # All good.  Exit
  exit 0
fi

/usr/sbin/ifup -a
sleep 20

ping -c 1 10.0.0.1 | grep "1 received"
if [ $? -eq 0 ]; then
  # Network looks good. Exit.
  exit 0
fi

sleep 310
ping -c 1 10.0.0.1 | grep "1 received"
if [ $? -ne 0 ]; then
  # The network is still down.
  systemctl reboot
fi

-- 
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 Linux:
  Confirmed
Status in ubuntu-release-upgrader package in Ubuntu:
  Invalid

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/linux/+bug/1940004/+subscriptions




More information about the foundations-bugs mailing list