forcedeth: MAC-address reversed on resume from suspend

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Richard Jonsson
Date: Wednesday, January 2, 2008 - 2:04 pm

Bugreport regarding forcedeth driver.

When returning from suspend-to-RAM the MAC-address byteorder is 
reversed. After another suspend-resume cycle the MAC-address is again 
correct. This brings a great deal of pain since the NIC is assigned a 
random MAC-address when it is detected as invalid.

I cannot say if this issue appeared recently or if it's been in the 
kernel for a while, as I've been using wireless until recently.

I read somewhere on lkml that the mac is read from the device, then 
reversed and finally written back to the device. Can it be that it is 
read again on resume and reversed, and then again written to the device? 
This would explain why it's ok every other resume cycle.

MAC is always correct when cold booting.

Random computer info:
HP dv2140eu, amd64 smp, nvidia mcp51, kernel 2.6.24-rc3, ubuntu feisty

dmesg when fail:
forcedeth 0000:00:14.0: Invalid Mac address detected: e1:97:11:d3:16:00
forcedeth 0000:00:14.0: ifname eth0, PHY OUI 0x5043 @ 1, addr 
00:00:6c:1e:34:69

dmesg when good:
forcedeth 0000:00:14.0: ifname eth0, PHY OUI 0x5043 @ 1, addr 
00:16:d3:11:97:e1
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
forcedeth: MAC-address reversed on resume from suspend, Richard Jonsson, (Wed Jan 2, 2:04 pm)
Re: forcedeth: MAC-address reversed on resume from suspend, Richard Jonsson, (Thu Jan 3, 6:35 pm)
Re: forcedeth: MAC-address reversed on resume from suspend, Richard Jonsson, (Fri Jan 4, 7:08 am)
Re: forcedeth: MAC-address reversed on resume from suspend, Adolfo R. Brandes, (Sun Jan 6, 2:49 pm)
Re: forcedeth: MAC-address reversed on resume from suspend, Adolfo R. Brandes, (Mon Jan 7, 5:02 am)
Re: forcedeth: MAC-address reversed on resume from suspend, Richard Jonsson, (Mon Jan 7, 8:51 am)
Re: forcedeth: MAC-address reversed on resume from suspend, Adolfo R. Brandes, (Sat Feb 16, 2:41 am)