You are not logged in.

#1 2017-06-04 11:20:15

Kilobyte
Member
Registered: 2014-03-22
Posts: 13

[Solved] NIC stops detecting link when driver is loaded

Hello everyone,

I have a host with Intel NIC which exhibits the following behaviour the momen the igb driver is loaded:
* the link-LED turns off
* `ip link` reports no link
* ethtool reports no link

It works fine in the live iso both from november and march. I could reproduce the problem with linux 4.11.3 and linux-lts 4.9.30, i also tried downgrading to 4.10.13, which did not solve the issue.
When blacklisting the driver the system behaves as expected (no network interfaces appear, but the link LEDs stay on). However it instantly goes into said state the moment the igb module is loaded

Hardware is an apu3b4 (http://www.pcengines.ch/apu3b4.htm), should that matter.

As a side note: it did work just fine for two weeks and only when i changed a couple of things (openvswitch config, enable ip forward, some iptables rules) it started happening. I did an almost full reinstall since (wiped partition, but no repartition/reformat), which has not fixed it, so i doubt it's a configuration error.

Edit: before anyone asks:
lspci:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1566
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 156b
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
00:02.5 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
00:08.0 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 1537
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 11)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [IDE mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 42)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:14.7 SD Host controller: Advanced Micro Devices, Inc. [AMD] FCH SD Flash Controller (rev 01)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1580
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1581
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1582
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1583
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1584
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1585
01:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
02:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
03:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
04:00.0 Network controller: Qualcomm Atheros QCA986x/988x 802.11ac Wireless Network Adapter

dmesg:

[    6.064277] pps pps0: new PPS source ptp0
[    6.064328] igb 0000:01:00.0: added PHC on eth0
[    6.064333] igb 0000:01:00.0: Intel(R) Gigabit Ethernet Network Connection
[    6.064340] igb 0000:01:00.0: eth0: (PCIe:2.5Gb/s:Width x1) 00:0d:b9:46:54:18
[    6.064374] igb 0000:01:00.0: eth0: PBA No: FFFFFF-0FF
[    6.064379] igb 0000:01:00.0: Using MSI-X interrupts. 2 rx queue(s), 2 tx queue(s)
[    6.101943] pps pps1: new PPS source ptp1
[    6.101955] igb 0000:02:00.0: added PHC on eth1
[    6.101959] igb 0000:02:00.0: Intel(R) Gigabit Ethernet Network Connection
[    6.101965] igb 0000:02:00.0: eth1: (PCIe:2.5Gb/s:Width x1) 00:0d:b9:46:54:19
[    6.101970] igb 0000:02:00.0: eth1: PBA No: FFFFFF-0FF
[    6.101975] igb 0000:02:00.0: Using MSI-X interrupts. 2 rx queue(s), 2 tx queue(s)
[    6.122578] ath10k_pci 0000:04:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    6.136256] pps pps2: new PPS source ptp2
[    6.136266] igb 0000:03:00.0: added PHC on eth2
[    6.136270] igb 0000:03:00.0: Intel(R) Gigabit Ethernet Network Connection
[    6.136276] igb 0000:03:00.0: eth2: (PCIe:2.5Gb/s:Width x1) 00:0d:b9:46:54:1a
[    6.136282] igb 0000:03:00.0: eth2: PBA No: FFFFFF-0FF
[    6.136315] igb 0000:03:00.0: Using MSI-X interrupts. 2 rx queue(s), 2 tx queue(s)

Last edited by Kilobyte (2017-06-07 13:06:26)

Offline

#2 2017-06-07 13:06:09

Kilobyte
Member
Registered: 2014-03-22
Posts: 13

Re: [Solved] NIC stops detecting link when driver is loaded

I found the solution to this problem, caused by my own stupidity.

Intel NICs automatically turn off when the link is set to DOWN. It did work earlier because then i had a dhcp client running which set the link to up. Same for the live cd.

I solved the problem by putting an empty systemd-networkd config that matches on said interface which causes it to set the interface up

Offline

Board footer

Powered by FluxBB