All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Pavel Machek <pavel@ucw.cz>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>,
	linux-pm@lists.linux-foundation.org, linux-omap@vger.kernel.org
Subject: Re: Runtime PM discussion notes
Date: Sun, 31 Jul 2011 00:41:53 +0200	[thread overview]
Message-ID: <201107310041.53344.rjw@sisk.pl> (raw)
In-Reply-To: <20110730220953.GB10450@elf.ucw.cz>

On Sunday, July 31, 2011, Pavel Machek wrote:
> Hi!
> 
> > > IIRC I solved it by just calling _PTS when sleepy Linux was
> > > enabled. It had side effect of lighting up moon icon, but otherwise
> > > seemed to work ok.
> > > 
> > > I do not think ACPI says what can and can not be done after _PTS...
> > 
> > Yes, it does.
> 
> I have 2.0 spec here; it explains how _PTS can be called long time
> before actual sleep and may not power down devices...
> 
> > > It should be ok to execute _WAK in process context once system is
> > > resumed. ... or maybe not executing _WAK at all. User can probably
> > > live with moon icon lighted up.
> > 
> > But I don't think the user can live with certain functionality missing,
> > like battery status or such things.
> 
> Yep; you'd probably want to execute it before calling other ACPI methods...
> 
> > This is completely unrealistic to think that your prototype can be safely
> > implemented on _every_ ACPI-based system.  Period.
> 
> My prototype would probably not be safe on any system, period. It was
> quick hack to prove the concept.
> 
> > And that's even without taking SMP into account, BTW.
> 
> Idea was to do hot CPU unplug before enabling sleepy state. Sleepy
> probably should be enabled when screen is turned off by
> screensaver (if machine is sufficiently idle).
> 
> I'm not saying that task is easy, merely that is doable. (Doing it in
> clean way will be harder still). Basically prepare all the devices to
> sleep when machine gets "idle enough", along with _PTS, but keep
> running, including userspace. Then, if next wake up is "long enough"
> into future, set up RTC alarm and push machine to sleep.

You're supposed to do all that from within the idle loop on one
of the CPUs (at least in the context of this discussion).  I don't
really think it's realistically doable.

Thanks,
Rafael

  reply	other threads:[~2011-07-30 22:41 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BANLkTim=aunvBDLincgXX5yYNhvDTk+fhQ@mail.gmail.com>
     [not found] ` <201106102015.47146.rjw@sisk.pl>
     [not found]   ` <BANLkTimgiJGKASGx80=hTBPBQ52ttmp+Kw@mail.gmail.com>
     [not found]     ` <201106150048.43187.rjw@sisk.pl>
2011-06-23 14:51       ` Runtime PM discussion notes Paul Walmsley
2011-06-23 15:23         ` [linux-pm] " Alan Stern
2011-06-23 20:34           ` Rafael J. Wysocki
2011-06-24 19:53             ` Paul Walmsley
2011-06-24 22:27               ` Arve Hjønnevåg
2011-06-25  5:33                 ` Magnus Damm
2011-06-25  5:33                 ` Magnus Damm
2011-06-28 19:47                 ` [linux-pm] " Paul Walmsley
2011-07-09  4:06                   ` Mark Brown
2011-07-09  4:06                   ` [linux-pm] " Mark Brown
2011-07-11  9:58                     ` Tony Lindgren
2011-07-11  9:58                     ` [linux-pm] " Tony Lindgren
2011-07-11 11:04                       ` Mark Brown
2011-07-11 11:14                         ` Tony Lindgren
2011-07-11 11:26                           ` Mark Brown
2011-07-11 11:26                           ` [linux-pm] " Mark Brown
2011-07-11 11:32                             ` Tony Lindgren
2011-07-11 11:32                             ` [linux-pm] " Tony Lindgren
2011-07-13  7:17                             ` Paul Walmsley
2011-07-13  9:04                               ` Rafael J. Wysocki
2011-07-13  9:04                               ` [linux-pm] " Rafael J. Wysocki
2011-07-29 13:41                                 ` Pavel Machek
2011-07-29 13:41                                 ` [linux-pm] " Pavel Machek
2011-07-29 19:52                                   ` Rafael J. Wysocki
2011-07-29 19:52                                   ` [linux-pm] " Rafael J. Wysocki
2011-07-30 20:37                                     ` Pavel Machek
2011-07-30 20:37                                     ` [linux-pm] " Pavel Machek
2011-07-30 21:05                                       ` Rafael J. Wysocki
2011-07-30 21:05                                       ` [linux-pm] " Rafael J. Wysocki
2011-07-30 21:09                                         ` Rafael J. Wysocki
2011-07-30 21:25                                           ` Pavel Machek
2011-07-30 21:25                                           ` [linux-pm] " Pavel Machek
2011-07-30 21:36                                             ` Rafael J. Wysocki
2011-07-30 21:36                                             ` [linux-pm] " Rafael J. Wysocki
2011-07-30 22:09                                         ` Pavel Machek
2011-07-30 22:41                                           ` Rafael J. Wysocki [this message]
2011-07-30 22:09                                         ` Pavel Machek
2011-07-13  7:17                             ` Paul Walmsley
2011-07-11 11:14                         ` Tony Lindgren
2011-07-11 11:04                       ` Mark Brown
2011-06-28 19:47                 ` Paul Walmsley
2011-06-24 22:27               ` Arve Hjønnevåg
2011-06-25 13:51               ` [linux-pm] " Rafael J. Wysocki
2011-06-25 13:51               ` Rafael J. Wysocki
2011-06-24 19:53             ` Paul Walmsley
2011-06-23 20:34           ` Rafael J. Wysocki
2011-06-24 18:36           ` [linux-pm] " Paul Walmsley
2011-06-25 18:59             ` Alan Stern
2011-06-25 18:59             ` [linux-pm] " Alan Stern
2011-06-24 18:36           ` Paul Walmsley
2011-06-23 15:23         ` Alan Stern
2011-06-23 14:51       ` Paul Walmsley

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=201107310041.53344.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=pavel@ucw.cz \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.