[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200803140231.39282.rjw@sisk.pl>
Date: Fri, 14 Mar 2008 02:31:38 +0100
From: "Rafael J. Wysocki" <rjw@...k.pl>
To: "Eric W. Biederman" <ebiederm@...ssion.com>
Cc: Alan Stern <stern@...land.harvard.edu>,
"Huang, Ying" <ying.huang@...el.com>, nigel@...el.suspend2.net,
Kexec Mailing List <kexec@...ts.infradead.org>,
linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
linux-pm@...ts.linux-foundation.org,
Vivek Goyal <vgoyal@...hat.com>
Subject: Re: [linux-pm] [PATCH -mm] kexec jump -v9
On Friday, 14 of March 2008, Eric W. Biederman wrote:
> "Rafael J. Wysocki" <rjw@...k.pl> writes:
>
> > From the ACPI compliance point of view it's better to do it this way. We need
> > to put the devices into low power states anyway before "powering off" the
> > system and we won't need to touch them for the second time if we do that
> > in advance.
>
> Interesting. From a kexec jump where we exit the kernel and then return
> to it seem all that is required.
>
> I will have to look at the ACPI case. That seems to be the lynch pin
> of a couple of arguments for doing strange things: ACPI requires it.
Yes and that's because ACPI regards hibernation as a _sleep_ state, something
more like S3 (suspend to RAM) than S5 (power off).
In fact even now we're doing things that are strange from the ACPI standpoint.
For example, we should really execute _PTS once during the entire transition
and we shouldn't call _WAK after we've created the image. We're doing that
now due to some design limitations, but in fact we shouldn't.
> > Still, it would be sufficient if we disconnected the drivers from the hardware
> > and thus prevented applications from accessing that hardware.
>
> My gut feeling is that except for a handful of drivers we could even
> get away with simply implementing hot unplug and hot replug. Disks
> are the big exception here.
>
> Which suggests to me that it is at least possible that the methods we
> want for a kexec jump hibernation may be different from an in-kernel
> hibernation and quite possibly are easier to implement.
I'm not sure about the "easier" part, quite frankly. Also, with our current
ordering of code the in-kernel hibernation will need the same callbacks
as the kexec-based thing. However, with the in-kernel approach we can
attempt (in the future) to be more ACPI compliant, so to speak, but with the
kexec-based approach that won't be possible.
Whether it's a good idea to follow ACPI, as far as hibernation is concerned, is
a separate question, but IMO we won't be able to answer it without _lots_ of
testing on vaious BIOS/firmware configurations. Our experience so far
indicates that at least some BIOSes expect us to follow ACPI and misbehave
otherwise, so for those systems there should be an "ACPI way" available.
[Others just don't work well if we try to follow ACPI and those may be handled
using the kexec-based approach, but that doesn't mean that we can just ignore
the ACPI compliance issue, at least for now.]
Thanks,
Rafael
--
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