From: Pavel Machek <pavel@ucw.cz>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Alexey Starikovskiy <aystarik@gmail.com>,
Johannes Berg <johannes@sipsolutions.net>,
linux-pm@lists.linux-foundation.org,
Pekka Enberg <penberg@cs.helsinki.fi>,
Nigel Cunningham <nigel@nigel.suspend2.net>,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>
Subject: Re: ACPI code in platform mode hibernation code paths (was: Re: [PATCH] swsusp: do not use pm_ops)
Date: Fri, 4 May 2007 00:48:07 +0200 [thread overview]
Message-ID: <20070503224807.GD13426@elf.ucw.cz> (raw)
In-Reply-To: <200705022126.47897.rjw@sisk.pl>
Hi!
Crazy idea... could we kill hibernate_ops-like struct, and just create
a device for ACPI, using its suspend()/resume()/whatever callbacks to
do the ACPI magic?
> Okay. Since we're trying to separate the hibernation code from the
> suspend code anyway, we can use the opportunity to introduce some new
> callbacks for the hibernation and/or redefine the existing ones.
>
> The spec suggests that we need the following callbacks:
>
> (1) prepare() - called after device_suspend(), execute _PTS and
> disable GPEs
sysdev .suspend() method would do the trick.
> (2) cancel() - called at any time after prepare() if there's an error, execute
> _WAK and enable run-time GPEs
sysdev .resume() should do the trick.
> (3) enter() - called after the image has been saved, execute _GTS and do what's
> currently done in pm_enter()
This one is tricky. It is essentially
powerdown_but_enter_S4_instead. I guess we can live with if()... as we
need to special-case reboot in the same place.
> (4) finish() - called after the image has been restored, do what's currently
> done in pm_finish()
platform (?) device .resume() method should work.
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:[~2007-05-03 22:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070425072350.GA6866@ucw.cz>
[not found] ` <200705021542.24988.rjw@sisk.pl>
[not found] ` <8f8ff01d0705020711r630b8b92sdd2cd9316eb39edc@mail.gmail.com>
2007-05-02 19:26 ` ACPI code in platform mode hibernation code paths (was: Re: [PATCH] swsusp: do not use pm_ops) Rafael J. Wysocki
2007-05-03 22:48 ` Pavel Machek [this message]
2007-05-03 23:14 ` Rafael J. Wysocki
2007-05-04 10:54 ` Johannes Berg
2007-05-04 12:08 ` Pavel Machek
2007-05-04 12:29 ` 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=20070503224807.GD13426@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=aystarik@gmail.com \
--cc=johannes@sipsolutions.net \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=nigel@nigel.suspend2.net \
--cc=penberg@cs.helsinki.fi \
--cc=rjw@sisk.pl \
/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