public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Oliver Neukum <oliver@neukum.org>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Linux-pm mailing list <linux-pm@lists.linux-foundation.org>
Subject: Re: System sleep vs. runtime PM
Date: Thu, 3 Dec 2009 18:13:25 +0100	[thread overview]
Message-ID: <200912031813.25776.oliver@neukum.org> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0912031020140.4795-100000@iolanthe.rowland.org>

Am Donnerstag, 3. Dezember 2009 16:25:30 schrieb Alan Stern:
> On Thu, 3 Dec 2009, Oliver Neukum wrote:

> > > There's yet another issue to discuss.  Suppose a device is
> > > runtime-suspended when a system sleep starts.  When the system wakes
> > > up, should the device be runtime-resumed?  (Assume that the wakeup
> > > settings don't differ; otherwise it has to be.)
> >
> > That depends on how sure we are to never drop a remote wakeup,
> > not even if requests race or for any other reason. And we must always
> > know what woke us up.
> 
> This is a complicated question and I will discuss it at greater length
> in another email.
> 
> However, I don't see any reason to know what woke us up.  All we really
> need to know is what devices have wakeup requests outstanding when the
> system resume is finished.  It doesn't matter which request came first
> (presumably that was the one which woke us up).

That assumes that the firmware doesn't do anything stupid with
pending remote wakeups as it resumes the system. I'd call this
unwarranted optimism. The conservative solution would be to resume
every device whose driver has requested remote wakeup be enabled.

	Regards
		Oliver

  reply	other threads:[~2009-12-03 17:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-02 18:35 System sleep vs. runtime PM Alan Stern
2009-12-02 21:16 ` Oliver Neukum
2009-12-02 22:20   ` Alan Stern
2009-12-02 23:02     ` Oliver Neukum
2009-12-03  0:19       ` Rafael J. Wysocki
2009-12-03 16:53         ` Alan Stern
2009-12-03 15:25       ` Alan Stern
2009-12-03 17:13         ` Oliver Neukum [this message]
2009-12-03 17:50           ` Alan Stern
2009-12-03 19:34             ` Oliver Neukum
2009-12-03 19:52               ` Alan Stern
2009-12-03 20:11                 ` Oliver Neukum
2009-12-03 20:33                   ` Alan Stern
  -- strict thread matches above, loose matches on Subject: below --
2009-12-12 15:37 Alan Stern
2009-12-12 17:33 ` Rafael J. Wysocki
2009-12-12 19:22   ` Alan Stern
2009-12-12 22:45     ` Rafael J. Wysocki

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=200912031813.25776.oliver@neukum.org \
    --to=oliver@neukum.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --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