From: David Härdeman <hidden> Date: 2005-01-30 17:19:04
Hi,
I experience the same problems as reported by Michael Gernoth when
sending a WOL-packet to computer with a e100 NIC which is already
powered on.
In my case, it's running kernel 2.6.8.1 and the NIC is identified by
lspci as:
0000:02:08.0 Ethernet controller: Intel Corp. 82562EZ 10/100 Ethernet
Controller (rev 02)
or numerically:
0000:02:08.0 0200: 8086:1050 (rev 02)
The symptoms is that kacpid starts using all the CPU time it can, a
shutdown takes 5 - 10 minutes after I've done this (in contrast to 20 -
30 seconds when the machine is healthy).
Also, if I do a "shutdown -h" on the machine after sending a WOL packet
when it's already powered up, it will shutdown and immediately start up
again instead of powering off.
So, any suggestions on how to fix it?
Regards,
David
Please CC me on any replies.
From: Scott Feldman <hidden> Date: 2005-01-31 03:46:13
On Sun, 2005-01-30 at 09:18, David Härdeman wrote:
I experience the same problems as reported by Michael Gernoth when
sending a WOL-packet to computer with a e100 NIC which is already
powered on.
I didn't look at the 2.4 case, but for 2.6, it seems e100 was enabling
PME wakeup during probe. PME shouldn't be enabled while the system is
up. I suspect the assertion of PME while the system is up is what's
causing problems. This patch moves PME wakeup enabling to either
suspend or shutdown.
David, would you give this patch a try? Make sure the system still
wakes from a magic packet if suspended or shut down, and doesn't cause
kacpid to go crazy if system is running. If it helps for 2.6, perhaps
someone can look into 2.4 to see if there is something similar going on
there.
-scott
Hi.
Do you also disable the WOL event when resuming?
Regards,
Nigel
On Mon, 2005-01-31 at 14:47, Scott Feldman wrote:
quoted hunk
On Sun, 2005-01-30 at 09:18, David Härdeman wrote:
quoted
I experience the same problems as reported by Michael Gernoth when
sending a WOL-packet to computer with a e100 NIC which is already
powered on.
I didn't look at the 2.4 case, but for 2.6, it seems e100 was enabling
PME wakeup during probe. PME shouldn't be enabled while the system is
up. I suspect the assertion of PME while the system is up is what's
causing problems. This patch moves PME wakeup enabling to either
suspend or shutdown.
David, would you give this patch a try? Make sure the system still
wakes from a magic packet if suspended or shut down, and doesn't cause
kacpid to go crazy if system is running. If it helps for 2.6, perhaps
someone can look into 2.4 to see if there is something similar going on
there.
-scott
Hi.
On Mon, 2005-01-31 at 16:00, Scott Feldman wrote:
On Sun, 2005-01-30 at 19:58, Nigel Cunningham wrote:
quoted
Do you also disable the WOL event when resuming?
Good catch. How's this look?
I looked at it last week because I used it for an example of device
model drivers at the CELF conference. I got your intel address from the
top of the .c file, but IIRC it bounced. Providence :>
[...]
Hi again.
Ignore that :> I realised later that there's only one badly named
routine and my assumption that there was another called disable_.. was
wrong :>
Nigel
On Mon, 2005-01-31 at 17:14, Nigel Cunningham wrote:
Hi.
On Mon, 2005-01-31 at 16:00, Scott Feldman wrote:
quoted
On Sun, 2005-01-30 at 19:58, Nigel Cunningham wrote:
quoted
Do you also disable the WOL event when resuming?
Good catch. How's this look?
I looked at it last week because I used it for an example of device
model drivers at the CELF conference. I got your intel address from the
top of the .c file, but IIRC it bounced. Providence :>
[...]
On Sun, 2005-01-30 at 09:18, David Härdeman wrote:
quoted
I experience the same problems as reported by Michael Gernoth when
sending a WOL-packet to computer with a e100 NIC which is already
powered on.
I didn't look at the 2.4 case, but for 2.6, it seems e100 was enabling
PME wakeup during probe. PME shouldn't be enabled while the system is
up. I suspect the assertion of PME while the system is up is what's
causing problems. This patch moves PME wakeup enabling to either
suspend or shutdown.
David, would you give this patch a try? Make sure the system still
wakes from a magic packet if suspended or shut down, and doesn't cause
kacpid to go crazy if system is running. If it helps for 2.6, perhaps
someone can look into 2.4 to see if there is something similar going on
On Sun, Jan 30, 2005 at 08:23:47PM -0800, Bukie Mabayoje wrote:
Scott Feldman wrote:
quoted
On Sun, 2005-01-30 at 09:18, David Härdeman wrote:
quoted
I experience the same problems as reported by Michael Gernoth when
sending a WOL-packet to computer with a e100 NIC which is already
powered on.
I didn't look at the 2.4 case, but for 2.6, it seems e100 was enabling
PME wakeup during probe. PME shouldn't be enabled while the system is
up. I suspect the assertion of PME while the system is up is what's
causing problems. This patch moves PME wakeup enabling to either
suspend or shutdown.
David, would you give this patch a try? Make sure the system still
wakes from a magic packet if suspended or shut down, and doesn't cause
kacpid to go crazy if system is running. If it helps for 2.6, perhaps
someone can look into 2.4 to see if there is something similar going on
From: David Härdeman <hidden> Date: 2005-01-31 20:30:53
On Mon, Jan 31, 2005 at 01:24:31PM -0200, Marcelo Tosatti wrote:
On Sun, Jan 30, 2005 at 08:23:47PM -0800, Bukie Mabayoje wrote:
quoted
Scott Feldman wrote:
quoted
David, would you give this patch a try? Make sure the system still
wakes from a magic packet if suspended or shut down, and doesn't cause
kacpid to go crazy if system is running. If it helps for 2.6, perhaps
someone can look into 2.4 to see if there is something similar going on
This issue was reported on 2.4.
Can any of you guys test v2.6, please?
I tried the second patch provided by Scott on a 2.6.10 kernel, I did
some minor tweaks to get it to apply (changed pci_choose_state() and
PCI_D0 back to the way they were in 2.6.10) and tested the results five
minutes ago.
It works great, I havent tried suspending the machine cause I have no
need for that functionality. I have however started the machine via WOL
(works), sent WOL-packet to the machine when powered on (nothing
happends - kacpid doesn't go wild, works), shutdown (works without the
machine spontaneously rebooting).
So everything seems to be fixed by the patch (save for suspending which
I didn't test).
Thanks alot, I hope the patch will be in the next stable 2.6 kernel.
Regards,
David
On Sun, Jan 30, 2005 at 08:23:47PM -0800, Bukie Mabayoje wrote:
quoted
Scott Feldman wrote:
quoted
On Sun, 2005-01-30 at 09:18, David Härdeman wrote:
quoted
I experience the same problems as reported by Michael Gernoth when
sending a WOL-packet to computer with a e100 NIC which is already
powered on.
I didn't look at the 2.4 case, but for 2.6, it seems e100 was enabling
PME wakeup during probe. PME shouldn't be enabled while the system is
up. I suspect the assertion of PME while the system is up is what's
causing problems. This patch moves PME wakeup enabling to either
suspend or shutdown.
David, would you give this patch a try? Make sure the system still
wakes from a magic packet if suspended or shut down, and doesn't cause
kacpid to go crazy if system is running. If it helps for 2.6, perhaps
someone can look into 2.4 to see if there is something similar going on
This issue was reported on 2.4.
Can any of you guys test v2.6, please?
I will be glad to test it now but I can't, I am currently doing some work on 2.4. If no one has tested it in the next few days I will validate it then.
By the way, do anyone have an idea how to get this functionality into 2.4 eepro100. The problem is that eepro100 code works on a non WOL cards.