lkml.org 
[lkml]   [2004]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Resume only part of device tree?
From
Date
Hi.

My implementation saved the image in two parts. 'Pageset 2' contains the
LRU pages (active & inactive lists). 'Pageset 1' contains all other data
to be saved. At resume time, I read pageset 1 and copy the original
kernel data back. Then I want to resume the storage devices and read
pageset 2 before resuming all devices and waking everything else up. It
would also be good to not resume all devices when writing the state to
the swap partition, but I have other means of ensuring the consistency
of the image that mean I'm not so worried then.

Regards,

Nigel

On Thu, 2004-03-04 at 11:40, Benjamin Herrenschmidt wrote:
> On Thu, 2004-03-04 at 07:03, Nigel Cunningham wrote:
> > Hi all.
> >
> > Is there any existing code in the device model that supports resuming a
> > part of the device tree? For Suspend2, I'm wanting to resume storage
> > devices (and their parents) part way through resuming, and other drivers
> > later.
>
> What is your exact goal ? Not resuming all devices when writing the
> state to the swap partition ?
>
> You really need to resume it all at this point. However, the optimisation
> that can be done is for some drivers to not put the HW to sleep on a
> swsusp transition, only freeze the state. I did something like that in
> IDE though that doesn't always work well due our "state" paremeter passed
> down to drivers not beeing consistent.
>
> Ben.
>
--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:1.764 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site