Skip to contentSkip to conversation

net driver fixes

PATCH Linus Torvalds 3 participants 5 messages Mar 2, 2007 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Ok, here's an interesting one: my e1000 card no longer worked for a while.

The green link-light blinks on/off once a second, and in time to that, my dmesg fills up with an endless supply of

	e1000: eth0: e1000_watchdog: NIC Link is Down
	e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
	e1000: eth0: e1000_watchdog: 10/100 speed: disabling TSO

and networking obviously doesn't actually work.

I tried to do bisection, but my log made no sense, since it seemed to say that the problem was introduced between git commits 2442d310 and bff288c1, and there aren't even any commits to drivers/net/ in that range!

SO...

It seems to be that what actually happened is that my switch got confused (I ended up just power-cycling the switch when I hit the "impossible" situation, and that seems to be what made it start working again, rather than any kernel changes due to bisection ;)

Regardless, the "spam the logs every second" is a *bad* idea. I'll try to see if I can re-create the problem (probably not), but I thought I'd report this message spamming regardless. If there really is some link problem, no way do I want to see a message about it every second for all eternity. Hmm?

Does this "once a second link issue" ring any bells for anybody? Suggested fixes? I realize people do want to know about link problems, but that was a bit excessive and since it happened with a reboot, I thought it was a kernel bug (it may still be - I'll have to try to recreate it, but my suspicion right now is that the reboot just caused some noise and/or link renegotiation on the ethernet link that was what actually confused my switch).

Linus

#2 lore raw
Quoted 30 lines · Linus Torvalds

Ok, here's an interesting one: my e1000 card no longer worked for a while.

The green link-light blinks on/off once a second, and in time to that, my dmesg fills up with an endless supply of

        e1000: eth0: e1000_watchdog: NIC Link is Down
        e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
        e1000: eth0: e1000_watchdog: 10/100 speed: disabling TSO

and networking obviously doesn't actually work.

I tried to do bisection, but my log made no sense, since it seemed to say that the problem was introduced between git commits 2442d310 and bff288c1, and there aren't even any commits to drivers/net/ in that range!

SO...

It seems to be that what actually happened is that my switch got confused (I ended up just power-cycling the switch when I hit the "impossible" situation, and that seems to be what made it start working again, rather than any kernel changes due to bisection ;)

Regardless, the "spam the logs every second" is a *bad* idea. I'll try to see if I can re-create the problem (probably not), but I thought I'd report this message spamming regardless. If there really is some link problem, no way do I want to see a message about it every second for all eternity. Hmm?

Quoted 8 lines

Does this "once a second link issue" ring any bells for anybody? Suggested fixes? I realize people do want to know about link problems, but that was a bit excessive and since it happened with a reboot, I thought it was a kernel bug (it may still be - I'll have to try to recreate it, but my suspicion right now is that the reboot just caused some noise and/or link renegotiation on the ethernet link that was what actually confused my switch).

I have seen this occasionally with the e1000 on Xscale IOP development boards. The driver prints the up/down messages and makes no progress. I can also confirm that resetting the switch (SMC8505T) fixed things for me. It might be nice to just print "e1000 link can not be established try resetting your switch?" after some time.

It's not clear what the steps are to reproduce this, and it doesn't happen frequently enough to be a show stopper in my environment. The IOP boards in the lab typically run an NFS root and are often power cycled without running shutdown.

So at least an "I see it too" for what it's worth.

Quoted 1 line

Linus

--
Dan

#3 lore raw
In reply to Linus Torvalds
Quoted 10 lines · Linus Torvalds

Ok, here's an interesting one: my e1000 card no longer worked for a while.

The green link-light blinks on/off once a second, and in time to that, my dmesg fills up with an endless supply of

	e1000: eth0: e1000_watchdog: NIC Link is Down
	e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
	e1000: eth0: e1000_watchdog: 10/100 speed: disabling TSO

and networking obviously doesn't actually work.

Just out of curiosity, which e1000 chipset+motherboard are you running this on? there have been problems reported with AMT2 on several chipsets (AMT2 is not supported under linux, unlike AMT1), and having it enabled in the BIOS produces this phenomenon.

I have to dig up which nic was affected, don't know by heart.

Cheers,

Auke

#4 lore raw
Quoted 7 lines · Auke
Quoted 6 lines · Linus Torvalds

Ok, here's an interesting one: my e1000 card no longer worked for a while.

The green link-light blinks on/off once a second, and in time to that, my dmesg fills up with an endless supply of

Quoted 8 lines
Quoted 5 lines
	e1000: eth0: e1000_watchdog: NIC Link is Down
	e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
	e1000: eth0: e1000_watchdog: 10/100 speed: disabling TSO

and networking obviously doesn't actually work.

Just out of curiosity, which e1000 chipset+motherboard are you running this on?

The kernel prints out:

	e1000: 0000:00:19.0: e1000_probe: (PCI Express:2.5Gb/s:Width x1) 00:16:76:c7:eb:fe
	e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection

and lspci says:

	00:19.0 Ethernet controller: Intel Corporation 82566DM Gigabit Network Connection (rev 02)
	        Subsystem: Intel Corporation Unknown device 0001
	        Flags: bus master, fast devsel, latency 0, IRQ 506
	        Memory at e0400000 (32-bit, non-prefetchable) [size=128K]
	        Memory at e0424000 (32-bit, non-prefetchable) [size=4K]
	        I/O ports at 20c0 [size=32]
	        Capabilities: <access denied>
	00: 86 80 4a 10 07 04 10 00 02 00 00 02 00 00 00 00
	10: 00 00 40 e0 00 40 42 e0 c1 20 00 00 00 00 00 00
	20: 00 00 00 00 00 00 00 00 00 00 00 00 86 80 01 00
	30: 00 00 00 00 c8 00 00 00 00 00 00 00 0b 01 00 00

It's an Intel system (Host bridge: Intel Corporation 82Q963/Q965) with integrated graphics: PCI ID 8086:2990 (rev 02) for the host bridge.

DMI info isn't very interesting, but it's an all-Intel board:

	OEM-specific Type
		Strings:
			Intel_ASF
			Intel_ASF_001
	..
	Base Board Information
		Manufacturer: Intel Corporation
		Product Name: DQ965GF
		Version: AAD41676-305
		Serial Number: BQGF635009R2
	...
	BIOS Information
		Vendor: Intel Corp.
		Version: CO96510J.86A.4462.2006.0804.2059
		Release Date: 08/04/2006

so it's all-intel chipset, all-intel board, and all-intel BIOS ;)

Quoted 3 lines

there have been problems reported with AMT2 on several chipsets (AMT2 is not supported under linux, unlike AMT1), and having it enabled in the BIOS produces this phenomenon.

Is there some way to at least disable AMT2 from the Linux driver (ie I assume this is some issue of Intel not documenting it all - but maybe you can add a "turn off that bit" to the affected chip).

If I'm not the only one to see it, it's obviously not just my personal ethernet switch bug, but apparently the e1000 becoming confused by some link detection event (and powering down the switch probably just gets it out of its confusion).

Linus

#5 lore raw
Quoted 8 lines · Linus Torvalds

On Thu, 1 Mar 2007, Kok, Auke wrote:
and lspci says:

00:19.0 Ethernet controller: Intel Corporation 82566DM Gigabit Network Connection (rev 02)

DMI info isn't very interesting, but it's an all-Intel board:

so it's all-intel chipset, all-intel board, and all-intel BIOS ;)

It's like the devil plays with it. We just discussed adding a piece of text about this issue to our README.

Quoted 5 lines
Quoted 3 lines

there have been problems reported with AMT2 on several chipsets (AMT2 is not supported under linux, unlike AMT1), and having it enabled in the BIOS produces this phenomenon.

Is there some way to at least disable AMT2 from the Linux driver (ie I assume this is some issue of Intel not documenting it all - but maybe you can add a "turn off that bit" to the affected chip).

Our suggestion is (IOW will be in the README) to turn AMT2 off completely in the BIOS, but I'll investigate if your suggestion is possible. It may be another workaround but this one indeed hurts.

Quoted 1 line

If I'm not the only one to see it, it's obviously not just my personal ethernet switch bug, but apparently the e1000 becoming confused by some link detection event (and powering down the switch probably just gets it out of its confusion).

No, this fits the description perfectly of this issue. I'll get right on it and owe you a patch for the e1000: not ready for irq problem too, which seems to hold out after tests...

Cheers,

Auke