netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Wake On Lan device semantics
@ 2006-11-03 23:20 Stephen Hemminger
  2006-11-03 23:44 ` Auke Kok
  2006-11-03 23:51 ` Jeff Garzik
  0 siblings, 2 replies; 14+ messages in thread
From: Stephen Hemminger @ 2006-11-03 23:20 UTC (permalink / raw)
  To: Jeff Garzik, David S. Miller; +Cc: netdev

I am working on getting WOL to work on sky2 (and then skge). But in the process I
noticed that the semantics of WOL seems to be device dependent. I assume that WOL
should work when device is suspended. But some drivers also support WOL when
the device is down (or even removed).

Now I know some distro's like Ubuntu take down and then remove every network
device on suspend. That's their problem, if they don't want to use suspend
as intended because they want to handle broken hardware, that's their problem.

It doesn't seem like a good idea for a network device to wake the system
if it is down. Maybe if the kernel fully supported dormant, maybe, but
when device is down it shouldn't impact the system.


-- 
Stephen Hemminger <shemminger@osdl.org>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Wake On Lan device semantics
  2006-11-03 23:20 Wake On Lan device semantics Stephen Hemminger
@ 2006-11-03 23:44 ` Auke Kok
  2006-11-03 23:48   ` Stephen Hemminger
  2006-11-03 23:50   ` Stephen Hemminger
  2006-11-03 23:51 ` Jeff Garzik
  1 sibling, 2 replies; 14+ messages in thread
From: Auke Kok @ 2006-11-03 23:44 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: Jeff Garzik, David S. Miller, netdev

Stephen Hemminger wrote:
> It doesn't seem like a good idea for a network device to wake the system
> if it is down.

before suspend existed this was the only useful case for WoL. Why does it not seem a 
good idea to wake up a machine that was shutdown (and thus the interface `downed`) ?

Auke

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Wake On Lan device semantics
  2006-11-03 23:44 ` Auke Kok
@ 2006-11-03 23:48   ` Stephen Hemminger
  2006-11-04  1:35     ` Auke Kok
  2006-11-03 23:50   ` Stephen Hemminger
  1 sibling, 1 reply; 14+ messages in thread
From: Stephen Hemminger @ 2006-11-03 23:48 UTC (permalink / raw)
  To: Auke Kok; +Cc: Jeff Garzik, David S. Miller, netdev

On Fri, 03 Nov 2006 15:44:13 -0800
Auke Kok <auke-jan.h.kok@intel.com> wrote:

> Stephen Hemminger wrote:
> > It doesn't seem like a good idea for a network device to wake the system
> > if it is down.
> 
> before suspend existed this was the only useful case for WoL. Why does it not seem a 
> good idea to wake up a machine that was shutdown (and thus the interface `downed`) ?
> 
> Auke

It seems odd because that means you can never make a device fully deaf.

-- 
Stephen Hemminger <shemminger@osdl.org>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Wake On Lan device semantics
  2006-11-03 23:44 ` Auke Kok
  2006-11-03 23:48   ` Stephen Hemminger
@ 2006-11-03 23:50   ` Stephen Hemminger
  2006-11-04  1:36     ` Auke Kok
  1 sibling, 1 reply; 14+ messages in thread
From: Stephen Hemminger @ 2006-11-03 23:50 UTC (permalink / raw)
  To: Auke Kok; +Cc: Jeff Garzik, David S. Miller, netdev

On Fri, 03 Nov 2006 15:44:13 -0800
Auke Kok <auke-jan.h.kok@intel.com> wrote:

> Stephen Hemminger wrote:
> > It doesn't seem like a good idea for a network device to wake the system
> > if it is down.
> 
> before suspend existed this was the only useful case for WoL. Why does it not seem a 
> good idea to wake up a machine that was shutdown (and thus the interface `downed`) ?
> 
> Auke

Interestingly it looks like e100 is one of the ones that only wakes from suspend (not when down).


-- 
Stephen Hemminger <shemminger@osdl.org>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Wake On Lan device semantics
  2006-11-03 23:20 Wake On Lan device semantics Stephen Hemminger
  2006-11-03 23:44 ` Auke Kok
@ 2006-11-03 23:51 ` Jeff Garzik
  2006-11-04  0:02   ` David Miller
  1 sibling, 1 reply; 14+ messages in thread
From: Jeff Garzik @ 2006-11-03 23:51 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: David S. Miller, netdev

Stephen Hemminger wrote:
> I am working on getting WOL to work on sky2 (and then skge). But in the process I
> noticed that the semantics of WOL seems to be device dependent. I assume that WOL
> should work when device is suspended. But some drivers also support WOL when
> the device is down (or even removed).

[...]
> It doesn't seem like a good idea for a network device to wake the system
> if it is down. Maybe if the kernel fully supported dormant, maybe, but
> when device is down it shouldn't impact the system.


You seem to be muddling "device", "driver", and "system" together.

The purpose of WOL is being able to turn on a system remotely, if it is 
in a power-off or sleep state.

So, if the system is -on- and the interface is down and/or driver is 
unloaded, are you saying WOL is a problem somehow?

	Jeff





^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Wake On Lan device semantics
  2006-11-03 23:51 ` Jeff Garzik
@ 2006-11-04  0:02   ` David Miller
  2006-11-04  0:11     ` Stephen Hemminger
  2006-11-04  0:42     ` Jeff Garzik
  0 siblings, 2 replies; 14+ messages in thread
From: David Miller @ 2006-11-04  0:02 UTC (permalink / raw)
  To: jgarzik; +Cc: shemminger, netdev

From: Jeff Garzik <jgarzik@pobox.com>
Date: Fri, 03 Nov 2006 18:51:25 -0500

> The purpose of WOL is being able to turn on a system remotely, if it is 
> in a power-off or sleep state.
> 
> So, if the system is -on- and the interface is down and/or driver is 
> unloaded, are you saying WOL is a problem somehow?

Stephen is saying that if you down an interface, it should disable
that WoL functionality.

I guess you can argue that, like IP addresses, this WoL thing is an
attribute of the "system".

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Wake On Lan device semantics
  2006-11-04  0:02   ` David Miller
@ 2006-11-04  0:11     ` Stephen Hemminger
  2006-11-04  1:53       ` Auke Kok
  2006-11-04  0:42     ` Jeff Garzik
  1 sibling, 1 reply; 14+ messages in thread
From: Stephen Hemminger @ 2006-11-04  0:11 UTC (permalink / raw)
  To: David Miller; +Cc: jgarzik, netdev

On Fri, 03 Nov 2006 16:02:30 -0800 (PST)
David Miller <davem@davemloft.net> wrote:

> From: Jeff Garzik <jgarzik@pobox.com>
> Date: Fri, 03 Nov 2006 18:51:25 -0500
> 
> > The purpose of WOL is being able to turn on a system remotely, if it is 
> > in a power-off or sleep state.
> > 
> > So, if the system is -on- and the interface is down and/or driver is 
> > unloaded, are you saying WOL is a problem somehow?
> 
> Stephen is saying that if you down an interface, it should disable
> that WoL functionality.
> 
> I guess you can argue that, like IP addresses, this WoL thing is an
> attribute of the "system".

Looking harder. The semantic needs to be WOL is okay if driver is loaded
and device is up or down. But the default for WOL should be disabled until
enabled by ethtool (or parameter).

-- 
Stephen Hemminger <shemminger@osdl.org>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Wake On Lan device semantics
  2006-11-04  0:02   ` David Miller
  2006-11-04  0:11     ` Stephen Hemminger
@ 2006-11-04  0:42     ` Jeff Garzik
  2006-11-04  1:02       ` David Miller
  1 sibling, 1 reply; 14+ messages in thread
From: Jeff Garzik @ 2006-11-04  0:42 UTC (permalink / raw)
  To: David Miller; +Cc: shemminger, netdev

David Miller wrote:
> From: Jeff Garzik <jgarzik@pobox.com>
> Date: Fri, 03 Nov 2006 18:51:25 -0500
> 
>> The purpose of WOL is being able to turn on a system remotely, if it is 
>> in a power-off or sleep state.
>>
>> So, if the system is -on- and the interface is down and/or driver is 
>> unloaded, are you saying WOL is a problem somehow?
> 
> Stephen is saying that if you down an interface, it should disable
> that WoL functionality.

Many distros down the interface on poweroff, a state from which WOL is 
often used, so we don't want this.


> I guess you can argue that, like IP addresses, this WoL thing is an
> attribute of the "system".

Yeah, it's definitely a system state.  When the magic packet arrives, 
the WOL wire on the motherboard is tickled, turning the machine on.

	Jeff



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Wake On Lan device semantics
  2006-11-04  0:42     ` Jeff Garzik
@ 2006-11-04  1:02       ` David Miller
  0 siblings, 0 replies; 14+ messages in thread
From: David Miller @ 2006-11-04  1:02 UTC (permalink / raw)
  To: jgarzik; +Cc: shemminger, netdev

From: Jeff Garzik <jgarzik@pobox.com>
Date: Fri, 03 Nov 2006 19:42:49 -0500

> David Miller wrote:
> > I guess you can argue that, like IP addresses, this WoL thing is an
> > attribute of the "system".
> 
> Yeah, it's definitely a system state.  When the magic packet arrives, 
> the WOL wire on the motherboard is tickled, turning the machine on.

Ok, and Stephen seems to agree now too on this point.

I think there is merit to Stephen's assertion that WoL should
be off by default.  It allows remote entities to do something
to your computer.

I'm happy to hear counter-arguments, of course :-)

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Wake On Lan device semantics
  2006-11-03 23:48   ` Stephen Hemminger
@ 2006-11-04  1:35     ` Auke Kok
  0 siblings, 0 replies; 14+ messages in thread
From: Auke Kok @ 2006-11-04  1:35 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: Jeff Garzik, David S. Miller, netdev

Stephen Hemminger wrote:
> On Fri, 03 Nov 2006 15:44:13 -0800
> Auke Kok <auke-jan.h.kok@intel.com> wrote:
> 
>> Stephen Hemminger wrote:
>>> It doesn't seem like a good idea for a network device to wake the system
>>> if it is down.
>> before suspend existed this was the only useful case for WoL. Why does it not seem a 
>> good idea to wake up a machine that was shutdown (and thus the interface `downed`) ?
>>
>> Auke
> 
> It seems odd because that means you can never make a device fully deaf.

sure you can, just turn off WoL and e1000 will really shutdown (at least, I hope :))

Auke

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Wake On Lan device semantics
  2006-11-03 23:50   ` Stephen Hemminger
@ 2006-11-04  1:36     ` Auke Kok
  2006-11-04  1:37       ` Stephen Hemminger
  0 siblings, 1 reply; 14+ messages in thread
From: Auke Kok @ 2006-11-04  1:36 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: Jeff Garzik, David S. Miller, netdev

Stephen Hemminger wrote:
> On Fri, 03 Nov 2006 15:44:13 -0800
> Auke Kok <auke-jan.h.kok@intel.com> wrote:
> 
>> Stephen Hemminger wrote:
>>> It doesn't seem like a good idea for a network device to wake the system
>>> if it is down.
>> before suspend existed this was the only useful case for WoL. Why does it not seem a 
>> good idea to wake up a machine that was shutdown (and thus the interface `downed`) ?
>>
>> Auke
> 
> Interestingly it looks like e100 is one of the ones that only wakes from suspend (not when down).

that would be a bug, I'll have to get that checked especially after the latest changes 
to it.

Auke

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Wake On Lan device semantics
  2006-11-04  1:36     ` Auke Kok
@ 2006-11-04  1:37       ` Stephen Hemminger
  2006-11-04  1:44         ` Auke Kok
  0 siblings, 1 reply; 14+ messages in thread
From: Stephen Hemminger @ 2006-11-04  1:37 UTC (permalink / raw)
  To: Auke Kok; +Cc: Jeff Garzik, David S. Miller, netdev

On Fri, 03 Nov 2006 17:36:45 -0800
Auke Kok <auke-jan.h.kok@intel.com> wrote:

> Stephen Hemminger wrote:
> > On Fri, 03 Nov 2006 15:44:13 -0800
> > Auke Kok <auke-jan.h.kok@intel.com> wrote:
> > 
> >> Stephen Hemminger wrote:
> >>> It doesn't seem like a good idea for a network device to wake the system
> >>> if it is down.
> >> before suspend existed this was the only useful case for WoL. Why does it not seem a 
> >> good idea to wake up a machine that was shutdown (and thus the interface `downed`) ?
> >>
> >> Auke
> > 
> > Interestingly it looks like e100 is one of the ones that only wakes from suspend (not when down).
> 
> that would be a bug, I'll have to get that checked especially after the latest changes 
> to it.
> 

Sorry, my bad my test machine was not setup properly.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Wake On Lan device semantics
  2006-11-04  1:37       ` Stephen Hemminger
@ 2006-11-04  1:44         ` Auke Kok
  0 siblings, 0 replies; 14+ messages in thread
From: Auke Kok @ 2006-11-04  1:44 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: Jeff Garzik, David S. Miller, netdev

Stephen Hemminger wrote:
> On Fri, 03 Nov 2006 17:36:45 -0800
> Auke Kok <auke-jan.h.kok@intel.com> wrote:
> 
>> Stephen Hemminger wrote:
>>> On Fri, 03 Nov 2006 15:44:13 -0800
>>> Auke Kok <auke-jan.h.kok@intel.com> wrote:
>>>
>>>> Stephen Hemminger wrote:
>>>>> It doesn't seem like a good idea for a network device to wake the system
>>>>> if it is down.
>>>> before suspend existed this was the only useful case for WoL. Why does it not seem a 
>>>> good idea to wake up a machine that was shutdown (and thus the interface `downed`) ?
>>>>
>>>> Auke
>>> Interestingly it looks like e100 is one of the ones that only wakes from suspend (not when down).
>> that would be a bug, I'll have to get that checked especially after the latest changes 
>> to it.
>>
> 
> Sorry, my bad my test machine was not setup properly.

I don't blame you, WoL is one of the hardest features to get right, especially with all 
the various e100{,0} hardware and options that influence it (manageability, eeproms, etc).

On top of that there's this blob called BIOS messing it all up after a powercycle :)

Cheers,

Auke

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Wake On Lan device semantics
  2006-11-04  0:11     ` Stephen Hemminger
@ 2006-11-04  1:53       ` Auke Kok
  0 siblings, 0 replies; 14+ messages in thread
From: Auke Kok @ 2006-11-04  1:53 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: David Miller, jgarzik, netdev

Stephen Hemminger wrote:
> On Fri, 03 Nov 2006 16:02:30 -0800 (PST)
> David Miller <davem@davemloft.net> wrote:
> 
>> From: Jeff Garzik <jgarzik@pobox.com>
>> Date: Fri, 03 Nov 2006 18:51:25 -0500
>>
>>> The purpose of WOL is being able to turn on a system remotely, if it is 
>>> in a power-off or sleep state.
>>>
>>> So, if the system is -on- and the interface is down and/or driver is 
>>> unloaded, are you saying WOL is a problem somehow?
>> Stephen is saying that if you down an interface, it should disable
>> that WoL functionality.
>>
>> I guess you can argue that, like IP addresses, this WoL thing is an
>> attribute of the "system".
> 
> Looking harder. The semantic needs to be WOL is okay if driver is loaded
> and device is up or down. But the default for WOL should be disabled until
> enabled by ethtool (or parameter).

Since this is enabled already in the BIOSes for most systems (or disabled, and 
switcheable by the user), I'd say we can let the driver handle the default (on for most 
cards) already. The BIOS can also handle a WoL call after a (long) powerfailure, before 
the OS boots, so disabling it in the OS would be quite useless in that case: the BIOS 
would override it anyway.

Doesn't sound like a problem you can solve in the driver layer...

Cheers,

Auke

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-11-04  1:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-03 23:20 Wake On Lan device semantics Stephen Hemminger
2006-11-03 23:44 ` Auke Kok
2006-11-03 23:48   ` Stephen Hemminger
2006-11-04  1:35     ` Auke Kok
2006-11-03 23:50   ` Stephen Hemminger
2006-11-04  1:36     ` Auke Kok
2006-11-04  1:37       ` Stephen Hemminger
2006-11-04  1:44         ` Auke Kok
2006-11-03 23:51 ` Jeff Garzik
2006-11-04  0:02   ` David Miller
2006-11-04  0:11     ` Stephen Hemminger
2006-11-04  1:53       ` Auke Kok
2006-11-04  0:42     ` Jeff Garzik
2006-11-04  1:02       ` David Miller

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).