linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Richard Jonsson <richie@coderworld.net>
To: linux-kernel@vger.kernel.org
Subject: forcedeth: MAC-address reversed on resume from suspend
Date: Wed, 02 Jan 2008 22:04:49 +0100	[thread overview]
Message-ID: <477BFC71.7090002@coderworld.net> (raw)

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

             reply	other threads:[~2008-01-02 21:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-02 21:04 Richard Jonsson [this message]
2008-01-02 21:48 ` forcedeth: MAC-address reversed on resume from suspend Andreas Mohr
2008-01-02 23:42   ` Adrian Bunk
2008-01-04  3:43     ` Björn Steinbrink
2008-01-04  8:45       ` Andreas Mohr
2008-01-04 10:17         ` Björn Steinbrink
2008-01-04 22:43           ` Andreas Mohr
2008-01-05  6:10             ` Björn Steinbrink
2008-01-05  6:39               ` Björn Steinbrink
2008-01-04 14:08       ` Richard Jonsson
2008-01-04 22:26         ` [PATCH] Fix forcedeth reversing the MAC address on suspend Björn Steinbrink
2008-01-07  1:47           ` Björn Steinbrink
2008-01-06 21:49       ` forcedeth: MAC-address reversed on resume from suspend Adolfo R. Brandes
2008-01-07  1:46         ` Björn Steinbrink
2008-01-07 12:02           ` Adolfo R. Brandes
2008-01-07 15:51           ` Richard Jonsson
2008-01-08  7:23           ` David Miller
2008-02-16  9:41             ` Adolfo R. Brandes
2008-01-04  1:35   ` Richard Jonsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=477BFC71.7090002@coderworld.net \
    --to=richie@coderworld.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).