[vortex] WOL on newer kernels

Donald Becker becker@scyld.com
Tue Feb 3 13:12:08 2004


On Tue, 3 Feb 2004, Nenad Antonic wrote:

> In an earlier post 
> (http://www.scyld.com/pipermail/vortex/2003-October/002558.html)
> my collaborator described some of our attempts to get WOL working.
> Following the suggestions, we are using modular NIC driver 3c59x now, and
> ether-wake, pci-config, ... obtained from the scyld site.
> 
> If I am not mistaken, for WOL to work it is necessary to have:
> 1. supporting hardware/BIOS
> 2. another host sending magic packets (say, by ether-wake on another host)

Correct, both are required.

> 3. appropriate driver (enable_wol option)
> 4. pci-config setting the card to D3 state before shutdown

No, neither is necessarily true.

My driver does not implement the "enable_WOL" module parameter -- it
always puts the NICs (chips with 'CapPwrMgmt') into WOL mode when the
**module is removed**.

The 'pci-config' method was originally for supporting built-in drivers
without the new code, and for verifying functionality.  It's not needed
for newer driver versions with the WOL code.

> We managed to test WOL on two of these systems, both using the onboard
> NIC and a PCI one, for MS WinXP Pro standby and hibernate (with 3com 
> drivers).
> This should confirm 1 and 2 above as working properly.
> 
> Using pci-config, we are succesfull in changing D0 to D3 on #6 device.
..
>                 Status: D3 PME-Enable+ DSel=0 DScale=2 PME-

This looks as if the NIC may be in WOL mode.
Removing the 3c59x driver module should result in the same state.

> If it is, then it appears that the drivers, either the ones in (debian)
> kernels 2.4.20-23, or even the one on scyld site, do not support enable_wol.
...
> pci-scan.c:v1.11 8/31/2002  Donald Becker <becker@scyld.com>  

The 'pci-scan' code includes the power management event functions that
are cross-kernel-version compatible.

Bottom line: Try removing the 3c59x module before shutdown.

-- 
Donald Becker				becker@scyld.com
Scyld Computing Corporation		http://www.scyld.com
914 Bay Ridge Road, Suite 220		Scyld Beowulf cluster systems
Annapolis MD 21403			410-990-9993