From: Martin Filip on
Hi to LKML,

I'm experiencing some troubles with WOL with my nForce NIC.
The problem is simple - after setting WOL mode to magic packet my PC
won't wake up. I've noticed there were some changes about this in new
kernel, but no luck for me.

I'm using 2.6.18 kernel, vanilla. I've tried this with Windows Vista RC1
(build 5600) and WOL works correctly. My NIC is integrated on MSI K8N
Neo4-FI

Is there any way how can I help with developement of this feature?

# lspci -v
00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller
(rev a3)
Subsystem: Micro-Star International Co., Ltd. Unknown device
7125
Flags: bus master, 66MHz, fast devsel, latency 0
Capabilities: [44] HyperTransport: Slave or Primary Interface
Capabilities: [e0] HyperTransport: MSI Mapping

00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)
Subsystem: Micro-Star International Co., Ltd. Unknown device
7125
Flags: bus master, 66MHz, fast devsel, latency 0

00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
Subsystem: Micro-Star International Co., Ltd. Unknown device
7125
Flags: 66MHz, fast devsel, IRQ 11
I/O ports at fc00 [size=32]
I/O ports at 4c00 [size=64]
I/O ports at 4c40 [size=64]
Capabilities: [44] Power Management version 2

00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
(prog-if 10 [OHCI])
Subsystem: Micro-Star International Co., Ltd. Unknown device
7125
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 50
Memory at fe02f000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [44] Power Management version 2

00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)
(prog-if 20 [EHCI])
Subsystem: Micro-Star International Co., Ltd. Unknown device
7125
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 233
Memory at feb00000 (32-bit, non-prefetchable) [size=256]
Capabilities: [44] Debug port
Capabilities: [80] Power Management version 2

00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2) (prog-if 8a
[Master SecP PriP])
Subsystem: Micro-Star International Co., Ltd. Unknown device
7125
Flags: bus master, 66MHz, fast devsel, latency 0
I/O ports at e000 [size=16]
Capabilities: [44] Power Management version 2

00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller
(rev f3) (prog-if 85 [Master SecO PriO])
Subsystem: Micro-Star International Co., Ltd. Unknown device
7125
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 217
I/O ports at 09f0 [size=8]
I/O ports at 0bf0 [size=4]
I/O ports at 0970 [size=8]
I/O ports at 0b70 [size=4]
I/O ports at cc00 [size=16]
Memory at fe02b000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [44] Power Management version 2

00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller
(rev f3) (prog-if 85 [Master SecO PriO])
Subsystem: Micro-Star International Co., Ltd. Unknown device
7125
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 225
I/O ports at 09e0 [size=8]
I/O ports at 0be0 [size=4]
I/O ports at 0960 [size=8]
I/O ports at 0b60 [size=4]
I/O ports at b800 [size=16]
Memory at fe02a000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [44] Power Management version 2

00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
(prog-if 01 [Subtractive decode])
Flags: bus master, 66MHz, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
I/O behind bridge: 0000a000-0000afff
Memory behind bridge: fde00000-fdefffff
Prefetchable memory behind bridge: fdf00000-fdffffff

00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)
Subsystem: Micro-Star International Co., Ltd. Unknown device
7125
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 217
Memory at fe029000 (32-bit, non-prefetchable) [size=4K]
I/O ports at b400 [size=8]
Capabilities: [44] Power Management version 2

00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
(prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=
0
I/O behind bridge: 00009000-00009fff
Memory behind bridge: fdd00000-fddfffff
Prefetchable memory behind bridge:
00000000fdc00000-00000000fdc00000
Capabilities: [40] Power Management version 2
Capabilities: [48] Message Signalled Interrupts: 64bit+
Queue=0/1 Enable+
Capabilities: [58] HyperTransport: MSI Mapping
Capabilities: [80] Express Root Port (Slot+) IRQ 0
Capabilities: [100] Virtual Channel

00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
(prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=03, subordinate=03, sec-latency=
0
I/O behind bridge: 00008000-00008fff
Memory behind bridge: fdb00000-fdbfffff
Prefetchable memory behind bridge:
00000000fda00000-00000000fda00000
Capabilities: [40] Power Management version 2
Capabilities: [48] Message Signalled Interrupts: 64bit+
Queue=0/1 Enable+
Capabilities: [58] HyperTransport: MSI Mapping
Capabilities: [80] Express Root Port (Slot+) IRQ 0
Capabilities: [100] Virtual Channel

00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
(prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=04, subordinate=04, sec-latency=
0
I/O behind bridge: 00007000-00007fff
Memory behind bridge: fd900000-fd9fffff
Prefetchable memory behind bridge:
00000000fd800000-00000000fd800000
Capabilities: [40] Power Management version 2
Capabilities: [48] Message Signalled Interrupts: 64bit+
Queue=0/1 Enable+
Capabilities: [58] HyperTransport: MSI Mapping
Capabilities: [80] Express Root Port (Slot+) IRQ 0
Capabilities: [100] Virtual Channel

00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
(prog-if
From: Alistair John Strachan on
On Wednesday 27 September 2006 18:50, Martin Filip wrote:
> Hi to LKML,
>
> I'm experiencing some troubles with WOL with my nForce NIC.
> The problem is simple - after setting WOL mode to magic packet my PC
> won't wake up. I've noticed there were some changes about this in new
> kernel, but no luck for me.
>
> I'm using 2.6.18 kernel, vanilla. I've tried this with Windows Vista RC1
> (build 5600) and WOL works correctly. My NIC is integrated on MSI K8N
> Neo4-FI

On my nForce4 CK804 it's disabled by default, I bet this is your problem:

[root] 19:33 [~] ethtool lan
Settings for lan:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: yes

Read the manpage for ethtool. HTH.

--
Cheers,
Alistair.

Final year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Björn Steinbrink on
On 2006.09.27 19:50:41 +0200, Martin Filip wrote:
> Hi to LKML,
>
> I'm experiencing some troubles with WOL with my nForce NIC.
> The problem is simple - after setting WOL mode to magic packet my PC
> won't wake up. I've noticed there were some changes about this in new
> kernel, but no luck for me.
>
> I'm using 2.6.18 kernel, vanilla. I've tried this with Windows Vista RC1
> (build 5600) and WOL works correctly. My NIC is integrated on MSI K8N
> Neo4-FI
>
> Is there any way how can I help with developement of this feature?

Did you check that WOL was enabled? I need to re-activate it after each
boot (I guess that's normal, not sure though).
The output of "ethtool eth0" should show:

Supports Wake-on: g
Wake-on: g

Also, I remember a bugzilla entry in which it was said that the MAC was
somehow reversed by the driver. I that is still the case (I can't find
the bugzilla entry right now), you might just reverse the MAC address in
your WOL packet to workaround the bug.

HTH
Bj?rn
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Martin Filip on
Hi,

no.. I don't think it's my problem

# ethtool eth0
Settings for eth0:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: g
Link detected: yes


Alistair John Strachan pí¹e v St 27. 09. 2006 v 19:35 +0100:
> On Wednesday 27 September 2006 18:50, Martin Filip wrote:
> > Hi to LKML,
> >
> > I'm experiencing some troubles with WOL with my nForce NIC.
> > The problem is simple - after setting WOL mode to magic packet my PC
> > won't wake up. I've noticed there were some changes about this in new
> > kernel, but no luck for me.
> >
> > I'm using 2.6.18 kernel, vanilla. I've tried this with Windows Vista RC1
> > (build 5600) and WOL works correctly. My NIC is integrated on MSI K8N
> > Neo4-FI
>
> On my nForce4 CK804 it's disabled by default, I bet this is your problem:
>
> [root] 19:33 [~] ethtool lan
> Settings for lan:
> Supported ports: [ MII ]
> Supported link modes: 10baseT/Half 10baseT/Full
> 100baseT/Half 100baseT/Full
> 1000baseT/Full
> Supports auto-negotiation: Yes
> Advertised link modes: 10baseT/Half 10baseT/Full
> 100baseT/Half 100baseT/Full
> 1000baseT/Full
> Advertised auto-negotiation: Yes
> Speed: 100Mb/s
> Duplex: Full
> Port: MII
> PHYAD: 1
> Transceiver: external
> Auto-negotiation: on
> Supports Wake-on: g
> Wake-on: d
> Link detected: yes
>
> Read the manpage for ethtool. HTH.
>
--
Martin Filip
e-mail: nexus(a)smoula.net
ICQ#: 31531391
jabber: nexus(a)smoula.net
www: http://www.smoula.net

_______________________________________
/ BOFH Excuse #410: Electrical conduits \
\ in machine room are melting. /
---------------------------------------
\ ,__,
\ (oo)____
(__) )\
||--|| *
From: Francois Romieu on
Martin Filip <bugtraq(a)smoula.net> :
[...]
> no.. I don't think it's my problem

Is is similar to http://bugzilla.kernel.org/show_bug.cgi?id=6398 ?

--
Ueimor
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/