public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
[parent not found: <9D7649D18729DE4BB2BD7B494F7FEDC236CF5C@pdsmsx415.ccr.corp.intel.com>]
[parent not found: <Pine.LNX.4.44L0.0707231120380.3545-100000@iolanthe.rowland.org>]
[parent not found: <Pine.LNX.4.64.0707231121220.3828@asgard.lang.hm>]
[parent not found: <Pine.LNX.4.44L0.0707231035150.3545-100000@iolanthe.rowland.org>]
[parent not found: <200707231311.56398.nigel@nigel.suspend2.net>]
[parent not found: <Pine.LNX.4.44L0.0707221608140.16031-100000@netrider.rowland.org>]
[parent not found: <Pine.LNX.4.44L0.0707221116060.15224-100000@netrider.rowland.org>]
[parent not found: <Pine.LNX.4.64.0707212000380.6747@asgard.lang.hm>]
[parent not found: <Pine.LNX.4.44L0.0707210956320.8201-100000@netrider.rowland.org>]
[parent not found: <877ioupxi8.fsf@jbms.ath.cx>]
[parent not found: <200707202335.05519.oliver@neukum.org>]
[parent not found: <Pine.LNX.4.44L0.0707201608120.2546-100000@iolanthe.rowland.org>]
[parent not found: <200707202203.27849.oliver@neukum.org>]
[parent not found: <fe998950b9d5ad317d5c1f5ff4e21ac9@bga.com>]
[parent not found: <Pine.LNX.4.44L0.0707201408060.2546-100000@iolanthe.rowland.org>]
* Re: Hibernation considerations
       [not found] ` <Pine.LNX.4.44L0.0707171416120.3728-100000@iolanthe.rowland.org>
@ 2007-07-17 20:27 david
       [not found] ` <Pine.LNX.4.44L0.0707171416120.3728-100000@iolanthe.rowland.org>
  0 siblings, 1 reply; 81+ messages in thread
From: david @ 2007-07-17 20:27 UTC (permalink / raw)
  To: Alan Stern
  Cc: LKML, Kyle Moffett, Al Boldi, Eric W. Biederman, Pavel Machek,
	Huang, Ying, Andrew Morton, pm list, Jeremy Maitin-Shepard

On Tue, 17 Jul 2007, Alan Stern wrote:

> On Tue, 17 Jul 2007, Rafael J. Wysocki wrote:
>
>> I'm afraid of one thing, though.
>>
>> If we create a framework without ACPI (well, ACPI needs to be enabled in the
>> kernel anyway for other reasons, like the ability to suspend to RAM) and then
>> it turns out that we have to add some ACPI hooks to it, that might be difficult
>> to do cleanly.
>>
>> Thus, it seems reasonable to think of the ACPI handling in advance.
>
> Absolutely.  This needs to be done in such a way that it will work:
>
> 	On platforms without ACPI;
>
> 	On platforms with ACPI where we do a non-ACPI type of shutdown
> 	to whatever extent it is possible (or perhaps an ACPI-aware
> 	shutdown rather than change to S4);
>
> 	On platforms with ACPI where we do an ACPI-aware transition
> 	to S4.
>
> Rafael, for those of us who aren't thoroughly familiar with all the ins
> and outs of the ACPI spec, could you please summarize a list of the
> ACPI calls needed in the second and third cases above?  Indicate which
> ones need to be done from within the original kernel and which should
> be done from within a kexec'd hibernation kernel.
>

there was just a link on slashdot toa primer on the subject of power 
management

http://www.techarp.com/showarticle.aspx?artno=420

>
> I'm still not entirely clear on how "suspend-to-both" ought to be
> handled.  Presumably it will start off as a normal hibernation.  But
> instead of shutting down, wouldn't the kexec'd kernel return to the
> original kernel?  After all, the original kernel knows about all the
> devices and can put them into a low-power state, while the kexec'd
> kernel might not have sufficient information.

this is what I'm thinking, but the issue here is that the original kernel 
needs to go into suspend-to-ram mode instead of resuming operation. per 
the e-mail I got from Ying last night this should not be hard to 
implement.

> But what about the freezer?  The original reason for using kexec was to
> avoid the need for the freezer.  With no freezer, while the original
> kernel is busy powering down its devices, user tasks will be free to
> carry out I/O -- which will make the memory snapshot inconsistent with
> the on-disk data structures.

no, user tasks just don't get scheduled during shutdown.

the big problem with the freezer isn't stopping anything from happening, 
it's _selectivly_ stopping things.

with kexec you don't need to let any portion of the origional kernel or 
userspace operate so you don't have a problem.

David Lang

^ permalink raw reply	[flat|nested] 81+ messages in thread

end of thread, other threads:[~2007-08-03  3:50 UTC | newest]

Thread overview: 81+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <f29402c6050f9c3ff5d83a59cea2de58%40bga.com>
2007-07-20 19:09 ` Re: Hibernation considerations Milton Miller
2007-07-20 20:23   ` Jeremy Maitin-Shepard
     [not found] <9D7649D18729DE4BB2BD7B494F7FEDC236CF5C@pdsmsx415.ccr.corp.intel.com>
2007-07-24 14:50 ` Alan Stern
     [not found] <Pine.LNX.4.44L0.0707231120380.3545-100000@iolanthe.rowland.org>
2007-07-23 21:55 ` Nigel Cunningham
     [not found] ` <200707240755.01820.nigel@nigel.suspend2.net>
2007-07-23 22:10   ` Rafael J. Wysocki
     [not found] <Pine.LNX.4.64.0707231121220.3828@asgard.lang.hm>
2007-07-23 20:22 ` Alan Stern
2007-07-24 13:26   ` Huang, Ying
     [not found] <Pine.LNX.4.44L0.0707231035150.3545-100000@iolanthe.rowland.org>
2007-07-23 19:01 ` david
     [not found] <200707231311.56398.nigel@nigel.suspend2.net>
2007-07-23 15:23 ` Alan Stern
     [not found] <Pine.LNX.4.44L0.0707221608140.16031-100000@netrider.rowland.org>
2007-07-22 21:54 ` david
     [not found] <Pine.LNX.4.44L0.0707221116060.15224-100000@netrider.rowland.org>
2007-07-22 16:27 ` Miklos Szeredi
2007-07-22 20:09   ` Alan Stern
2007-07-22 22:42 ` Nigel Cunningham
     [not found] ` <200707230842.22121.nigel@nigel.suspend2.net>
2007-07-22 23:09   ` Rafael J. Wysocki
     [not found]   ` <200707230109.23071.rjw@sisk.pl>
2007-07-22 23:18     ` Nigel Cunningham
2007-07-23  0:04   ` Paul Mackerras
     [not found]   ` <18083.61595.217126.824924@cargo.ozlabs.ibm.com>
2007-07-23  3:11     ` Nigel Cunningham
2007-07-23  5:31   ` david
2007-07-23 10:24   ` Miklos Szeredi
2007-07-23 12:08     ` Rafael J. Wysocki
2007-07-23 12:14       ` Miklos Szeredi
     [not found]       ` <E1ICwoE-0004q8-00@dorka.pomaz.szeredi.hu>
2007-07-23 12:27         ` Rafael J. Wysocki
2007-07-23 12:31         ` Oliver Neukum
     [not found]         ` <200707231431.30372.oliver@neukum.org>
2007-07-23 13:08           ` Miklos Szeredi
     [not found]             ` <200707231601.09541.rjw@sisk.pl>
2007-07-23 14:01               ` Miklos Szeredi
2007-07-23 14:01             ` Rafael J. Wysocki
2007-07-23 19:08           ` david
     [not found] <Pine.LNX.4.64.0707212000380.6747@asgard.lang.hm>
2007-07-22 16:00 ` Alan Stern
2007-07-22 21:50   ` david
2007-07-23 15:19     ` Alan Stern
     [not found] <Pine.LNX.4.44L0.0707210956320.8201-100000@netrider.rowland.org>
2007-07-22  3:43 ` david
     [not found] <877ioupxi8.fsf@jbms.ath.cx>
2007-07-20 22:35 ` Alan Stern
2007-07-20 22:43   ` david
2007-07-20 22:48   ` Jeremy Maitin-Shepard
     [not found]   ` <Pine.LNX.4.64.0707201540260.5166@asgard.lang.hm>
2007-07-21  5:21     ` Nigel Cunningham
2007-07-21 14:10     ` Alan Stern
     [not found] <200707202335.05519.oliver@neukum.org>
2007-07-20 22:25 ` Alan Stern
     [not found] ` <Pine.LNX.4.44L0.0707201820050.5241-100000@iolanthe.rowland.org>
2007-07-23 14:23   ` Oliver Neukum
2007-08-01  9:34   ` Pavel Machek
     [not found]   ` <20070801093437.GC4808@ucw.cz>
2007-08-03  3:50     ` david
     [not found] <Pine.LNX.4.44L0.0707201608120.2546-100000@iolanthe.rowland.org>
2007-07-20 21:35 ` Oliver Neukum
     [not found] <200707202203.27849.oliver@neukum.org>
2007-07-20 20:12 ` Alan Stern
     [not found] <fe998950b9d5ad317d5c1f5ff4e21ac9@bga.com>
2007-07-20 19:37 ` Alan Stern
     [not found] <Pine.LNX.4.44L0.0707201408060.2546-100000@iolanthe.rowland.org>
2007-07-20 19:08 ` Milton Miller
2007-07-20 20:03 ` Oliver Neukum
2007-07-17 20:27 david
     [not found] ` <Pine.LNX.4.44L0.0707171416120.3728-100000@iolanthe.rowland.org>
     [not found]   ` <200707172217.01890.rjw@sisk.pl>
     [not found]     ` <87odiag45q.fsf@jbms.ath.cx>
     [not found]       ` <200707151433.34625.rjw@sisk.pl>
     [not found]         ` <200707172320.16279.rjw@sisk.pl>
2007-07-20 14:01           ` Milton Miller
2007-07-20 14:48             ` Huang, Ying
2007-07-20 15:48               ` david
2007-07-22  2:17                 ` Huang, Ying
     [not found]                 ` <1185070634.3517.11.camel@caritas-dev.intel.com>
2007-07-22  2:32                   ` david
2007-07-20 21:34               ` Rafael J. Wysocki
     [not found]           ` <ea7a437ca4038d408ac544bbc3c2434a@bga.com>
     [not found]             ` <200707192228.05136.rjw@sisk.pl>
2007-07-20 16:08               ` Milton Miller
2007-07-20 16:20                 ` Alan Stern
2007-07-20 17:32                   ` Milton Miller
2007-07-20 18:17                     ` Alan Stern
2007-07-20 20:31                   ` david
2007-07-20 21:24                     ` Alan Stern
2007-07-20 21:34                       ` david
2007-07-20 21:37                       ` Jeremy Maitin-Shepard
     [not found]                       ` <Pine.LNX.4.64.0707201428080.5166@asgard.lang.hm>
2007-07-20 22:15                         ` Rafael J. Wysocki
2007-07-20 21:02                 ` Rafael J. Wysocki
2007-07-21 11:44                   ` Miklos Szeredi
     [not found]                   ` <E1ICDNw-0008HC-00@dorka.pomaz.szeredi.hu>
2007-07-21 12:43                     ` Nigel Cunningham
     [not found]                     ` <200707212243.35602.nigel@nigel.suspend2.net>
2007-07-21 13:56                       ` Alan Stern
2007-07-21 16:13                       ` Jeremy Maitin-Shepard
     [not found]                       ` <87lkd9ohtn.fsf@jbms.ath.cx>
2007-07-21 18:12                         ` Miklos Szeredi
2007-07-21 19:20                           ` Rafael J. Wysocki
2007-07-21 22:21                           ` Nigel Cunningham
     [not found]                           ` <200707212120.04645.rjw@sisk.pl>
2007-08-01  9:22                             ` Pavel Machek
     [not found]                             ` <20070801092227.GB4808@ucw.cz>
2007-08-02 17:02                               ` Rafael J. Wysocki
2007-08-02 17:02                               ` Rafael J. Wysocki
2007-07-21 22:16                         ` Nigel Cunningham
2007-07-22 15:26                           ` Alan Stern
2007-08-01  9:19                       ` Pavel Machek
     [not found]               ` <Pine.LNX.4.64.0707191542430.28721@asgard.lang.hm>
     [not found]                 ` <200707201317.58025.rjw@sisk.pl>
2007-07-20 16:56                   ` Milton Miller
     [not found]                   ` <f29402c6050f9c3ff5d83a59cea2de58@bga.com>
2007-07-20 17:31                     ` Jeremy Maitin-Shepard
2007-07-20 21:30                       ` Rafael J. Wysocki
2007-07-20 19:26                     ` david
2007-07-20 21:28                     ` Rafael J. Wysocki
2007-07-20 21:33                       ` Jeremy Maitin-Shepard
     [not found]                       ` <87ejj2pxoc.fsf@jbms.ath.cx>
2007-07-20 22:19                         ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox