From: Li Yang <leoli@freescale.com>
To: Scott Wood <scottwood@freescale.com>, Pavel Machek <pavel@ucw.cz>
Cc: linuxppc-dev@ozlabs.org, Soohyung Cho <celius202@gmail.com>
Subject: Re: suspend-to-mem on the mpc8349e-mitx-gp?
Date: Wed, 25 Mar 2009 18:42:41 +0800 [thread overview]
Message-ID: <2a27d3730903250342qc7c98abt95534372af174703@mail.gmail.com> (raw)
In-Reply-To: <20090323165402.GC25217@ld0162-tx32.am.freescale.net>
On Tue, Mar 24, 2009 at 12:54 AM, Scott Wood <scottwood@freescale.com> wrot=
e:
> On Sun, Mar 22, 2009 at 10:45:23PM -0700, Li Yang-R58472 wrote:
>> > I don't think so, in this case. =C2=A0The user is not asking for
>> > "sleep" or deep sleep"; they are asking for a power state
>> > that meets the definition of "standby" (which sleep does) or
>> > which meets the definition of "mem"
>> > (which both sleep and deep sleep do). =C2=A0When the user asks for
>> > "mem", we provide the lowest power mode that qualifies.
>>
>> In my understanding, "mem" which is suspend-to-ram means all CPU states
>> and registers are kept in memory and the CPU is completely off during
>> suspension. =C2=A0I don't think the sleep mode of 8349 qualifies, does i=
t?
>
> Is there a difference visible to software or to the user (other than not
> achieving power savings that the board does not support)? =C2=A0It seems
> simpler for userspace to just specify the "heaviest" sleep state it wants
> deal with (though some feedback to an administrator of what actually
> happens would be nice).
I agree that it's handy to have a "sleep" state in kernel to
automatically enter the "heaviest" sleep state supported. However it
is also very simple for user space script or application to check the
available states first and then enter explicitly the "heaviest" sleep
state.
Pavel, what's the preferred way for current PM sub-system?
- Leo
>
> And if we want to be really pedantic, neither sleep nor deep sleep meet
> the definitions for either "standby" or "mem", because they specify
> acceptable latency ranges in seconds, and (in the absence of a disk) we
> are much faster than that (it doesn't say "up to 1-2 seconds"). :-)
>
> Are there any existing suspend drivers that suppord standby but not mem?
> I see omap1 as a counterexample that treats them both the same.
>
> -Scott
next prev parent reply other threads:[~2009-03-25 10:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-19 5:46 suspend-to-mem on the mpc8349e-mitx-gp? Soohyung Cho
2009-03-19 7:24 ` Li Yang-R58472
2009-03-19 16:11 ` Scott Wood
2009-03-20 3:43 ` Li Yang-R58472
2009-03-20 14:41 ` Scott Wood
2009-03-23 5:45 ` Li Yang-R58472
2009-03-23 6:16 ` MJ embd
2009-03-23 6:17 ` Soohyung Cho
2009-03-23 16:54 ` Scott Wood
2009-03-25 10:42 ` Li Yang [this message]
2009-03-25 11:11 ` Pavel Machek
2009-03-25 16:31 ` Scott Wood
2009-03-25 18:23 ` Pavel Machek
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=2a27d3730903250342qc7c98abt95534372af174703@mail.gmail.com \
--to=leoli@freescale.com \
--cc=celius202@gmail.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=pavel@ucw.cz \
--cc=scottwood@freescale.com \
/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;
as well as URLs for NNTP newsgroup(s).