[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0707171354240.2467@asgard.lang.hm>
Date: Tue, 17 Jul 2007 14:04:13 -0700 (PDT)
From: david@...g.hm
To: Jeremy Maitin-Shepard <jbms@....edu>
cc: "Rafael J. Wysocki" <rjw@...k.pl>,
Alan Stern <stern@...land.harvard.edu>,
LKML <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
"Huang, Ying" <ying.huang@...el.com>,
Kyle Moffett <mrmacman_g4@....com>,
Nigel Cunningham <nigel@...el.suspend2.net>,
Pavel Machek <pavel@....cz>,
pm list <linux-pm@...ts.linux-foundation.org>,
Al Boldi <a1426z@...ab.com>
Subject: Re: Hibernation considerations
On Tue, 17 Jul 2007, Jeremy Maitin-Shepard wrote:
> david@...g.hm writes:
>
> [snip]
>
>> this is where we disagree.
>
>> why not? if all that the hibernated kernel does is to suspend-to-ram and makes
>> no changes to disks or TCP connections anything that it does do would be lost if
>> power were to fail and you instead did a restore from disk.
>
> It would be okay to switch the "hibernated" kernel in order to
> e.g. initiate a suspend to ram provided that everything is done
> atomically with interrupts off, for instance. It is not clear, though,
> that it is possible to suspend to ram atomically like that.
why would it neeed to be with interrupts off?
I am arguing that it wouldn't matter if the "hibernated" kernel changed
every bit of ram, as long as it didn't change anything that would be
visable when the ram is overwritten by the saved image.
> There is also the question of what state the devices will be in when
> switching back from the "save image" kernel to the "hibernated" kernel.
yes, this is a key factor.
if the saved image assumes that the hardware is in some ACPI mode instead
of re-initializeing the hardware then the suspend-to-ram operation could
leave them in a different mode.
but if the saved image doesn't make assumptions about the hardware modes
and initializes the hardware then it shouldn't matter.
David Lang
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists