Article 5AKYS Thunderbolt to Gigabit Ethernet Adapter not showing up when hotplugged

Thunderbolt to Gigabit Ethernet Adapter not showing up when hotplugged

by
SukkoPera
from LinuxQuestions.org on (#5AKYS)
I've been using Slackware on my 2013 MacBook Pro Retina (MacBookPro11,1) since day one. I've been following -current most of the time and it's always worked very well.

The only annoying issue I've been having is with my Thunderbolt Ethernet adapter, first on and off, then off for a while (but I hadn't been applying updates for some time), and now it seems it's here to stay. It works perfectly fine if I plug it in *before* the OS boots but then, if I unplug it and plug it back in (or just plug it in whenever the machine has been turned on without it being plugged in since the OS started up), eth0 won't show up again. The annoying thing is that it *is* detected by the kernel, but the interface won't appear again.

This is still happening as of today's updates. Some information:

Code:sukko@shockwave ~ $ ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 xxxx::xxxx:xxxx:xxxx:xxxx prefixlen 64 scopeid 0x20<link>
ether xx:xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
RX packets 3439852 bytes 4634532788 (4.3 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2044324 bytes 467373730 (445.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 19

eth1: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether xx:xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
RX packets 21 bytes 3825 (3.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 33 bytes 7263 (7.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 18eth0 is the Thunderbolt Ethernet adapter, eth1 is the built-in wifi card (driver is Broadcom's proprietary wl, no issues with this).

Code:sukko@shockwave ~ $ lspci
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4)
00:1c.1 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 2 (rev e4)
00:1c.2 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4)
00:1c.5 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 6 (rev e4)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
02:00.0 Multimedia controller: Broadcom Inc. and subsidiaries 720p FaceTime HD Camera
03:00.0 Network controller: Broadcom Inc. and subsidiaries BCM4360 802.11ac Wireless Network Adapter (rev 03)
04:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9230 PCIe SATA 6Gb/s Controller (rev 11)
05:00.0 PCI bridge: Intel Corporation DSL5520 Thunderbolt 2 Bridge [Falcon Ridge 4C 2013]
06:00.0 PCI bridge: Intel Corporation DSL5520 Thunderbolt 2 Bridge [Falcon Ridge 4C 2013]
06:03.0 PCI bridge: Intel Corporation DSL5520 Thunderbolt 2 Bridge [Falcon Ridge 4C 2013]
06:04.0 PCI bridge: Intel Corporation DSL5520 Thunderbolt 2 Bridge [Falcon Ridge 4C 2013]
06:05.0 PCI bridge: Intel Corporation DSL5520 Thunderbolt 2 Bridge [Falcon Ridge 4C 2013]
06:06.0 PCI bridge: Intel Corporation DSL5520 Thunderbolt 2 Bridge [Falcon Ridge 4C 2013]
07:00.0 System peripheral: Intel Corporation DSL5520 Thunderbolt 2 NHI [Falcon Ridge 4C 2013]
08:00.0 PCI bridge: Intel Corporation DSL2210 Thunderbolt Controller [Port Ridge 1C 2011]
09:00.0 PCI bridge: Intel Corporation DSL2210 Thunderbolt Controller [Port Ridge 1C 2011]
0a:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM57762 Gigabit Ethernet PCIe
sukko@shockwave ~ $ lspci -v -s 0a:00.0
0a:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM57762 Gigabit Ethernet PCIe
Subsystem: Apple Inc. NetXtreme BCM57762 Gigabit Ethernet PCIe (Thunderbolt to Gigabit Ethernet Adapter)
Physical Slot: 9
Flags: bus master, fast devsel, latency 0, IRQ 19
Memory at bcc00000 (64-bit, prefetchable) [size=64K]
Memory at bcc10000 (64-bit, prefetchable) [size=64K]
Expansion ROM at b0c00000 [disabled] [size=64K]
Capabilities: <access denied>
Kernel driver in use: tg3
Kernel modules: tg3Code:sukko@shockwave ~ $ dmesg | grep eth
[gio nov 19 20:17:15 2020] tg3 0000:0a:00.0 eth0: Tigon3 [partno(BCM957762) rev 57766000] (PCI Express) MAC address xx:xx:xx:xx:xx:xx
[gio nov 19 20:17:15 2020] tg3 0000:0a:00.0 eth0: attached PHY is 57765 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
[gio nov 19 20:17:15 2020] tg3 0000:0a:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
[gio nov 19 20:17:15 2020] tg3 0000:0a:00.0 eth0: dma_rwctrl[00000001] dma_mask[64-bit]
[gio nov 19 20:17:15 2020] eth1: Broadcom BCM43a0 802.11 Hybrid Wireless Controller 6.30.223.271 (r587334)
[gio nov 19 20:17:23 2020] tg3 0000:0a:00.0 eth0: Link is up at 1000 Mbps, full duplex
[gio nov 19 20:17:23 2020] tg3 0000:0a:00.0 eth0: Flow control is on for TX and on for RX
[gio nov 19 20:17:23 2020] tg3 0000:0a:00.0 eth0: EEE is enabledNow let me unplug it and plug it back in:
Code:[gio nov 19 21:35:26 2020] thunderbolt 0-3: device disconnected
[gio nov 19 21:35:26 2020] pci_bus 0000:0a: busn_res: [bus 0a] is released
[gio nov 19 21:35:26 2020] pci_bus 0000:09: busn_res: [bus 09-0a] is released
[gio nov 19 21:35:26 2020] acpiphp: Slot [1] unregistered
[gio nov 19 21:35:26 2020] acpiphp: Slot [2-1] unregistered
[gio nov 19 21:35:26 2020] acpiphp: Slot [3-1] unregistered
[gio nov 19 21:35:26 2020] acpiphp: Slot [4-1] unregistered
[gio nov 19 21:35:26 2020] acpiphp: Slot [5-1] unregistered

[gio nov 19 21:35:58 2020] thunderbolt 0-3: new device found, vendor=0x1 device=0x8003
[gio nov 19 21:35:58 2020] thunderbolt 0-3: Apple, Inc. Thunderbolt to Gigabit Ethernet AdapterAs you can see, the kernel detects it, but the interface doesn't show up, not even after reloading the module:

Code:shockwave ~ # ifconfig -a
eth1: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether xx:xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
RX packets 21 bytes 3825 (3.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 33 bytes 7263 (7.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 18

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 3386 bytes 292244 (285.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3386 bytes 292244 (285.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

shockwave ~ # rmmod tg3
shockwave ~ # modprobe tg3
shockwave ~ # ifconfig -a
eth1: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether xx:xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
RX packets 21 bytes 3825 (3.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 33 bytes 7263 (7.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 18

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 3914 bytes 337172 (329.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3914 bytes 337172 (329.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0Any hints? Thanks in advance!latest?d=yIl2AUoC8zA latest?i=XTFFTRQD8ck:umnbHz6-hO8:F7zBnMy latest?i=XTFFTRQD8ck:umnbHz6-hO8:V_sGLiP latest?d=qj6IDK7rITs latest?i=XTFFTRQD8ck:umnbHz6-hO8:gIN9vFwXTFFTRQD8ck
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments