You are not logged in.
I'm experiencing a frustrating issue with my ThinkPad Thunderbolt 3 Dock Gen 2 (40AN0135UK). The Ethernet connection on the dock consistently disappears after about 5-10 minutes after boot.
Symptoms
• Ethernet card disappears approximately 5-10 minutes after connecting the dock
• Simply reconnecting the dock's thunderbolt cable doesn't resolve the issue, does nothing
• The only way to restore Ethernet functionality is to completely power cycle the dock (unplug power, then reconnect)
• After power cycling, it works fine until the next system reboot, doesn't disconnect; I can put the laptop to sleep several times, wake it up, still works fine.
• Interestingly, the device doesn't disappear from lspci output (no change there, it's not there in the first place), but it does disappear from lsusb
• Unloading and reloading the kernel module (r8152) w/ modprobe doesn't resolve the issue, it doesn't come back until I power cycle the dock
Troubleshooting Information
• The dock firmware is up to date (updated from Windows as fwupd doesn't have the latest version; updated w/ fwupd first)
• The same dock works perfectly fine on another laptop running Fedora
• When the issue occurs, the device disappears from lsusb output
Working lsusb output (relevant part):
/: Bus 006.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 10000M
ID 1d6b:0003 Linux Foundation 3.0 root hub
|__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 5000M
ID 05e3:0626 Genesys Logic, Inc. Hub
|__ Port 002: Dev 003, If 0, Class=Hub, Driver=hub/4p, 10000M
ID 17ef:307f Lenovo
|__ Port 001: Dev 004, If 0, Class=Hub, Driver=hub/4p, 5000M
ID 17ef:307f Lenovo
|__ Port 002: Dev 005, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
ID 17ef:3082 LenovoAfter disconnection, this part disappears:
|__ Port 002: Dev 005, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
ID 17ef:3082 LenovoI suspect this might be related to power management or some kind of timer that's putting the Ethernet controller to sleep. I found a somewhat similar issue on the forum, but no clear solution.
Has anyone encountered this issue or knows how to prevent the Ethernet adapter from disconnecting? Perhaps there's a way to disable USB power management for this specific device?
Any help would be greatly appreciated!
Last edited by andrejr (2025-05-02 20:26:49)
Offline
Also, here's what's reported at disconnection time in journald:
May 02 21:24:17 REDACTED kernel: xhci_hcd 0000:2f:00.0: Timeout while waiting for setup device command
May 02 21:24:17 REDACTED kernel: r8152 6-2.1.2:1.0 enp47s0u2u1u2: NETDEV WATCHDOG: CPU: 1: transmit queue 0 timed out 5557 ms
May 02 21:24:17 REDACTED kernel: r8152 6-2.1.2:1.0 enp47s0u2u1u2: Tx timeout
May 02 21:24:17 REDACTED kernel: r8152 6-2.1.2:1.0 enp47s0u2u1u2: NETDEV WATCHDOG: CPU: 1: transmit queue 0 timed out 10464 ms
May 02 21:24:17 REDACTED kernel: r8152 6-2.1.2:1.0 enp47s0u2u1u2: Tx timeout
May 02 21:24:17 REDACTED kernel: xhci_hcd 0000:2f:00.0: Timeout while waiting for setup device command
May 02 21:24:17 REDACTED kernel: r8152-cfgselector 6-2.1.2: device not accepting address 5, error -62
May 02 21:24:17 REDACTED kernel: r8152 6-2.1.2:1.0 enp47s0u2u1u2: Invalid header when reading pass-thru MAC addr
May 02 21:24:17 REDACTED kernel: r8152-cfgselector 6-2.1.2: USB disconnect, device number 5
May 02 21:24:17 REDACTED kernel: r8152 6-2.1.2:1.0 enp47s0u2u1u2: Get ether addr fail
May 02 21:24:17 REDACTED wsdd2[868]: llmnr-tcp-v4: open_ep: bind: Address already in use
May 02 21:24:17 REDACTED wsdd2[868]: llmnr-tcp-v6: open_ep: bind: Address already in use
May 02 21:24:17 REDACTED systemd-networkd[735]: enp47s0u2u1u2: Link DOWN
May 02 21:24:17 REDACTED systemd-networkd[735]: enp47s0u2u1u2: Lost carrier
May 02 21:24:17 REDACTED systemd-networkd[735]: enp47s0u2u1u2: DHCP lease lost
May 02 21:24:17 REDACTED systemd[1]: Starting Hostname Service...
May 02 21:24:17 REDACTED systemd[1]: Started Hostname Service.
May 02 21:24:17 REDACTED systemd-hostnamed[32557]: Hostname set to <REDACTED> (static)Offline
As for the Thunderbolt aspect, here's lspci and lspci -tv when the dock is connected:
00:00.0 Host bridge: Intel Corporation 10th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 02)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 02)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Comet Lake PCH Thermal Controller
00:14.0 USB controller: Intel Corporation Comet Lake USB 3.1 xHCI Host Controller
00:14.2 RAM memory: Intel Corporation Comet Lake PCH Shared SRAM
00:14.3 Network controller: Intel Corporation Comet Lake PCH CNVi WiFi
00:16.0 Communication controller: Intel Corporation Comet Lake HECI Controller
00:1c.0 PCI bridge: Intel Corporation Comet Lake PCIe Root Port #1 (rev f0)
00:1c.6 PCI bridge: Intel Corporation Comet Lake PCIe Root Port #7 (rev f0)
00:1c.7 PCI bridge: Intel Corporation Comet Lake PCIe Port #8 (rev f0)
00:1d.0 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #9 (rev f0)
00:1f.0 ISA bridge: Intel Corporation WM490 Chipset LPC/eSPI Controller
00:1f.3 Multimedia audio controller: Intel Corporation Comet Lake PCH cAVS
00:1f.4 SMBus: Intel Corporation Comet Lake PCH SMBus Controller
00:1f.5 Serial bus controller: Intel Corporation Comet Lake PCH SPI Controller
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev a1)
04:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:01.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:02.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:04.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
06:00.0 System peripheral: Intel Corporation JHL7540 Thunderbolt 3 NHI [Titan Ridge 4C 2018] (rev 06)
2c:00.0 USB controller: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 4C 2018] (rev 06)
2d:00.0 PCI bridge: Intel Corporation JHL7440 Thunderbolt 3 Bridge [Titan Ridge DD 2018] (rev 06)
2e:02.0 PCI bridge: Intel Corporation JHL7440 Thunderbolt 3 Bridge [Titan Ridge DD 2018] (rev 06)
2e:04.0 PCI bridge: Intel Corporation JHL7440 Thunderbolt 3 Bridge [Titan Ridge DD 2018] (rev 06)
2f:00.0 USB controller: Intel Corporation JHL7440 Thunderbolt 3 USB Controller [Titan Ridge DD 2018] (rev 06)
53:00.0 Wireless controller [0d40]: Intel Corporation XMM7560 LTE Advanced Pro Modem (rev 01)
54:00.0 SD Host controller: Genesys Logic, Inc GL9755 SD Host Controller
55:00.0 Non-Volatile memory controller: Toshiba Corporation XG6 NVMe SSD Controller-[0000:00]-+-00.0 Intel Corporation 10th Gen Core Processor Host Bridge/DRAM Registers
+-01.0-[01]--+-00.0 NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile]
| \-00.1 NVIDIA Corporation Device 10fa
+-04.0 Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem
+-08.0 Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
+-12.0 Intel Corporation Comet Lake PCH Thermal Controller
+-14.0 Intel Corporation Comet Lake USB 3.1 xHCI Host Controller
+-14.2 Intel Corporation Comet Lake PCH Shared SRAM
+-14.3 Intel Corporation Comet Lake PCH CNVi WiFi
+-16.0 Intel Corporation Comet Lake HECI Controller
+-1c.0-[04-51]----00.0-[05-51]--+-00.0-[06]----00.0 Intel Corporation JHL7540 Thunderbolt 3 NHI [Titan Ridge 4C 2018]
| +-01.0-[07-2b]--
| +-02.0-[2c]----00.0 Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 4C 2018]
| \-04.0-[2d-51]----00.0-[2e-51]--+-02.0-[2f]----00.0 Intel Corporation JHL7440 Thunderbolt 3 USB Controller [Titan Ridge DD 2018]
| \-04.0-[30-51]--
+-1c.6-[53]----00.0 Intel Corporation XMM7560 LTE Advanced Pro Modem
+-1c.7-[54]----00.0 Genesys Logic, Inc GL9755 SD Host Controller
+-1d.0-[55]----00.0 Toshiba Corporation XG6 NVMe SSD Controller
+-1f.0 Intel Corporation WM490 Chipset LPC/eSPI Controller
+-1f.3 Intel Corporation Comet Lake PCH cAVS
+-1f.4 Intel Corporation Comet Lake PCH SMBus Controller
\-1f.5 Intel Corporation Comet Lake PCH SPI ControllerAnd disconnected:
00:00.0 Host bridge: Intel Corporation 10th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 02)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 02)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Comet Lake PCH Thermal Controller
00:14.0 USB controller: Intel Corporation Comet Lake USB 3.1 xHCI Host Controller
00:14.2 RAM memory: Intel Corporation Comet Lake PCH Shared SRAM
00:14.3 Network controller: Intel Corporation Comet Lake PCH CNVi WiFi
00:16.0 Communication controller: Intel Corporation Comet Lake HECI Controller
00:1c.0 PCI bridge: Intel Corporation Comet Lake PCIe Root Port #1 (rev f0)
00:1c.6 PCI bridge: Intel Corporation Comet Lake PCIe Root Port #7 (rev f0)
00:1c.7 PCI bridge: Intel Corporation Comet Lake PCIe Port #8 (rev f0)
00:1d.0 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #9 (rev f0)
00:1f.0 ISA bridge: Intel Corporation WM490 Chipset LPC/eSPI Controller
00:1f.3 Multimedia audio controller: Intel Corporation Comet Lake PCH cAVS
00:1f.4 SMBus: Intel Corporatiggon Comet Lake PCH SMBus Controller
00:1f.5 Serial bus controller: Intel Corporation Comet Lake PCH SPI Controller
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev a1)
04:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:01.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:02.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:04.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
06:00.0 System peripheral: Intel Corporation JHL7540 Thunderbolt 3 NHI [Titan Ridge 4C 2018] (rev 06)
2c:00.0 USB controller: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 4C 2018] (rev 06)
53:00.0 Wireless controller [0d40]: Intel Corporation XMM7560 LTE Advanced Pro Modem (rev 01)
54:00.0 SD Host controller: Genesys Logic, Inc GL9755 SD Host Controller
55:00.0 Non-Volatile memory controller: Toshiba Corporation XG6 NVMe SSD Controller-[0000:00]-+-00.0 Intel Corporation 10th Gen Core Processor Host Bridge/DRAM Registers
+-01.0-[01]--+-00.0 NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile]
| \-00.1 NVIDIA Corporation Device 10fa
+-04.0 Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem
+-08.0 Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
+-12.0 Intel Corporation Comet Lake PCH Thermal Controller
+-14.0 Intel Corporation Comet Lake USB 3.1 xHCI Host Controller
+-14.2 Intel Corporation Comet Lake PCH Shared SRAM
+-14.3 Intel Corporation Comet Lake PCH CNVi WiFi
+-16.0 Intel Corporation Comet Lake HECI Controller
+-1c.0-[04-51]----00.0-[05-51]--+-00.0-[06]----00.0 Intel Corporation JHL7540 Thunderbolt 3 NHI [Titan Ridge 4C 2018]
| +-01.0-[07-2b]--
| +-02.0-[2c]----00.0 Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 4C 2018]
| \-04.0-[2d-51]--
+-1c.6-[53]----00.0 Intel Corporation XMM7560 LTE Advanced Pro Modem
+-1c.7-[54]----00.0 Genesys Logic, Inc GL9755 SD Host Controller
+-1d.0-[55]----00.0 Toshiba Corporation XG6 NVMe SSD Controller
+-1f.0 Intel Corporation WM490 Chipset LPC/eSPI Controller
+-1f.3 Intel Corporation Comet Lake PCH cAVS
+-1f.4 Intel Corporation Comet Lake PCH SMBus Controller
\-1f.5 Intel Corporation Comet Lake PCH SPI ControllerOffline
Okay, heftig on Matrix gave me the following udev rule as a suggestion, let's see if that works:
ACTION!="add|change|move|bind", GOTO="tb_no_auto_end" SUBSYSTEMS=="pci", KERNELS=="0000:05:01.0", KERNEL!="0000:05:01.0", GOTO="tb_no_auto_on" SUBSYSTEMS=="pci", KERNELS=="0000:05:04.0", KERNEL!="0000:05:04.0", GOTO="tb_no_auto_on" GOTO="tb_no_auto_end" LABEL="tb_no_auto_on" ATTR{power/control}=="auto", ATTR{power/control}="on" LABEL="tb_no_auto_end" # vim:set ft=udevrules:
Offline
There's another angle to be explored, from what's reported in the journald entry. Namely, the string "Invalid header when reading pass-thru MAC addr" only appears in these 2 places:
https://bugzilla.kernel.org/show_bug.cgi?id=200977
https://lore.kernel.org/lkml/601815fe-a … cal.com/T/
The mentioned pass-through MAC refers to the dock's ability to show the same Ethernet MAC as the machine's NIC itself, a feature that almost every Thinkpad dock has had for a very long time.
Offline
I'm doing another thing wrong according to https://lore.kernel.org/lkml/601815fe-a … cal.com/T/
My UEFI setting for MAC passthrough is off. I wonder if that changes anything.
Offline