e1000: "fix" it on thinkpad x60
Subsystems (2)
e1000 in thinkpad x60 fails without this dirty hack. What to do with it?
---
commit 6414eba4f65ded35f3a8f2d61261d1134e292506 tree e6560bba2cc0d18b76075e6b5db415d6c0c31db3 parent fa6f216422f9020c06dd1137aec8c72224cbe440 author <[email protected]> Fri, 21 Jul 2006 02:16:52 +0200 committer <[email protected]> Fri, 21 Jul 2006 02:16:52 +0200
drivers/net/e1000/e1000_main.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/e1000/e1000_main.c +2 -0
@@ -842,8 +842,10 @@ e1000_probe(struct pci_dev *pdev,if (e1000_validate_eeprom_checksum (&adapter->hw) <0 ) {DPRINTK (PROBE ,ERR ,"The EEPROM Checksum Is Not Valid\n" ); +/* err = -EIO; goto err_eeprom; +*/ }/* copy the MAC address out of the EEPROM */
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Auke Kok
NAKRe: e1000: "fix" it on thinkpad x60 / eeprom checksum read fails
Quoted 4 lines · Pavel Machek
e1000 in thinkpad x60 fails without this dirty hack. What to do with it?
Signed-off-by Pavel Machek <[email protected]>
NAK, certainly this should never be merged in any tree...
this is a known issue that we're tracking here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1474679&group_id=42302&atid=447449
Summary of the issue:
Lenovo has used certain BIOS versions where ASPD/DSPD was turned on which turns the PHY off when no cable is inserted to save power. The e1000 driver already turns off this feature but can't do this until the driver is loaded. It seems that turning this feature on causes the MAC to give read errors.
Lenovo seems to have the feature turned off in their latest BIOS versions, we encourage all people to upgrade their BIOS with the latest version from Lenovo (available from their website). It seems that for at least 2 people, this has fixed the problem.
Inserting a cable obviously might also work :)
We did reproduce the problem initially with the old BIOS (1.01-1.03) on a T60 system, but unfortunately the bug disappeared into nothingness.
Bypassing the checksum leaves the NIC in an uncertain state and is not recommended.
Auke
Re: e1000: "fix" it on thinkpad x60 / eeprom checksum read fails
Hi!
Quoted 19 lines
Quoted 4 lines
e1000 in thinkpad x60 fails without this dirty hack. What to do with it?
Signed-off-by Pavel Machek <[email protected]>NAK, certainly this should never be merged in any tree...
this is a known issue that we're tracking here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1474679&group_id=42302&atid=447449
Summary of the issue:
Lenovo has used certain BIOS versions where ASPD/DSPD was turned on which turns the PHY off when no cable is inserted to save power. The e1000 driver already turns off this feature but can't do this until the driver is loaded. It seems that turning this feature on causes the MAC to give read errors.
Quoted 6 lines
Lenovo seems to have the feature turned off in their latest BIOS versions, we encourage all people to upgrade their BIOS with the latest version from Lenovo (available from their website). It seems that for at least 2 people, this has fixed the problem.
Inserting a cable obviously might also work :)
Hehe.
Quoted 5 lines
We did reproduce the problem initially with the old BIOS (1.01-1.03) on a T60 system, but unfortunately the bug disappeared into nothingness.
Bypassing the checksum leaves the NIC in an uncertain state and is not recommended.
Okay, perhaps this should be inserted as a comment into the driver, and printk should be fixed to point at this explanation?
Can't we enable the driver with the bad checksum, then read the _real_ data?
Pavel
Signature · 1 line
Thanks, Sharp!
Re: e1000: "fix" it on thinkpad x60 / eeprom checksum read fails
Quoted 24 lines · Pavel Machek
Hi!
Quoted 10 lines
Quoted 4 lines
e1000 in thinkpad x60 fails without this dirty hack. What to do with it?
Signed-off-by Pavel Machek <[email protected]>NAK, certainly this should never be merged in any tree...
this is a known issue that we're tracking here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1474679&group_id=42302&atid=447449
Quoted 7 lines
Summary of the issue:
Lenovo has used certain BIOS versions where ASPD/DSPD was turned on which turns the PHY off when no cable is inserted to save power. The e1000 driver already turns off this feature but can't do this until the driver is loaded. It seems that turning this feature on causes the MAC to give read errors.
Lenovo seems to have the feature turned off in their latest BIOS versions, we encourage all people to upgrade their BIOS with the latest version from Lenovo (available from their website). It seems that for at least 2 people, this has fixed the problem.
Inserting a cable obviously might also work :)
Hehe.
Quoted 2 lines
We did reproduce the problem initially with the old BIOS (1.01-1.03) on a T60 system, but unfortunately the bug disappeared into nothingness.
Quoted 7 lines
Quoted 1 line
Bypassing the checksum leaves the NIC in an uncertain state and is not recommended.
Okay, perhaps this should be inserted as a comment into the driver, and printk should be fixed to point at this explanation?
Can't we enable the driver with the bad checksum, then read the _real_ data?
no.
We're working on a solution where we make sure that the PHY is physically turned on properly before we read the EEPROM, which would be the proper fix. It's completely not acceptable to run when the EEPROM checksum fails - you might even be running with the wrong MAC address, or worse. Lets fix this the right way instead.
Auke
PS: adding netdev to the CC...
Re: e1000: "fix" it on thinkpad x60 / eeprom checksum read fails
Quoted 6 lines · On Thu, 20 Jul 2006 10:34:23 -0700 Auke Kok <[email protected]> wrote:
Quoted 5 lines
Okay, perhaps this should be inserted as a comment into the driver, and printk should be fixed to point at this explanation?
Can't we enable the driver with the bad checksum, then read the _real_ data?
Quoted 7 lines
no.
We're working on a solution where we make sure that the PHY is physically turned on properly before we read the EEPROM, which would be the proper fix. It's completely not acceptable to run when the EEPROM checksum fails - you might even be running with the wrong MAC address, or worse. Lets fix this the right way instead.
A printk which helps the user to understand all this saga would be very nice.
Re: e1000: "fix" it on thinkpad x60 / eeprom checksum read fails
Quoted 6 lines · Andrew Morton
Quoted 3 lines
It's completely not acceptable to run when the EEPROM checksum fails - you might even be running with the wrong MAC address, or worse. Lets fix this the right way instead.
A printk which helps the user to understand all this saga would be very nice. -
And if someone who understands all of these details could put a note in the thinkwiki (say, here:
http://www.thinkwiki.org/wiki/Ethernet_Controllers#Intel_Gigabit_.2810.2F100.2F1000.29)
it would be greatly appreciated.
- Ted
Re: e1000: "fix" it on thinkpad x60 / eeprom checksum read fails
Quoted 10 lines · Theodore Tso
Quoted 3 lines · Andrew Morton
Quoted 1 line
It's completely not acceptable to run when the EEPROM checksum fails - you might even be running with the wrong MAC address, or worse. Lets fix this the right way instead.
A printk which helps the user to understand all this saga would be very nice. -
And if someone who understands all of these details could put a note in the thinkwiki (say, here:
http://www.thinkwiki.org/wiki/Ethernet_Controllers#Intel_Gigabit_.2810.2F100.2F1000.29)
it would be greatly appreciated.
why don't I do that :)
Andrew: I'm contemplating that printk...
Cheers,
Auke
Re: e1000: "fix" it on thinkpad x60 / eeprom checksum read fails
Quoted 10 lines · On Fri, 21 Jul 2006 08:22:38 -0700 Auke Kok <[email protected]> wrote:
Quoted 5 lines
And if someone who understands all of these details could put a note in the thinkwiki (say, here:
http://www.thinkwiki.org/wiki/Ethernet_Controllers#Intel_Gigabit_.2810.2F100.2F1000.29)
it would be greatly appreciated.why don't I do that :)
Andrew: I'm contemplating that printk...
Print the wiki URL ;)