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 20:34:39 +0100	[thread overview]
Message-ID: <200912032034.39761.oliver@neukum.org> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0912031249110.4795-100000@iolanthe.rowland.org>

Am Donnerstag, 3. Dezember 2009 18:50:28 schrieb Alan Stern:
> On Thu, 3 Dec 2009, Oliver Neukum wrote:
> > > 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.
> 
> Drivers certainly can use that as one of their criteria for whether to
> power-up a device during system resume.

Leaving this decision to the drivers won't work because they don't
know enough.
For reliable operation we must guarantee no remote wakeup is lost.
But remote wakeups must travel a whole chain of busses and the
guarantees is of the weakest link apply. Drivers must not know
over which busses they are connected higher up.

Therefore you must make the decision in core. But the core doesn't
know specifics. Unless you really want to overengineer this and compute
the reliability of each path, resuming only those whose drivers have
requested that remote wakeup be enabled is the best you can do.

	Regards
		Oliver

  reply	other threads:[~2009-12-03 19:34 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
2009-12-03 17:50           ` Alan Stern
2009-12-03 19:34             ` Oliver Neukum [this message]
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=200912032034.39761.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