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.

Easily reproducible with the following commands.  Basically I'm trying
to plumb bond0 again,  which works initially, I get the xhci_hcd
warning, and the link is down again.  System details are also below.

root@higgins:~# dmesg -C ; ifup -a ; ip link | grep enx ; \
> dmesg -H ; dmesg -C ; sleep 70 ;                       \ 
> ip link | grep enx ; dmesg -H
3: enxd03745be5afc: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc 
pfifo_fast master bond0 state UP mode DEFAULT group default qlen 1000
16: enx54af9786ab11: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc 
pfifo_fast master bond0 state UP mode DEFAULT group default qlen 1000

[Sep 3 11:05] device enx54af9786ab11 entered promiscuous mode
[  +0.001236] bond0: (slave enx54af9786ab11): Enslaving as a backup interface 
with a down link
[  +0.006363] vmbr0: the hash_elasticity option has been deprecated and is 
always 16
[  +0.013972] r8152 2-4:1.0 enx54af9786ab11: Promiscuous mode enabled
[  +0.001344] r8152 2-4:1.0 enx54af9786ab11: carrier on

3: enxd03745be5afc: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc 
pfifo_fast master bond0 state UP mode DEFAULT group default qlen 1000
17: enx54af9786ab11: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode 
DEFAULT group default qlen 1000

[Sep 3 11:05] bond0: (slave enx54af9786ab11): link status definitely up, 1000 
Mbps full duplex
[Sep 3 11:06] usb 2-4: USB disconnect, device number 12
[  +0.001544] xhci_hcd 0000:00:14.0: WARN Set TR Deq Ptr cmd failed due to 
incorrect slot or ep state.
[  +0.001435] bond0: (slave enx54af9786ab11): Releasing backup interface
[  +0.029081] device enx54af9786ab11 left promiscuous mode
[  +0.316190] usb 2-4: new SuperSpeed USB device number 13 using xhci_hcd
[  +0.022053] usb 2-4: New USB device found, idVendor=2357, idProduct=0601, 
bcdDevice=30.00
[  +0.001297] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[  +0.001337] usb 2-4: Product: USB 10/100/1000 LAN
[  +0.001261] usb 2-4: Manufacturer: TP-Link
[  +0.001208] usb 2-4: SerialNumber: 000001
[  +0.137200] usb 2-4: reset SuperSpeed USB device number 13 using xhci_hcd
[  +0.049197] r8152 2-4:1.0: load rtl8153a-4 v2 02/07/20 successfully
[  +0.030905] r8152 2-4:1.0 eth0: v1.12.12
[  +0.007834] r8152 2-4:1.0 enx54af9786ab11: renamed from eth0
root@higgins:~#


-------
System Details
------- 


root@higgins:~# uname -a
Linux higgins 5.15.39-4-pve #1 SMP PVE 5.15.39-4 (Mon, 08 Aug 2022 15:11:15 
+0200) x86_64 GNU/Linux

root@higgins:~# lspci -k -nn | grep -B2 xhci
00:14.0 USB controller [0c03]: Intel Corporation 200 Series/Z370 Chipset Family 
USB 3.0 xHCI Controller [8086:a2af]
        Subsystem: Lenovo 200 Series/Z370 Chipset Family USB 3.0 xHCI 
Controller [17aa:310b]
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci

root@higgins:~# lsusb -tv
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 5000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
        ID 2357:0601 TP-Link UE300 10/100/1000 LAN (ethernet mode) [Realtek 
RTL8153]
    |__ Port 4: Dev 13, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
        ID 2357:0601 TP-Link UE300 10/100/1000 LAN (ethernet mode) [Realtek 
RTL8153]
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub

root@higgins:~# modinfo r8152
filename:       /lib/modules/5.15.39-4-pve/kernel/drivers/net/usb/r8152.ko
version:        v1.12.12
license:        GPL
description:    Realtek RTL8152/RTL8153 Based USB Ethernet Adapters
author:         Realtek linux nic maintainers <nic_s...@realtek.com>
firmware:       rtl_nic/rtl8156b-2.fw
firmware:       rtl_nic/rtl8156a-2.fw
firmware:       rtl_nic/rtl8153c-1.fw
firmware:       rtl_nic/rtl8153b-2.fw
firmware:       rtl_nic/rtl8153a-4.fw
firmware:       rtl_nic/rtl8153a-3.fw
firmware:       rtl_nic/rtl8153a-2.fw
srcversion:     9144C27A9617457A5BEE55E
alias:          usb:v2357p0601d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v2357p0601d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v0955p09FFd*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v0955p09FFd*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v13B1p0041d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v13B1p0041d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFpA387d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFpA387d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp721Ed*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp721Ed*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp7214d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp7214d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp720Cd*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp720Cd*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp7205d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp7205d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp3082d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp3082d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp3069d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp3069d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp3062d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp3062d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp304Fd*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp304Fd*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v04E8pA101d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v04E8pA101d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v045Ep0927d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v045Ep0927d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v045Ep07C6d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v045Ep07C6d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v045Ep07ABd*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v045Ep07ABd*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v0BDAp8156d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v0BDAp8156d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v0BDAp8155d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v0BDAp8155d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v0BDAp8153d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v0BDAp8153d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v0BDAp8152d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v0BDAp8152d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v0BDAp8053d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v0BDAp8053d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v0BDAp8050d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v0BDAp8050d*dc*dsc*dp*icFFisc*ip*in*
depends:        mii
retpoline:      Y
intree:         Y
name:           r8152
vermagic:       5.15.39-4-pve SMP mod_unload modversions

root@higgins:~# tail -1000 /var/log/messages | grep usb | grep 09:39
Sep  3 09:39:26 higgins kernel: [    1.547421] usb usb1: New USB device found, 
idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
Sep  3 09:39:26 higgins kernel: [    1.547426] usb usb1: New USB device 
strings: Mfr=3, Product=2, SerialNumber=1
Sep  3 09:39:26 higgins kernel: [    1.547429] usb usb1: Product: xHCI Host 
Controller
Sep  3 09:39:26 higgins kernel: [    1.547431] usb usb1: Manufacturer: Linux 
5.15.39-4-pve xhci-hcd
Sep  3 09:39:26 higgins kernel: [    1.547434] usb usb1: SerialNumber: 
0000:00:14.0
Sep  3 09:39:26 higgins kernel: [    1.549759] usb usb2: New USB device found, 
idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
Sep  3 09:39:26 higgins kernel: [    1.549763] usb usb2: New USB device 
strings: Mfr=3, Product=2, SerialNumber=1
Sep  3 09:39:26 higgins kernel: [    1.549766] usb usb2: Product: xHCI Host 
Controller
Sep  3 09:39:26 higgins kernel: [    1.549769] usb usb2: Manufacturer: Linux 
5.15.39-4-pve xhci-hcd
Sep  3 09:39:26 higgins kernel: [    1.549771] usb usb2: SerialNumber: 
0000:00:14.0
Sep  3 09:39:26 higgins kernel: [    1.551090] usb: port power management may 
be unreliable
Sep  3 09:39:26 higgins kernel: [    1.889622] usb 2-1: new SuperSpeed USB 
device number 2 using xhci_hcd
Sep  3 09:39:26 higgins kernel: [    1.912268] usb 2-1: New USB device found, 
idVendor=2357, idProduct=0601, bcdDevice=30.00
Sep  3 09:39:26 higgins kernel: [    1.912273] usb 2-1: New USB device strings: 
Mfr=1, Product=2, SerialNumber=6
Sep  3 09:39:26 higgins kernel: [    1.912276] usb 2-1: Product: USB 
10/100/1000 LAN
Sep  3 09:39:26 higgins kernel: [    1.912278] usb 2-1: Manufacturer: TP-LINK
Sep  3 09:39:26 higgins kernel: [    1.912280] usb 2-1: SerialNumber: 
000001000000
Sep  3 09:39:26 higgins kernel: [    2.045666] usb 2-4: new SuperSpeed USB 
device number 3 using xhci_hcd
Sep  3 09:39:26 higgins kernel: [    2.068477] usb 2-4: New USB device found, 
idVendor=2357, idProduct=0601, bcdDevice=30.00
Sep  3 09:39:26 higgins kernel: [    2.068498] usb 2-4: New USB device strings: 
Mfr=1, Product=2, SerialNumber=6
Sep  3 09:39:26 higgins kernel: [    2.068514] usb 2-4: Product: USB 
10/100/1000 LAN
Sep  3 09:39:26 higgins kernel: [    2.068525] usb 2-4: Manufacturer: TP-Link
Sep  3 09:39:26 higgins kernel: [    2.068535] usb 2-4: SerialNumber: 000001
Sep  3 09:39:26 higgins kernel: [    4.110138] usbcore: registered new 
interface driver r8152
Sep  3 09:39:26 higgins kernel: [    4.198806] usbcore: registered new 
interface driver cdc_ether
Sep  3 09:39:26 higgins kernel: [    4.282161] usb 2-1: reset SuperSpeed USB 
device number 2 using xhci_hcd
Sep  3 09:39:26 higgins kernel: [    4.429911] usb 2-4: reset SuperSpeed USB 
device number 3 using xhci_hcd

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1667750

Title:
  xhci_hcd: ERROR Transfer event TRB DMA ptr not part of current TD
  ep_index 2 comp_code 13

Status in HWE Next:
  Fix Released
Status in Linux:
  Confirmed
Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Xenial:
  Fix Released
Status in linux source package in Zesty:
  Fix Released
Status in linux source package in Artful:
  Fix Released
Status in linux package in Arch Linux:
  New
Status in linux package in Debian:
  New
Status in linux package in Fedora:
  Confirmed

Bug description:
  [SRU Justification]

  [Impact] 
  Dell TB16 docking station has issue to use gigabit ethernet. The ethernet
  will disconnect unless it's changed to 100Mb/s.

  
  [Test Case]
  Download some big files from the web.
  User confirms the patch fixes the issue.

  [Regression Potential] 
  This patch only effects ASMEDIA's ASM1042A.
  The regression potential is low, also limited to the specific device.

  ---

  My system contains a Realtek Semiconductor Corp. RTL8153 Gigabit
  Ethernet Adapter which is on usb3 bus in my docking station (Dell
  TB16) which is attached to my laptop (Dell XPS9550) via Thunderbolt 3.

  I get usb related kernel error messages when I initiate a high speed
  transfer (by issuing wget http://cdimage.ubuntu.com/daily-
  live/current/zesty-desktop-amd64.iso) and the download fails.

  This does not happened when the Ethernet adapter is connected to a
  100Mb/s switch, but only when connected to 1000Mb/s. It also does not
  happened with slow traffic (e.g. web page browsing). This is not a new
  bug with kernel 4.10, but has been going on since at least 4.7 and
  maybe (probably?) since forever. I'm aware of several others with this
  configuration (RTL8153 on usb3 behind thunderbolt 3) that have the
  same issue. This bug is also not specific to Ubuntu; I also get it on
  Arch Linux. I've also tested and seen this bug with several different
  models of thunderbolt 3 docks.

  Here are the relevant kernel log messages:

  Feb 24 16:42:38 ubuntu kernel: xhci_hcd 0000:0e:00.0: ERROR Transfer event 
TRB DMA ptr not part of current TD ep_index 2 comp_code 13
  Feb 24 16:42:38 ubuntu kernel: xhci_hcd 0000:0e:00.0: Looking for event-dma 
00000004777d9010 trb-start 0000000475a14fe0 trb-end 0000000475a14fe0 seg-start 
0000000475a14000 seg-end 0000000475a14ff0
  Feb 24 16:42:38 ubuntu kernel: xhci_hcd 0000:0e:00.0: ERROR Transfer event 
TRB DMA ptr not part of current TD ep_index 2 comp_code 13
  Feb 24 16:42:38 ubuntu kernel: xhci_hcd 0000:0e:00.0: Looking for event-dma 
00000004777d9020 trb-start 0000000475a14fe0 trb-end 0000000475a14fe0 seg-start 
0000000475a14000 seg-end 0000000475a14ff0
  Feb 24 16:42:38 ubuntu kernel: xhci_hcd 0000:0e:00.0: ERROR Transfer event 
TRB DMA ptr not part of current TD ep_index 2 comp_code 13
  Feb 24 16:42:38 ubuntu kernel: xhci_hcd 0000:0e:00.0: Looking for event-dma 
00000004777d9030 trb-start 0000000475a14fe0 trb-end 0000000475a14fe0 seg-start 
0000000475a14000 seg-end 0000000475a14ff0
  Feb 24 16:42:38 ubuntu kernel: xhci_hcd 0000:0e:00.0: ERROR Transfer event 
TRB DMA ptr not part of current TD ep_index 2 comp_code 13
  Feb 24 16:42:38 ubuntu kernel: xhci_hcd 0000:0e:00.0: Looking for event-dma 
00000004777d9040 trb-start 0000000475a14fe0 trb-end 0000000475a14fe0 seg-start 
0000000475a14000 seg-end 0000000475a14ff0
  Feb 24 16:42:38 ubuntu kernel: xhci_hcd 0000:0e:00.0: ERROR Transfer event 
TRB DMA ptr not part of current TD ep_index 2 comp_code 13
  Feb 24 16:42:38 ubuntu kernel: xhci_hcd 0000:0e:00.0: Looking for event-dma 
00000004777d9050 trb-start 0000000475a14fe0 trb-end 0000000475a14fe0 seg-start 
0000000475a14000 seg-end 0000000475a14ff0
  Feb 24 16:42:38 ubuntu kernel: xhci_hcd 0000:0e:00.0: ERROR Transfer event 
TRB DMA ptr not part of current TD ep_index 2 comp_code 13
  Feb 24 16:42:38 ubuntu kernel: xhci_hcd 0000:0e:00.0: Looking for event-dma 
00000004777d9060 trb-start 0000000475a14fe0 trb-end 0000000475a14fe0 seg-start 
0000000475a14000 seg-end 0000000475a14ff0
  Feb 24 16:42:39 ubuntu kernel: xhci_hcd 0000:0e:00.0: ERROR Transfer event 
TRB DMA ptr not part of current TD ep_index 2 comp_code 13
  Feb 24 16:42:39 ubuntu kernel: xhci_hcd 0000:0e:00.0: Looking for event-dma 
00000004777d9070 trb-start 0000000475a14fe0 trb-end 0000000475a14fe0 seg-start 
0000000475a14000 seg-end 0000000475a14ff0
  Feb 24 16:42:39 ubuntu kernel: xhci_hcd 0000:0e:00.0: ERROR Transfer event 
TRB DMA ptr not part of current TD ep_index 2 comp_code 13
  Feb 24 16:42:39 ubuntu kernel: xhci_hcd 0000:0e:00.0: Looking for event-dma 
00000004777d9080 trb-start 0000000475a14fe0 trb-end 0000000475a14fe0 seg-start 
0000000475a14000 seg-end 0000000475a14ff0
  Feb 24 16:43:06 ubuntu kernel: r8152 4-1.2:1.0 enx204747f8f471: Tx timeout
  Feb 24 16:43:06 ubuntu kernel: r8152 4-1.2:1.0 enx204747f8f471: Tx status -2
  Feb 24 16:43:06 ubuntu kernel: r8152 4-1.2:1.0 enx204747f8f471: Tx status -2
  Feb 24 16:43:06 ubuntu kernel: r8152 4-1.2:1.0 enx204747f8f471: Tx status -2
  Feb 24 16:43:06 ubuntu kernel: r8152 4-1.2:1.0 enx204747f8f471: Tx status -2
  Feb 24 16:43:09 ubuntu kernel: usb 4-1.2: reset SuperSpeed USB device number 
3 using xhci_hcd

  I can't seem to make this bug appear with any other type of USB
  traffic. I've reported it to the realtek kernel dev team and they
  don't think their RTL8153 driver (in this case the r8152 module) is to
  blame, but instead that it's an xhci_hcd issue.

  If you look through the dmesg log attached here, you'll see that at
  45.967025 I plugged the thunderbolt 3 cable from my dock into my
  laptop.

  ProblemType: Bug
  DistroRelease: Ubuntu 17.04
  Package: linux-image-4.10.0-8-generic 4.10.0-8.10
  ProcVersionSignature: Ubuntu 4.10.0-8.10-generic 4.10.0-rc8
  Uname: Linux 4.10.0-8-generic x86_64
  ApportVersion: 2.20.4-0ubuntu2
  Architecture: amd64
  CasperVersion: 1.380
  CurrentDesktop: Unity:Unity7
  Date: Fri Feb 24 16:53:35 2017
  LiveMediaBuild: Ubuntu 17.04 "Zesty Zapus" - Alpha amd64 (20170224)
  MachineType: Dell Inc. XPS 15 9550
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 inteldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/casper/vmlinuz.efi 
file=/cdrom/preseed/username.seed boot=casper quiet splash ---
  RelatedPackageVersions:
   linux-restricted-modules-4.10.0-8-generic N/A
   linux-backports-modules-4.10.0-8-generic  N/A
   linux-firmware                            1.163
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 12/22/2016
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: 1.2.19
  dmi.board.name: 0N7TVV
  dmi.board.vendor: Dell Inc.
  dmi.board.version: A00
  dmi.chassis.type: 9
  dmi.chassis.vendor: Dell Inc.
  dmi.modalias: 
dmi:bvnDellInc.:bvr1.2.19:bd12/22/2016:svnDellInc.:pnXPS159550:pvr:rvnDellInc.:rn0N7TVV:rvrA00:cvnDellInc.:ct9:cvr:
  dmi.product.name: XPS 15 9550
  dmi.sys.vendor: Dell Inc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1667750/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to