LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-19-2020, 03:41 PM   #1
SukkoPera
LQ Newbie
 
Registered: Jan 2012
Location: Northern Italy
Distribution: Slackware, what else?
Posts: 20

Rep: Reputation: Disabled
Thunderbolt to Gigabit Ethernet Adapter not showing up when hotplugged


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 18
eth0 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: tg3
Code:
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 enabled
Now 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 Adapter
As 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 0
Any hints? Thanks in advance!

Last edited by SukkoPera; 11-19-2020 at 03:45 PM.
 
Old 11-24-2020, 09:27 AM   #2
kgha
Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 378

Rep: Reputation: 283Reputation: 283Reputation: 283
Today I had reason to connect my Lenovo Ideapad via a Gigabit USB3 network card. I disconnected the running wlan connection, plugged in the USB contact and was immediately connected. This on a fully upgraded -current, NetworkManager running.
Maybe a hardware issue - something in the macbook or your Gigabit/USB thingy?
 
Old 11-24-2020, 03:24 PM   #3
SukkoPera
LQ Newbie
 
Registered: Jan 2012
Location: Northern Italy
Distribution: Slackware, what else?
Posts: 20

Original Poster
Rep: Reputation: Disabled
Naaah, the hardware is OK. It works on OS X and the kernel detects it fine. I'm sure it's a software thing, but I can't say if it's kernel-related or whatever (maybe udev?). Any hint is appreciated.
 
Old 11-25-2020, 09:38 AM   #4
kgha
Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 378

Rep: Reputation: 283Reputation: 283Reputation: 283
Here's something that seems to be relevant (meaning that your kernel needs to be rebuilt with the patch mentioned):
https://lkml.org/lkml/2015/9/20/150
 
1 members found this post helpful.
Old 11-28-2020, 05:25 AM   #5
SukkoPera
LQ Newbie
 
Registered: Jan 2012
Location: Northern Italy
Distribution: Slackware, what else?
Posts: 20

Original Poster
Rep: Reputation: Disabled
Thanks, but it looks like that patch is already included in kernel 5.4.78.
 
  


Reply

Tags
apple, broadcom, macbook


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gigabit NIC not negotiating to gigabit. d2490n Linux - Networking 3 03-26-2014 03:50 PM
Built-in USB Ethernet adapter vs. (standard) Ethernet adapter bgs@pt Linux - Networking 1 01-06-2013 09:05 PM
TRENDnet TEG-PCITXR 32-bit gigabit PCI adapter not actually gigabit? blankbmx Linux - Hardware 1 03-03-2010 12:40 AM
VT6120 Gigabit Ethernet Adapter not passing multicast traffic bartock Linux - Networking 2 03-17-2008 02:04 PM
Gigabit LAN ethernet adapter not working ParticleHunter Linux From Scratch 1 07-31-2005 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration