From: Pavel Machek <pavel@ucw.cz>
To: David Brownell <david-b@pacbell.net>
Cc: Andrew Morton <akpm@osdl.org>, Linus Torvalds <torvalds@osdl.org>,
linux-pm@lists.osdl.org
Subject: Re: RFC -- updated Documentation/power/devices.txt
Date: Tue, 11 Jul 2006 23:28:43 +0200 [thread overview]
Message-ID: <20060711212843.GA1836@elf.ucw.cz> (raw)
In-Reply-To: <200607101525.43507.david-b@pacbell.net>
Hi!
Looks good to me. Few more nits (sorry for two separate mails, I was
in a hurry).
> Call Sequence Guarantees
> --------------------------------------------
This probably needs few less '-'s.
> suspending devices
> ------------------
Capitalize?
> pm_message_t meaning
> --------------------
Capitalize 'meaning'?
> The event codes are used to nuance the goal of suspending the device,
> and mostly matter when creating or resuming suspend-to-disk snapshots:
>
> PM_EVENT_SUSPEND -- quiesce the driver and put hardware into a low-power
> state. When used with system sleep states like "suspend-to-RAM" or
> "standby", the upcoming resume() call will often be able to rely on
> state kept in hardware, or issue system wakeup events. When used
> instead with suspend-to-disk, few devices support this capability;
> most are completely powered off.
Previous paragraphs make it shound as if running DMA is allowed while
suspended. That's okay for PM_EVENT_SUSPEND...
> PM_EVENT_FREEZE -- quiesce the driver, but don't necessarily change into
> any low power mode. The driver's resume() will often be called soon.
> Wakeup events are not allowed.
>
> PM_EVENT_PRETHAW -- quiesce the driver, knowing that the upcoming resume()
> will restore a suspend-to-disk snapshot from a different kernel image.
> Drivers that are smart enough to look at their hardware state during
> resume() processing need that state to be correct ... a PRETHAW could
> be used to invalidate that state (by resetting the device). Other
> drivers might handle this the same way as PM_EVENT_FREEZE.
...but not for PM_EVENT_FREEZE/PRETHAW. I guess it should be stated
here...
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2006-07-11 21:28 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-10 22:25 RFC -- updated Documentation/power/devices.txt David Brownell
2006-07-11 5:56 ` Andrew Morton
2006-07-11 16:38 ` David Brownell
2006-07-11 21:57 ` David Brownell
2006-07-12 12:25 ` Pavel Machek
2006-07-12 14:04 ` Alan Stern
2006-07-12 15:45 ` David Brownell
2006-07-12 16:03 ` Alan Stern
2006-07-23 1:37 ` David Brownell
2006-07-23 3:59 ` Alan Stern
2006-07-23 10:50 ` Rafael J. Wysocki
2006-07-23 13:03 ` Alan Stern
2006-07-23 22:45 ` Rafael J. Wysocki
2006-07-24 3:22 ` David Brownell
2006-07-24 9:46 ` Rafael J. Wysocki
2006-07-24 14:51 ` Alan Stern
2006-07-24 15:15 ` David Brownell
2006-07-24 15:42 ` Alan Stern
2006-07-24 17:11 ` David Brownell
2006-07-24 20:44 ` Alan Stern
2006-07-24 21:19 ` David Brownell
2006-07-25 15:42 ` Alan Stern
2006-08-10 23:38 ` [patch 2.6.18-rc] " David Brownell
2006-07-23 16:22 ` RFC -- " David Brownell
2006-07-11 14:40 ` Pavel Machek
2006-07-11 21:28 ` Pavel Machek [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-07-11 7:56 Woodruff, Richard
2006-07-11 16:51 ` David Brownell
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=20060711212843.GA1836@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=akpm@osdl.org \
--cc=david-b@pacbell.net \
--cc=linux-pm@lists.osdl.org \
--cc=torvalds@osdl.org \
/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.