Machine restart doesn't work - Intel 965G, 2.6.19-rc2
Subsystems (2)
Quoted 7 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Ryan Richter
Sent: Friday, October 13, 2006 2:26 PM
To: [email protected]
Subject: Machine restart doesn't work - Intel 965G, 2.6.19-rc2
Quoted 5 lines
I have a new system based on the Inter 965G chipset, and all the kernels
I've used - 2.6.18, .19-rc1, and .19-rc2 - have failed to reset the machine on a reboot. "Machine Restart" is printed, but it just hangs there. SysRQ is non-functional at that point.
The similar issue has been discussed in adjacent thread "Machine reboot". Is it Intel
motherboard, or just carries Intel chipset ? Does building e1000 driver as a module and 'rmmod e1000' just before reboot help ?
Aleks.
Quoted 13 lines · Aleksey Gorelov
Quoted 7 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Ryan Richter
Sent: Friday, October 13, 2006 2:26 PM
To: [email protected]
Subject: Machine restart doesn't work - Intel 965G, 2.6.19-rc2Quoted 5 lines
I have a new system based on the Inter 965G chipset, and all the kernels
I've used - 2.6.18, .19-rc1, and .19-rc2 - have failed to reset the machine on a reboot. "Machine Restart" is printed, but it just hangs there. SysRQ is non-functional at that point.
Quoted 4 lines
The similar issue has been discussed in adjacent thread "Machine reboot". Is it Intel motherboard, or just carries Intel chipset ? Does building e1000 driver as a module and 'rmmod e1000' just before reboot help ?
It's an Intel DG965RY board. I'll try out your suggestion on Monday.
Thanks,
-ryan
Quoted 6 lines · Ryan Richter
Quoted 4 lines
The similar issue has been discussed in adjacent thread "Machine reboot". Is it Intel motherboard, or just carries Intel chipset ? Does building e1000 driver as a module and 'rmmod e1000' just before reboot help ?
It's an Intel DG965RY board. I'll try out your suggestion on Monday.
Btw, are you using i386 or x86_64 architecture?
Signature · 1 line
Lukáš Hejtmánek
Quoted 9 lines · Lukas Hejtmanek
Quoted 6 lines · Ryan Richter
Quoted 4 lines
The similar issue has been discussed in adjacent thread "Machine reboot". Is it Intel motherboard, or just carries Intel chipset ? Does building e1000 driver as a module and 'rmmod e1000' just before reboot help ?
It's an Intel DG965RY board. I'll try out your suggestion on Monday.
Btw, are you using i386 or
x86_64architecture?
x86_64.
-ryan
Quoted 10 lines · Ryan Richter
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
The similar issue has been discussed in adjacent thread "Machine reboot". Is it Intel motherboard, or just carries Intel chipset ? Does building e1000 driver as a module and 'rmmod e1000' just before reboot help ?
It's an Intel DG965RY board. I'll try out your suggestion on Monday.
Btw, are you using i386 or
x86_64architecture?
x86_64.
Hm, I'm also using x86_64 and 2.6.19-rc1-git9 works OK for me regardless of e1000. 2.6.18 hangs if e1000 is built in.
Could you also try exactly 2.6.19-rc1-git9?
Signature · 1 line
Lukáš Hejtmánek
Quoted 7 lines · --- Ryan Richter
Quoted 6 lines · Lukas Hejtmanek
Quoted 5 lines · Ryan Richter
Quoted 4 lines
The similar issue has been discussed in adjacent thread "Machine reboot". Is it Intel motherboard, or just carries Intel chipset ? Does building e1000 driver as a module and 'rmmod e1000' just before reboot help ?
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
It's an Intel DG965RY board. I'll try out your suggestion on Monday.
Btw, are you using i386 or
x86_64architecture?
x86_64.
And mine is i386.
Aleks.
Quoted 8 lines · Lukas Hejtmanek
Quoted 7 lines · Ryan Richter
Quoted 7 lines
Quoted 6 lines
Quoted 4 lines
The similar issue has been discussed in adjacent thread "Machine reboot". Is it Intel motherboard, or just carries Intel chipset ? Does building e1000 driver as a module and 'rmmod e1000' just before reboot help ?
It's an Intel DG965RY board. I'll try out your suggestion on Monday.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Btw, are you using i386 or
x86_64architecture?
x86_64.Hm, I'm also using
x86_64and 2.6.19-rc1-git9 works OK for me regardless of e1000. 2.6.18 hangs if e1000 is built in.Could you also try exactly 2.6.19-rc1-git9?
Will do, I'll try that on Monday also. I'd do it now, but obviously I can't reboot the machine remotely...
Thanks,
-ryan
Quoted 8 lines · Lukas Hejtmanek
Quoted 7 lines · Ryan Richter
Quoted 7 lines
Quoted 6 lines
Quoted 4 lines
The similar issue has been discussed in adjacent thread "Machine reboot". Is it Intel motherboard, or just carries Intel chipset ? Does building e1000 driver as a module and 'rmmod e1000' just before reboot help ?
It's an Intel DG965RY board. I'll try out your suggestion on Monday.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Btw, are you using i386 or
x86_64architecture?
x86_64.Hm, I'm also using
x86_64and 2.6.19-rc1-git9 works OK for me regardless of e1000. 2.6.18 hangs if e1000 is built in.Could you also try exactly 2.6.19-rc1-git9?
2.6.19-rc1-git9 doesn't work any better for me. I haven't tried unloading the e1000 module yet. Since I run the machine off an nfsroot, it will require some creativity to test that.
-ryan
Quoted 6 lines · --- Ryan Richter
2.6.19-rc1-git9 doesn't work any better for me. I haven't tried unloading the e1000 module yet. Since I run the machine off an nfsroot, it will require some creativity to test that.
-ryan
You may try the following patch instead if it's easier for you. It'll likely break suspend stuff, but you won't need to play around with modules.
Aleks.
drivers/net/e1000/e1000_main.c renamed from drivers/net/e1000/e1000_main.c.orig +1 -0
@@ -4847,6 +4847,7 @@static void e1000_shutdown (struct pci_dev *pdev) {e1000_suspend (pdev,PMSG_SUSPEND ); +pci_set_power_state (pdev,PCI_D0 ); }#ifdef CONFIG_NET_POLL_CONTROLLER
Re: Machine restart doesn't work - Intel 965G, 2.6.19-rc2 / e1000?
Quoted 16 lines · Aleksey Gorelov
Quoted 5 lines · --- Ryan Richter
2.6.19-rc1-git9 doesn't work any better for me. I haven't tried unloading the e1000 module yet. Since I run the machine off an nfsroot, it will require some creativity to test that.
-ryan
You may try the following patch instead if it's easier for you. It'll likely break suspend stuff, but you won't need to play around with modules.
Aleks.
drivers/net/e1000/e1000_main.c line 4853
Quoted 7 lines
drivers/net/e1000/e1000_main.c renamed from drivers/net/e1000/e1000_main.c.orig +1
-0@@ -4847,6 +4847,7 @@static void e1000_shutdown (struct pci_dev *pdev) {e1000_suspend (pdev,PMSG_SUSPEND ); +pci_set_power_state (pdev,PCI_D0 ); }#ifdef CONFIG_NET_POLL_CONTROLLER
I wouldn't do that like this, since e1000_suspend already does a pci_set_power_state() right before it exits, and doing two of those closely after another might result in an undetermined state.
I would be more interested in forcing D3 state instead of the current pci_set_power_state(pdev, pci_choose_state(pdev, state)); in e1000_suspend, so can you try this instead?
drivers/net/e1000/e1000_main.c +1 -1
@@ -4793,7 +4793,7 @@ #endifpci_disable_device (pdev); -pci_set_power_state (pdev,pci_choose_state (pdev, state)); +pci_set_power_state (pdev, PCI_D3hot);return 0 ; }
alternatively, you can try PCI_D3cold or PCI_D0, but setting the device to D0 is a no-op: the device is already in D0 at run-time, so that's silly.
In any case: this is not a driver bug, but really (unfortunately) a platform issue, so this fix is not suitable for general cases *at all*, and we'd have to validate this nasty workaround on all other chipsets that e1000 supports too, something that ain't going to happen I'm sure.
constructive: I've just spend some time working with e100+suspend+shutdown+netconsole, so I'll audit e1000 for that in the next few weeks and make sure that all works properly. Perhaps that yields something for you.
Cheers,
Auke
RE: Machine restart doesn't work - Intel 965G, 2.6.19-rc2 / e1000?
Quoted 44 lines
-----Original Message-----
From: Auke Kok [mailto:[email protected]]
Sent: Tuesday, October 17, 2006 2:17 PM
To: Aleksey Gorelov
Cc: Ryan Richter; Lukas Hejtmanek; [email protected]; auke- [email protected]; Jesse Brandeburg; Ronciak, John
Subject: Re: Machine restart doesn't work - Intel 965G, 2.6.19-rc2 / e1000?Quoted 9 lines · Aleksey Gorelov
Quoted 5 lines · --- Ryan Richter
2.6.19-rc1-git9 doesn't work any better for me. I haven't tried unloading the e1000 module yet. Since I run the machine off an nfsroot, it will require some creativity to test that.
-ryan
You may try the following patch instead if it's easier for you. It'll
likely break suspend stuff,
Quoted 5 lines
but you won't need to play around with modules.
Aleks.
--- linux-2.6.19-rc2/drivers/net/e1000/e1000_main.c.orig 2006-10-17
13:36:06.000000000 -0700
Quoted 1 line
+++
linux-2.6.19-rc2/drivers/net/e1000/e1000_main.c2006-10-1713:36:50.000000000 -0700
Review line 4853
Quoted 8 lines
(quoted diff) +1
-0@@ -4847,6 +4847,7 @@ static void e1000_shutdown(struct pci_dev *pdev) { e1000_suspend(pdev, PMSG_SUSPEND); + pci_set_power_state(pdev, PCI_D0); } #ifdef CONFIG_NET_POLL_CONTROLLERI wouldn't do that like this, since
e1000_suspendalready does apci_set_power_state()
right before it exits, and doing two of those closely after another might result in an
undetermined state.
Quoted 4 lines
I would be more interested in forcing D3 state instead of the current
pci_set_power_state(pdev, pci_choose_state(pdev, state));ine1000_suspend, so can you
try this instead?
But how this is different from original variant? pci_choose_state(pdev, PMSG_SUSPEND) returns PCI_D3hot, and it is when LAN in this state machine does not reboot. That's why I tried PCI_D0 in first place (actually, I've originally just remove pci_set_power_state call at all). I did not try PCI_D3cold, though.
Quoted 22 lines
drivers/net/e1000/e1000_main.c +1
-1@@ -4793,7 +4793,7 @@ #endifpci_disable_device (pdev); -pci_set_power_state (pdev,pci_choose_state (pdev, state)); +pci_set_power_state (pdev, PCI_D3hot);return 0 ; }alternatively, you can try
PCI_D3coldorPCI_D0, but setting the device to D0 is a
no-op: the device is already in D0 at run-time, so that's silly.
Quoted 7 lines
In any case: this is not a driver bug, but really (unfortunately) a platform issue, so
this fix is not suitable for general cases *at all*, and we'd have to validate this
nasty workaround on all other chipsets that e1000 supports too, something that ain't
going to happen I'm sure.
Anyway, both patches are rather ugly, and will become even uglier with checks for particular platform and system_state. I wish BIOS engineers fix it 'the right way'.
Aleks
Quoted 10 lines
constructive: I've just spend some time working with e100+suspend+shutdown+netconsole,
so I'll audit e1000 for that in the next few weeks and make sure that all works
properly. Perhaps that yields something for you.Cheers,
Auke
Quoted 19 lines · Aleksey Gorelov
Quoted 6 lines · --- Ryan Richter
2.6.19-rc1-git9 doesn't work any better for me. I haven't tried unloading the e1000 module yet. Since I run the machine off an nfsroot, it will require some creativity to test that.
-ryan
You may try the following patch instead if it's easier for you. It'll likely break suspend stuff,
but you won't need to play around with modules.Aleks.
drivers/net/e1000/e1000_main.c line 4853
Quoted 7 lines
drivers/net/e1000/e1000_main.c renamed from drivers/net/e1000/e1000_main.c.orig +1
-0@@ -4847,6 +4847,7 @@static void e1000_shutdown (struct pci_dev *pdev) {e1000_suspend (pdev,PMSG_SUSPEND ); +pci_set_power_state (pdev,PCI_D0 ); }#ifdef CONFIG_NET_POLL_CONTROLLER
This patch allows the machine to reboot normally.
Thanks,
-ryan
Quoted 23 lines · Ryan Richter
Quoted 22 lines · Aleksey Gorelov
Quoted 5 lines · --- Ryan Richter
2.6.19-rc1-git9 doesn't work any better for me. I haven't tried unloading the e1000 module yet. Since I run the machine off an nfsroot, it will require some creativity to test that.
-ryan
You may try the following patch instead if it's easier for you. It'll likely break suspend stuff,
but you won't need to play around with modules.Aleks.
drivers/net/e1000/e1000_main.c renamed from drivers/net/e1000/e1000_main.c.orig +1
-0@@ -4847,6 +4847,7 @@static void e1000_shutdown (struct pci_dev *pdev) {e1000_suspend (pdev,PMSG_SUSPEND ); +pci_set_power_state (pdev,PCI_D0 ); }
Quoted 4 lines
drivers/net/e1000/e1000_main.c line 4853
Quoted 1 line
drivers/net/e1000/e1000_main.c renamed from drivers/net/e1000/e1000_main.c.orig +0
-0#ifdef CONFIG_NET_POLL_CONTROLLER This patch allows the machine to reboot normally.
To all that are seeing this problem:
can you send me (off-list is OK) the motherboard number+name, the BIOS versions (+ where you downloaded them from) that you have tried and for each version, whether it worked without this workaround or not?
Thanks,
Auke
Quoted 5 lines · Auke Kok
To all that are seeing this problem:
can you send me (off-list is OK) the motherboard number+name, the BIOS versions (+ where you downloaded them from) that you have tried and for each version, whether it worked without this workaround or not?
Three days ago, Intel released a new BIOS version that claims to fix this issue.
I've tested it with 2.6.18 kernel which was unable to restart, it works now so it seems that fix was successful.
Signature · 1 line
Lukáš Hejtmánek
Quoted 5 lines · Auke Kok
To all that are seeing this problem:
can you send me (off-list is OK) the motherboard number+name, the BIOS versions (+ where you downloaded them from) that you have tried and for each version, whether it worked without this workaround or not?
I've got an Intel DG965RY with BIOS version 1250. That's the only BIOS I've tried (I flashed it first thing when I got the machine), and the workaround works.
-ryan
Quoted 8 lines · Ryan Richter
Quoted 3 lines · Auke Kok
To all that are seeing this problem:
can you send me (off-list is OK) the motherboard number+name, the BIOS versions (+ where you downloaded them from) that you have tried and for each version, whether it worked without this workaround or not?
I've got an Intel DG965RY with BIOS version 1250. That's the only BIOS I've tried (I flashed it first thing when I got the machine), and the workaround works.
OK, thanks.
Quoted 4 lines · Lukas Hejtmanek
Three days ago, Intel released a new BIOS version that claims to fix this issue.
I've tested it with 2.6.18 kernel which was unable to restart, it works now so it seems that fix was successful.
this is incomplete information. Which version did you have before? what is your motherboard number/name? etc. Please be complete.
Please provide what I asked for, if you can. I really need to know _everything_
Auke
Quoted 5 lines · Auke Kok
Quoted 1 line · Lukas Hejtmanek
Three days ago, Intel released a new BIOS version that claims to fix this
issue.
Quoted 2 lines
I've tested it with 2.6.18 kernel which was unable to restart, it works
Quoted 8 lines
now so
Quoted 1 line
it seems that fix was successful.
this is incomplete information. Which version did you have before? what is your motherboard number/name? etc. Please be complete.
Please provide what I asked for, if you can. I really need to know _everything_
Board name: DP965LT
BIOS version: 1458
2.6.18, 2.6.19-rc1 reboots OK.
BIOS version: 816
2.6.18 reboots OK.
BIOS version: 1162, 1176, 1250
2.6.18 cannot reboot. (rmmod e1000 causes reboot OK) 2.6.19-rc1 reboots OK (no additional patches)
Signature · 1 line
Lukáš Hejtmánek
Quoted 7 lines · Lukas Hejtmanek
Quoted 5 lines · Auke Kok
To all that are seeing this problem:
can you send me (off-list is OK) the motherboard number+name, the BIOS versions (+ where you downloaded them from) that you have tried and for each version, whether it worked without this workaround or not?
Quoted 5 lines
Three days ago, Intel released a new BIOS version that claims to fix this issue.
I've tested it with 2.6.18 kernel which was unable to restart, it works now so it seems that fix was successful.
I just tried the 1458 BIOS without the workaround and it's working fine.
Thanks!
-ryan
Quoted 6 lines · Ryan Richter
Quoted 5 lines · Lukas Hejtmanek
Quoted 3 lines · Auke Kok
To all that are seeing this problem:
can you send me (off-list is OK) the motherboard number+name, the BIOS versions (+ where you downloaded them from) that you have tried and for each version, whether it worked without this workaround or not?
Quoted 7 lines
Quoted 5 lines
Three days ago, Intel released a new BIOS version that claims to fix this issue.
I've tested it with 2.6.18 kernel which was unable to restart, it works now so it seems that fix was successful.
I just tried the 1458 BIOS without the workaround and it's working fine.
okay, looks like the latest BIOS fixes it (hang on reboot/restart) for everyone. Thanks for reporting back in, I'll make sure my colleagues write this down for everyone.
Cheers,
Auke
Quoted 10 lines · --- Ryan Richter
Quoted 5 lines · Auke Kok
To all that are seeing this problem:
can you send me (off-list is OK) the motherboard number+name, the BIOS versions (+ where you downloaded them from) that you have tried and for each version, whether it worked without this workaround or not?
I've got an Intel DG965RY with BIOS version 1250. That's the only BIOS I've tried (I flashed it first thing when I got the machine), and the workaround works.
Mine was Intel DG965WH with the same BIOS version. I don't have the board currently, but I'll try to retest if it comes to my hands one more time.
Aleks.
e1000 driver problems
In reply to Auke KokHello,
I have laptop thinkpad T61 with 82566MM Gigabit Network Connection (rev 03) (8086:1049). I have kernel 2.6.24-rc3. E1000E driver does not work (the card is not detected although it is PCI-E), with E1000 driver, it works mostly OK unless I force speed to 100Mbits. (ethtool -s eth0 autoneg off speed 100)
I got message about device hang:
Nov 20 10:57:24 anubis kernel: [ 212.307502] e1000: eth0: e1000_watchdog: 10/100 speed: disabling TSO Nov 20 11:03:02 anubis kernel: [ 242.811474] Tx Queue <0> Nov 20 11:03:02 anubis kernel: [ 242.811476] TDH <80> Nov 20 11:03:02 anubis kernel: [ 242.811478] TDT <81> Nov 20 11:03:02 anubis kernel: [ 242.811480] next_to_use <81> Nov 20 11:03:02 anubis kernel: [ 242.811482] next_to_clean <80> Nov 20 11:03:02 anubis kernel: [ 242.811484] buffer_info[next_to_clean] Nov 20 11:03:02 anubis kernel: [ 242.811486] time_stamp <100079cdf> Nov 20 11:03:02 anubis kernel: [ 242.811488] next_to_watch <80> Nov 20 11:03:02 anubis kernel: [ 242.811489] jiffies <100079e68> Nov 20 11:03:02 anubis kernel: [ 242.811491] next_to_watch.status <0> Nov 20 11:03:04 anubis kernel: [ 243.000047] Tx Queue <0> Nov 20 11:03:04 anubis kernel: [ 243.000049] TDH <80> Nov 20 11:03:04 anubis kernel: [ 243.000051] TDT <81> Nov 20 11:03:04 anubis kernel: [ 243.000053] next_to_use <81>
and so on.
Is it known problem?
Signature · 1 line
Lukáš Hejtmánek
Re: e1000 driver problems
Quoted 6 lines · Lukas Hejtmanek
Hello,
I have laptop thinkpad T61 with 82566MM Gigabit Network Connection (rev 03) (8086:1049). I have kernel 2.6.24-rc3. E1000E driver does not work (the card is not detected although it is PCI-E), with E1000 driver, it works mostly OK unless I force speed to 100Mbits. (ethtool -s eth0 autoneg off speed 100)
this device (the ich8 onboard NIC) will not be supported in e1000e until 2.6.25.
Quoted 17 lines
I got message about device hang:
Nov 20 10:57:24 anubis kernel: [ 212.307502] e1000: eth0: e1000_watchdog: 10/100 speed: disabling TSO Nov 20 11:03:02 anubis kernel: [ 242.811474] Tx Queue <0> Nov 20 11:03:02 anubis kernel: [ 242.811476] TDH <80> Nov 20 11:03:02 anubis kernel: [ 242.811478] TDT <81> Nov 20 11:03:02 anubis kernel: [ 242.811480] next_to_use <81> Nov 20 11:03:02 anubis kernel: [ 242.811482] next_to_clean <80> Nov 20 11:03:02 anubis kernel: [ 242.811484] buffer_info[next_to_clean] Nov 20 11:03:02 anubis kernel: [ 242.811486] time_stamp <100079cdf> Nov 20 11:03:02 anubis kernel: [ 242.811488] next_to_watch <80> Nov 20 11:03:02 anubis kernel: [ 242.811489] jiffies <100079e68> Nov 20 11:03:02 anubis kernel: [ 242.811491] next_to_watch.status <0> Nov 20 11:03:04 anubis kernel: [ 243.000047] Tx Queue <0> Nov 20 11:03:04 anubis kernel: [ 243.000049] TDH <80> Nov 20 11:03:04 anubis kernel: [ 243.000051] TDT <81> Nov 20 11:03:04 anubis kernel: [ 243.000053] next_to_use <81>
Quoted 3 lines
and so on.
Is it known problem?
there have been indeed know reports of these "fake" hangs. basically the counter logic for these newer devices reports hangs too quickly for 10/100 speeds while they actually are not occurring (the line is just very busy).
The fix for this has been to grant more time for the hardware to recover from this busy state. I'll make sure to check if the upstream drivers are OK in this regard.
you can try our out-of-tree e1000 driver (7.6.x or newer) which should work OK for you with respect to this problem. Please give that a try.
Cheers,
Auke
Re: e1000 driver problems
Quoted 6 lines · Auke
The fix for this has been to grant more time for the hardware to recover from this busy state. I'll make sure to check if the upstream drivers are OK in this regard.
you can try our out-of-tree e1000 driver (7.6.x or newer) which should work OK for you with respect to this problem. Please give that a try.
unfortunately, the 7.6.9 driver cannot be compiled with 2.6.24-rc3-git2 kernel due to compilation errors.
Signature · 1 line
Lukáš Hejtmánek
Re: e1000 driver problems
Quoted 10 lines · Lukas Hejtmanek
Quoted 6 lines · Auke
The fix for this has been to grant more time for the hardware to recover from this busy state. I'll make sure to check if the upstream drivers are OK in this regard.
you can try our out-of-tree e1000 driver (7.6.x or newer) which should work OK for you with respect to this problem. Please give that a try.
unfortunately, the 7.6.9 driver cannot be compiled with 2.6.24-rc3-git2 kernel due to compilation errors.
but the in-kernel version of e1000 supports the ich8 lan device just fine and can be builtin. also this kernel has the first release of e1000e which supports the ich9 onboard lan device.
Auke
Re: e1000 driver problems
Quoted 6 lines · Auke
Quoted 2 lines
unfortunately, the 7.6.9 driver cannot be compiled with 2.6.24-rc3-git2 kernel due to compilation errors.
but the in-kernel version of e1000 supports the ich8 lan device just fine and can be builtin. also this kernel has the first release of e1000e which supports the ich9 onboard lan device.
I'm afraid, I'm missing the point as you have stated that in-kernel drivers have problem with suspicious board hang...
Signature · 1 line
Lukáš Hejtmánek
Re: e1000 driver problems
[moving this discussion to netdev, dropping lkml]
Quoted 9 lines · Lukas Hejtmanek
Quoted 5 lines · Auke
Quoted 2 lines
unfortunately, the 7.6.9 driver cannot be compiled with 2.6.24-rc3-git2 kernel due to compilation errors.
but the in-kernel version of e1000 supports the ich8 lan device just fine and can be builtin. also this kernel has the first release of e1000e which supports the ich9 onboard lan device.
I'm afraid, I'm missing the point as you have stated that in-kernel drivers have problem with suspicious board hang...
my mistake, sorry for that confusion.
the fake hangs on 82562/6 devices occur on 10mbit link only. You can check in the code for a line that says:
adapter->tx_timeout_factor = 8;
change that number to 16 to cope with the problem on 10mbit link partners. However this won't fix the issue on 100mbit partners and we need to investigate that if that is the case.
Auke
Re: e1000 driver problems
Quoted 5 lines · Auke
Quoted 2 lines
I'm afraid, I'm missing the point as you have stated that in-kernel drivers have problem with suspicious board hang...
my mistake, sorry for that confusion.
Quoted 8 lines
the fake hangs on 82562/6 devices occur on 10mbit link only. You can check in the code for a line that says:
adapter->tx_timeout_factor = 8;change that number to 16 to cope with the problem on 10mbit link partners. However this won't fix the issue on 100mbit partners and we need to investigate that if that is the case.
100mbit is the issue in my case.
Signature · 1 line
Lukáš Hejtmánek
Re: e1000 driver problems
Quoted 8 lines · Lukas Hejtmanek
Quoted 7 lines · Auke
Quoted 2 lines
I'm afraid, I'm missing the point as you have stated that in-kernel drivers have problem with suspicious board hang...
my mistake, sorry for that confusion.
the fake hangs on 82562/6 devices occur on 10mbit link only. You can check in the code for a line that says:
Quoted 8 lines
Quoted 5 lines
adapter->tx_timeout_factor = 8;change that number to 16 to cope with the problem on 10mbit link partners. However this won't fix the issue on 100mbit partners and we need to investigate that if that is the case.
100mbit is the issue in my case.
can you see if your problem goes away with this patch?
---
e1000: increase tx timeout factor for 100mbit speeds
drivers/net/e1000/e1000_main.c +1 -1
@@ -2601,7 +2601,7 @@ e1000_watchdog(unsigned long data)case SPEED_100 : txb2b =0 ; netdev->tx_queue_len =100 ; -/* maybe add some timeout factor ? */ + adapter->tx_timeout_factor =4 ;break ; }
Re: e1000 driver problems
Quoted 1 line · Auke
can you see if your problem goes away with this patch?
I cannot test it right now but friend of mine has the same card with 2.6.23.1 kernel. it does not. he also tried module 7.6.12 from source fourge, your patch did not help. Moreover, it just hangs network connections after while. No message in dmesg about hangup.
Signature · 1 line
Lukáš Hejtmánek
Re: e1000 driver problems
Quoted 7 lines · Lukas Hejtmanek
Quoted 1 line · Auke
can you see if your problem goes away with this patch?
I cannot test it right now but friend of mine has the same card with 2.6.23.1 kernel. it does not. he also tried module 7.6.12 from source fourge, your patch did not help. Moreover, it just hangs network connections after while. No message in dmesg about hangup.
can you open up a ticket on e1000.sf.net and fill in a full bugreport including output of all of these? :
- ethttool -i eth0
- ethtool -e eth0
- lspci -vv
- full dmesg (not just the driver parts)
- dmidecode
- cat /proc/interrupts
I'd like to see if maybe we can reproduce this in our lab.
Thanks,
Auke
Re: e1000 driver problems
Quoted 4 lines · Auke
can you open up a ticket on e1000.sf.net and fill in a full bugreport including
output of all of these? :
Quoted 8 lines
- ethttool -i eth0
- ethtool -e eth0
- lspci -vv
- full dmesg (not just the driver parts)
- dmidecode
- cat/proc/interruptsI'd like to see if maybe we can reproduce this in our lab.
I'll try but it may take some time. Meanwhile, I found that "hung" card transmits but does not receive anything including ARP.
Signature · 1 line
Lukáš Hejtmánek
Re: e1000 driver problems
In reply to Kok, AukeAnother problem at my own machine. If I force speed to 100Mb on 1GE network, I can reach 95Mbps bidirectional using UDP (0.34% loses) but only 1.2Mbps using TCP. A bug? If I enable autonegotiation and run at 1GE, I can got 95Mb on TCP to the target machine (the target machine has only 100Mb connection).
Signature · 1 line
Lukáš Hejtmánek
Re: e1000 driver problems
This is probably not an e1000 problem, but a general Ethernet "feature". If you defeat auto-negotiation to force the data rate, you implicitly defeat duplex negotiation as well. You need to explicitly set the duplex mode.
In full duplex mode, send and receive are are fully independent, and packets can flow concurrently in both directions.
In half duplex mode the receiver assumes it is hearing its own transmission, and ignores (or errors) frames that are partially overlapped by it's own transmission.
See for example: S. Shalunov and R. Carlson. "Detecting Duplex Mismatch on Ethernet"
http://www.springerlink.com/content/vapet12x584e6wyn/
Best regards,
--MM--
Quoted 5 lines · Lukas Hejtmanek
Another problem at my own machine. If I force speed to 100Mb on 1GE network, I can reach 95Mbps bidirectional using UDP (0.34% loses) but only 1.2Mbps using TCP. A bug? If I enable autonegotiation and run at 1GE, I can got 95Mb on TCP to the target machine (the target machine has only 100Mb connection).
Re: e1000 driver problems
Quoted 4 lines · Matt Mathis
This is probably not an e1000 problem, but a general Ethernet "feature". If you defeat auto-negotiation to force the data rate, you implicitly defeat duplex negotiation as well. You need to explicitly set the duplex mode.
ethtool reports, that I have full duplex line:
ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: Not reported Advertised auto-negotiation: No
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: umbg
Wake-on: d
Current message level: 0x00000007 (7)
Link detected: yes
Signature · 1 line
Lukáš Hejtmánek
Re: e1000 driver problems
Quoted 7 lines · Lukas Hejtmanek
Quoted 4 lines · Matt Mathis
This is probably not an e1000 problem, but a general Ethernet "feature". If you defeat auto-negotiation to force the data rate, you implicitly defeat duplex negotiation as well. You need to explicitly set the duplex mode.
ethtool reports, that I have full duplex line:
Matt was almost right - the link partner however might be working in half duplex mode. in case you force speed/duplex, you are *required* to force the exact same setting on the link partner, otherwise things like this can happen.
if you "just" want to disable gigabit speed, get the latest ethtool and run:
ethtool -s eth0 advertise 0x0f
which keeps autonegotiation enabled but tells the e1000 card to _not_ advertise gigabit speed capability to the link partner. The link partner and the e1000 can then decide with autonegotiation whether to use 10half 10duplex 100half or 100full.
Auke
Re: e1000 driver problems
Here is some boilerplate on autoneg which I've been using in other forums for a number of years when questions about autoneg vs hardcoding and duplex-mismatch arise:
How 100Base-T Autoneg is supposed to work:
When both sides of the link are set to autoneg, they will "negotiate" the duplex setting and select full-duplex if both sides can do full-duplex.
If one side is hardcoded and not using autoneg, the autoneg process will "fail" and the side trying to autoneg is required by spec to use half-duplex mode.
If one side is using half-duplex, and the other is using full-duplex, sorrow and woe is the usual result.
So, the following table shows what will happen given various settings on each side:
Auto Half Full
Auto Happiness Lucky Sorrow
Half Lucky Happiness Sorrow
Full Sorrow Sorrow Happiness
Happiness means that there is a good shot of everything going well. Lucky means that things will likely go well, but not because you did anything correctly :) Sorrow means that there _will_ be a duplex mis-match.
When there is a duplex mismatch, on the side running half-duplex you will see various errors and probably a number of _LATE_ collisions ("normal" collisions don't count here). On the side running full-duplex you will see things like FCS errors. Note that those errors are not necessarily conclusive, they are simply indicators.
Further, it is important to keep in mind that a "clean" ping (or the like - eg "linkloop" or default netperf TCP_RR) test result is inconclusive here - a duplex mismatch causes lost traffic _only_ when both sides of the link try to speak at the same time. A typical ping test, being synchronous, one at a time request/response, never tries to have both sides talking at the same time.
Finally, when/if you migrate to 1000Base-T, everything has to be set to auto-neg anyway.
rick jones
Re: e1000 driver problems
In reply to Kok, AukeQuoted 4 lines · Auke
if you "just" want to disable gigabit speed, get the latest ethtool and run:
ethtool -s eth0 advertise 0x0f
thanks. You may then let know people behind http://www.lesswatts.org/ to change tips&tricks related to the network. I turned off autonegotiation according to that web.
Signature · 1 line
Lukáš Hejtmánek
Re: e1000 driver problems
Quoted 9 lines · Lukas Hejtmanek
Quoted 4 lines · Auke
if you "just" want to disable gigabit speed, get the latest ethtool and run:
ethtool -s eth0 advertise 0x0fthanks. You may then let know people behind http://www.lesswatts.org/ to change tips&tricks related to the network. I turned off autonegotiation according to that web.
I have sent this out to them recently. This feature however is not available in all drivers, they explicitly need to be able to handle the advertise mask flag, and it requires a newer ethtool.
Cheers,
Auke
Re: e1000 driver problems
In reply to Kok, AukeHello,
the problem seems to be gone in 2.6.24-rc kernels.
Signature · 1 line
Lukáš Hejtmánek