public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: linux-pm@lists.osdl.org, richard@hughsie.com,
	Pavel Machek <pavel@ucw.cz>
Subject: Re: suspend and hibernate nomenclature
Date: Sat, 20 May 2006 13:47:25 -0700	[thread overview]
Message-ID: <200605201347.27957.david-b@pacbell.net> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0605201520140.29313-100000@netrider.rowland.org>

[-- Attachment #1: Type: text/plain, Size: 2825 bytes --]

On Saturday 20 May 2006 12:23 pm, Alan Stern wrote:
> On Sat, 20 May 2006, Pavel Machek wrote:
> 
> > > > > As for downloading, that's why ethernet adapters have wake-on-lan (WOL)
> > > > > mechanisms.  Likewise for other wakeup-capable devices, like a keyboard
> > > > > or mouse.  Or even 3D engines, DSPs, SPUs, ...
> > > > 
> > > > ?? WOL is for different functionality, I'm afraid. Or do you know
> > > > ethernet hub that automagically wakes machines when data come?
> > > 
> > > No, that's exactly what WOL is designed for.  A typical scenarios has
> > > the adapter waking up when the incoming packet is unicast to the MAC
> > > address of that host.  The hub/switch would act normally.
> > 
> > I do not think WOL wakes that way. IIRC it needs magic ethernet
> > packet.
> 
> That's right.  I don't remember what the contents need to be, but WOL 
> doesn't work with any old ethernet packet.

You're both wrong.  Notice what "man ethtool" reports:

       wol p|u|m|b|a|g|s|d...
              Set Wake-on-LAN options.  Not all devices support this.  The argument to this
              option is a string of characters specifying which options to enable.

              p  Wake on phy activity
              u  Wake on unicast messages
              m  Wake on multicast messages
              b  Wake on broadcast messages
              a  Wake on ARP
              g  Wake on MagicPacket(tm)
              s  Enable SecureOn(tm) password for MagicPacket(tm)
              d  Disable (wake on nothing).  This option clears all previous options.

It does not "need" MagicPacket; not all hardware supports it.  On hardware that
does support it, you aren't forced to use it.  (MagicPacket is nice for certain
kinds of remote administration.)

A brief survey of some Ethernet-equipped Linux hardware I see right now:

 - RTL 8139, supports pumbg
 - SIS 900, supports pg
 - at91rm9200 (arm920), supports pumb (in hardware, from "standby", but
   its Linux driver doesn't handle it yet)


> You can see this by looking closely at what Dave wrote: "... the incoming
> packet is unicast to the MAC address of that host."  If the host has been
> asleep for some time, its MAC address will have timed out from the
> source's ARP cache.  The source will need to broadcast an ARP request
> packet before it can unicast anything, and the broadcast won't wake up the 
> host.

Well, controllers may wake on ARP too.  And if a download is active, then
it's likely that the ARP cache won't be timing out ... and even if it did
time out, some networks use proxy ARP or persisten ARP cache entries, so
using ARP is not always necessary.

Point being as I said:  that WOL helps address that problem.  As always,
if you need particular hardware capabilities (like wake-on-unicast) you
need to make sure your hardware has them.

- Dave


[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



  reply	other threads:[~2006-05-20 20:47 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-07 18:02 suspend and hibernate nomenclature Richard Hughes
2006-05-08 15:05 ` Jordan Crouse
2006-05-08 16:09   ` Richard Hughes
2006-05-08 20:01 ` Pavel Machek
2006-05-14 15:32   ` Richard Hughes
2006-05-14 15:39     ` Pavel Machek
2006-05-14 21:17       ` Rafael J. Wysocki
2006-05-08 23:47 ` David Brownell
2006-05-09  7:38   ` Richard Hughes
2006-05-09 15:57     ` David Brownell
2006-05-16 20:40       ` Pavel Machek
2006-05-18 19:56         ` David Brownell
2006-05-18 20:50           ` Pavel Machek
2006-05-19  2:25             ` David Brownell
2006-05-20 17:20               ` Pavel Machek
2006-05-20 19:23                 ` Alan Stern
2006-05-20 20:47                   ` David Brownell [this message]
2006-05-20 20:55                     ` Pavel Machek
2006-05-21 15:35                       ` Alan Stern
2006-05-20 20:54                 ` David Brownell
2006-05-20 22:39                   ` Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2006-05-16 20:47 Scott E. Preece

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=200605201347.27957.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=linux-pm@lists.osdl.org \
    --cc=pavel@ucw.cz \
    --cc=richard@hughsie.com \
    --cc=stern@rowland.harvard.edu \
    /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