Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-24 Thread Rafael J. Wysocki
On Tuesday, 24 July 2007 16:00, Huang, Ying wrote: > >From: Rafael J. Wysocki [mailto:[EMAIL PROTECTED] > >This is not the point. There are memory regions that you should not > _restore_, > >because that will cause harm. > > > >> On x86_64, there is another usage of nosave during processing E820

RE: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-24 Thread Huang, Ying
>From: Rafael J. Wysocki [mailto:[EMAIL PROTECTED] >This is not the point. There are memory regions that you should not _restore_, >because that will cause harm. > >> On x86_64, there is another usage of nosave during processing E820 >> memory map. But I don't know why the memory region other

RE: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-24 Thread Huang, Ying
From: Rafael J. Wysocki [mailto:[EMAIL PROTECTED] This is not the point. There are memory regions that you should not _restore_, because that will cause harm. On x86_64, there is another usage of nosave during processing E820 memory map. But I don't know why the memory region other than

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-24 Thread Rafael J. Wysocki
On Tuesday, 24 July 2007 16:00, Huang, Ying wrote: From: Rafael J. Wysocki [mailto:[EMAIL PROTECTED] This is not the point. There are memory regions that you should not _restore_, because that will cause harm. On x86_64, there is another usage of nosave during processing E820 memory

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-17 Thread david
On Tue, 17 Jul 2007, Rafael J. Wysocki wrote: On Tuesday, 17 July 2007 14:48, Huang, Ying wrote: On Tue, 2007-07-17 at 01:13 -0700, [EMAIL PROTECTED] wrote: however, since the resume designed for ACPI won't work would the following approach work 1. boot one kernel 2. setup a kexec the same

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-17 Thread Rafael J. Wysocki
On Tuesday, 17 July 2007 14:48, Huang, Ying wrote: > On Tue, 2007-07-17 at 01:13 -0700, [EMAIL PROTECTED] wrote: > > however, since the resume designed for ACPI won't work would the following > > approach work > > > > 1. boot one kernel > > 2. setup a kexec the same way you would for hibernate >

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-17 Thread Huang, Ying
On Tue, 2007-07-17 at 01:13 -0700, [EMAIL PROTECTED] wrote: > however, since the resume designed for ACPI won't work would the following > approach work > > 1. boot one kernel > 2. setup a kexec the same way you would for hibernate > 3. kexec to the new kernel > 4. overwrite the memory of the

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-17 Thread Rafael J. Wysocki
On Tuesday, 17 July 2007 10:13, [EMAIL PROTECTED] wrote: > Ying, as the kexec guru in this thread I have a question for you about how > kexec works (and possibly where you are going with this) > > for the power-off hibernate with ACPI disabled the hibernation seems > fairly straightforward

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-17 Thread Rafael J. Wysocki
On Tuesday, 17 July 2007 06:18, [EMAIL PROTECTED] wrote: > On Mon, 16 Jul 2007, Rafael J. Wysocki wrote: > > > On Monday, 16 July 2007 16:42, Huang, Ying wrote: > >> On Mon, 2007-07-16 at 14:17 +0200, Rafael J. Wysocki wrote: > is this a matter of running some test to find out, or is this a

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-17 Thread david
Ying, as the kexec guru in this thread I have a question for you about how kexec works (and possibly where you are going with this) for the power-off hibernate with ACPI disabled the hibernation seems fairly straightforward (although there are still some missing pieces) however, since the

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-17 Thread david
Ying, as the kexec guru in this thread I have a question for you about how kexec works (and possibly where you are going with this) for the power-off hibernate with ACPI disabled the hibernation seems fairly straightforward (although there are still some missing pieces) however, since the

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-17 Thread Rafael J. Wysocki
On Tuesday, 17 July 2007 06:18, [EMAIL PROTECTED] wrote: On Mon, 16 Jul 2007, Rafael J. Wysocki wrote: On Monday, 16 July 2007 16:42, Huang, Ying wrote: On Mon, 2007-07-16 at 14:17 +0200, Rafael J. Wysocki wrote: is this a matter of running some test to find out, or is this a question

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-17 Thread Rafael J. Wysocki
On Tuesday, 17 July 2007 10:13, [EMAIL PROTECTED] wrote: Ying, as the kexec guru in this thread I have a question for you about how kexec works (and possibly where you are going with this) for the power-off hibernate with ACPI disabled the hibernation seems fairly straightforward (although

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-17 Thread Huang, Ying
On Tue, 2007-07-17 at 01:13 -0700, [EMAIL PROTECTED] wrote: however, since the resume designed for ACPI won't work would the following approach work 1. boot one kernel 2. setup a kexec the same way you would for hibernate 3. kexec to the new kernel 4. overwrite the memory of the first

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-17 Thread Rafael J. Wysocki
On Tuesday, 17 July 2007 14:48, Huang, Ying wrote: On Tue, 2007-07-17 at 01:13 -0700, [EMAIL PROTECTED] wrote: however, since the resume designed for ACPI won't work would the following approach work 1. boot one kernel 2. setup a kexec the same way you would for hibernate 3. kexec

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-17 Thread david
On Tue, 17 Jul 2007, Rafael J. Wysocki wrote: On Tuesday, 17 July 2007 14:48, Huang, Ying wrote: On Tue, 2007-07-17 at 01:13 -0700, [EMAIL PROTECTED] wrote: however, since the resume designed for ACPI won't work would the following approach work 1. boot one kernel 2. setup a kexec the same

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-16 Thread david
On Mon, 16 Jul 2007, Rafael J. Wysocki wrote: On Monday, 16 July 2007 16:42, Huang, Ying wrote: On Mon, 2007-07-16 at 14:17 +0200, Rafael J. Wysocki wrote: is this a matter of running some test to find out, or is this a question for the kexec implemantors? Actually, I'd like someone to

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-16 Thread Rafael J. Wysocki
On Monday, 16 July 2007 16:42, Huang, Ying wrote: > On Mon, 2007-07-16 at 14:17 +0200, Rafael J. Wysocki wrote: > > > is this a matter of running some test to find out, or is this a question > > > for the kexec implemantors? > > > > Actually, I'd like someone to tell me. ;-) > > > > I've

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-16 Thread Huang, Ying
On Mon, 2007-07-16 at 14:17 +0200, Rafael J. Wysocki wrote: > > is this a matter of running some test to find out, or is this a question > > for the kexec implemantors? > > Actually, I'd like someone to tell me. ;-) > > I've browsed the kexec code, but haven't found anything related to the

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-16 Thread Rafael J. Wysocki
On Monday, 16 July 2007 01:22, [EMAIL PROTECTED] wrote: > On Mon, 16 Jul 2007, Rafael J. Wysocki wrote: > > > On Sunday, 15 July 2007 21:23, [EMAIL PROTECTED] wrote: > >> On Sun, 15 Jul 2007, Rafael J. Wysocki wrote: > >> > >> I think this is far more complicated then it needs to be. > >>

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-16 Thread Rafael J. Wysocki
On Monday, 16 July 2007 01:22, [EMAIL PROTECTED] wrote: On Mon, 16 Jul 2007, Rafael J. Wysocki wrote: On Sunday, 15 July 2007 21:23, [EMAIL PROTECTED] wrote: On Sun, 15 Jul 2007, Rafael J. Wysocki wrote: I think this is far more complicated then it needs to be. it sounds like it

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-16 Thread Huang, Ying
On Mon, 2007-07-16 at 14:17 +0200, Rafael J. Wysocki wrote: is this a matter of running some test to find out, or is this a question for the kexec implemantors? Actually, I'd like someone to tell me. ;-) I've browsed the kexec code, but haven't found anything related to the devices in

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-16 Thread Rafael J. Wysocki
On Monday, 16 July 2007 16:42, Huang, Ying wrote: On Mon, 2007-07-16 at 14:17 +0200, Rafael J. Wysocki wrote: is this a matter of running some test to find out, or is this a question for the kexec implemantors? Actually, I'd like someone to tell me. ;-) I've browsed the kexec

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-16 Thread david
On Mon, 16 Jul 2007, Rafael J. Wysocki wrote: On Monday, 16 July 2007 16:42, Huang, Ying wrote: On Mon, 2007-07-16 at 14:17 +0200, Rafael J. Wysocki wrote: is this a matter of running some test to find out, or is this a question for the kexec implemantors? Actually, I'd like someone to

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread david
On Mon, 16 Jul 2007, Rafael J. Wysocki wrote: On Sunday, 15 July 2007 21:33, [EMAIL PROTECTED] wrote: On Sun, 15 Jul 2007, Rafael J. Wysocki wrote: On Saturday, 14 July 2007 23:34, [EMAIL PROTECTED] wrote: On Sat, 14 Jul 2007, Rafael J. Wysocki wrote: On Saturday, 14 July 2007 09:51,

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread david
On Mon, 16 Jul 2007, Rafael J. Wysocki wrote: On Sunday, 15 July 2007 21:23, [EMAIL PROTECTED] wrote: On Sun, 15 Jul 2007, Rafael J. Wysocki wrote: I think this is far more complicated then it needs to be. it sounds like it should be possible to do the following 1. figure out what pages

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread Rafael J. Wysocki
On Sunday, 15 July 2007 21:33, [EMAIL PROTECTED] wrote: > On Sun, 15 Jul 2007, Rafael J. Wysocki wrote: > > > On Saturday, 14 July 2007 23:34, [EMAIL PROTECTED] wrote: > >> On Sat, 14 Jul 2007, Rafael J. Wysocki wrote: > >> > >>> On Saturday, 14 July 2007 09:51, [EMAIL PROTECTED] wrote: > On

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread Rafael J. Wysocki
On Sunday, 15 July 2007 21:23, [EMAIL PROTECTED] wrote: > On Sun, 15 Jul 2007, Rafael J. Wysocki wrote: > > I think this is far more complicated then it needs to be. > > it sounds like it should be possible to do the following > > 1. figure out what pages should be backed

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread david
On Sun, 15 Jul 2007, Rafael J. Wysocki wrote: On Saturday, 14 July 2007 23:34, [EMAIL PROTECTED] wrote: On Sat, 14 Jul 2007, Rafael J. Wysocki wrote: On Saturday, 14 July 2007 09:51, [EMAIL PROTECTED] wrote: On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: Ok, now we need a data channel from

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread david
On Sun, 15 Jul 2007, Rafael J. Wysocki wrote: I think this is far more complicated then it needs to be. it sounds like it should be possible to do the following 1. figure out what pages should be backed up (creating a data structure to hold them) That should be done after step 2, because

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread Rafael J. Wysocki
On Sunday, 15 July 2007 11:30, Huang, Ying wrote: > On Sat, 2007-07-14 at 21:16 +0200, Rafael J. Wysocki wrote: > > > The devices should be quiesced and the state of devices should be saved > > > in kexec_jump, before relocate_kernel is called. This needs the > > > implementation of device

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread Rafael J. Wysocki
On Saturday, 14 July 2007 23:34, [EMAIL PROTECTED] wrote: > On Sat, 14 Jul 2007, Rafael J. Wysocki wrote: > > > On Saturday, 14 July 2007 09:51, [EMAIL PROTECTED] wrote: > >> On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: > >> > Ok, now we need a data channel from the old kernel to the

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread Rafael J. Wysocki
On Saturday, 14 July 2007 23:13, [EMAIL PROTECTED] wrote: > On Sat, 14 Jul 2007, Rafael J. Wysocki wrote: > > > On Saturday, 14 July 2007 22:34, [EMAIL PROTECTED] wrote: > >> in the past, Rafael J. Wysocki wrote: > >> > >>> BTW, please read this message and tell me what you think: > >>> > >>>

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread Huang, Ying
On Sat, 2007-07-14 at 21:16 +0200, Rafael J. Wysocki wrote: > > The devices should be quiesced and the state of devices should be saved > > in kexec_jump, before relocate_kernel is called. This needs the > > implementation of device hibernating as you mentioned before. > > Hmm, at which point

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread Huang, Ying
On Sat, 2007-07-14 at 21:16 +0200, Rafael J. Wysocki wrote: The devices should be quiesced and the state of devices should be saved in kexec_jump, before relocate_kernel is called. This needs the implementation of device hibernating as you mentioned before. Hmm, at which point devices are

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread Rafael J. Wysocki
On Saturday, 14 July 2007 23:13, [EMAIL PROTECTED] wrote: On Sat, 14 Jul 2007, Rafael J. Wysocki wrote: On Saturday, 14 July 2007 22:34, [EMAIL PROTECTED] wrote: in the past, Rafael J. Wysocki wrote: BTW, please read this message and tell me what you think:

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread Rafael J. Wysocki
On Saturday, 14 July 2007 23:34, [EMAIL PROTECTED] wrote: On Sat, 14 Jul 2007, Rafael J. Wysocki wrote: On Saturday, 14 July 2007 09:51, [EMAIL PROTECTED] wrote: On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: Ok, now we need a data channel from the old kernel to the hibernate kernel,

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread Rafael J. Wysocki
On Sunday, 15 July 2007 11:30, Huang, Ying wrote: On Sat, 2007-07-14 at 21:16 +0200, Rafael J. Wysocki wrote: The devices should be quiesced and the state of devices should be saved in kexec_jump, before relocate_kernel is called. This needs the implementation of device hibernating as

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread david
On Sun, 15 Jul 2007, Rafael J. Wysocki wrote: I think this is far more complicated then it needs to be. it sounds like it should be possible to do the following 1. figure out what pages should be backed up (creating a data structure to hold them) That should be done after step 2, because

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread david
On Sun, 15 Jul 2007, Rafael J. Wysocki wrote: On Saturday, 14 July 2007 23:34, [EMAIL PROTECTED] wrote: On Sat, 14 Jul 2007, Rafael J. Wysocki wrote: On Saturday, 14 July 2007 09:51, [EMAIL PROTECTED] wrote: On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: Ok, now we need a data channel from

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread Rafael J. Wysocki
On Sunday, 15 July 2007 21:23, [EMAIL PROTECTED] wrote: On Sun, 15 Jul 2007, Rafael J. Wysocki wrote: I think this is far more complicated then it needs to be. it sounds like it should be possible to do the following 1. figure out what pages should be backed up (creating a data

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread Rafael J. Wysocki
On Sunday, 15 July 2007 21:33, [EMAIL PROTECTED] wrote: On Sun, 15 Jul 2007, Rafael J. Wysocki wrote: On Saturday, 14 July 2007 23:34, [EMAIL PROTECTED] wrote: On Sat, 14 Jul 2007, Rafael J. Wysocki wrote: On Saturday, 14 July 2007 09:51, [EMAIL PROTECTED] wrote: On Fri, 13 Jul 2007,

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread david
On Mon, 16 Jul 2007, Rafael J. Wysocki wrote: On Sunday, 15 July 2007 21:23, [EMAIL PROTECTED] wrote: On Sun, 15 Jul 2007, Rafael J. Wysocki wrote: I think this is far more complicated then it needs to be. it sounds like it should be possible to do the following 1. figure out what pages

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-15 Thread david
On Mon, 16 Jul 2007, Rafael J. Wysocki wrote: On Sunday, 15 July 2007 21:33, [EMAIL PROTECTED] wrote: On Sun, 15 Jul 2007, Rafael J. Wysocki wrote: On Saturday, 14 July 2007 23:34, [EMAIL PROTECTED] wrote: On Sat, 14 Jul 2007, Rafael J. Wysocki wrote: On Saturday, 14 July 2007 09:51,

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread david
On Sat, 14 Jul 2007, Rafael J. Wysocki wrote: On Saturday, 14 July 2007 09:51, [EMAIL PROTECTED] wrote: On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: Ok, now we need a data channel from the old kernel to the hibernate kernel, to the restore kernel. and the messier the memory layout the

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread david
On Sat, 14 Jul 2007, Rafael J. Wysocki wrote: On Saturday, 14 July 2007 22:34, [EMAIL PROTECTED] wrote: in the past, Rafael J. Wysocki wrote: BTW, please read this message and tell me what you think: http://lkml.org/lkml/2007/7/13/265 Greetings, Rafael since I've deleted this message

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread Rafael J. Wysocki
On Saturday, 14 July 2007 22:34, [EMAIL PROTECTED] wrote: > in the past, Rafael J. Wysocki wrote: > > > BTW, please read this message and tell me what you think: > > > > http://lkml.org/lkml/2007/7/13/265 > > > > Greetings, > > Rafael > > > > > > > > since I've deleted this message here's the

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread david
in the past, Rafael J. Wysocki wrote: BTW, please read this message and tell me what you think: http://lkml.org/lkml/2007/7/13/265 Greetings, Rafael since I've deleted this message here's the relavent portion of it Okay, I have thought it through and I think that, as an initial step,

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread Rafael J. Wysocki
On Saturday, 14 July 2007 09:51, [EMAIL PROTECTED] wrote: > On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: > > >> Ok, now we need a data channel from the old kernel to the hibernate > >> kernel, to the restore kernel. and the messier the memory layout the > >> larger this data channel needs to be

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread Rafael J. Wysocki
On Saturday, 14 July 2007 12:55, Huang, Ying wrote: > On Sat, 2007-07-14 at 11:59 +0200, Rafael J. Wysocki wrote: > > > Hibernating process: > > > > > > 1. Normal kernel running > > > 2. Hibernating is triggered, sys_kexec_load is used to load > > > hibernating kernel and initramfs into

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread Huang, Ying
On Sat, 2007-07-14 at 11:59 +0200, Rafael J. Wysocki wrote: > > Hibernating process: > > > > 1. Normal kernel running > > 2. Hibernating is triggered, sys_kexec_load is used to load > > hibernating kernel and initramfs into memory. Then > > sys_reboot(LINUX_REBOOT_CMD_KSPAWN) is

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread Rafael J. Wysocki
On Saturday, 14 July 2007 07:48, Huang, Ying wrote: > On Fri, 2007-07-13 at 10:43 -0600, Eric W. Biederman wrote: > > > Why a assembly stub is necessary? Is it not sufficient that just > > > continue to complete a normal boot (hot add the reset of memory) or load > > > the hibernated kernel

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread Rafael J. Wysocki
On Saturday, 14 July 2007 10:33, [EMAIL PROTECTED] wrote: > by the way, a data point on kernel sizes > > -rw-r--r-- 1 root root 864648 Jul 14 00:53 vmlinuz.2.6.22.1.hibernate > -rw-r--r-- 1 root root 659496 Jul 14 01:17 > vmlinuz.2.6.22.1.hibernate.stripped > -rw-r--r-- 1 root root 3948168 Jul

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread david
by the way, a data point on kernel sizes -rw-r--r-- 1 root root 864648 Jul 14 00:53 vmlinuz.2.6.22.1.hibernate -rw-r--r-- 1 root root 659496 Jul 14 01:17 vmlinuz.2.6.22.1.hibernate.stripped -rw-r--r-- 1 root root 3948168 Jul 14 01:10 vmlinuz.2.6.22.1.running the running one matches the config

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread david
On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: Ok, now we need a data channel from the old kernel to the hibernate kernel, to the restore kernel. and the messier the memory layout the larger this data channel needs to be (hmm, what's the status on the memory defrag patches being proposed?) if

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread david
On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: remember release early, release often (with something that functions) fo rthe current stage where we are trying to make things work don't worry about packaging everything tight with initrd and re-useing partitions or kernel images. once everything

Re: [linux-pm] Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread david
On Fri, 13 Jul 2007, Alan Stern wrote: On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: I missed this discussion. is this idea to suspend, write to disk, but leave things in ram so that if you wakeup soon enough you have everything for ram, but if you don't and the battery dies you can restore

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread Al Boldi
Huang, Ying wrote: > > Hibernating process: > > 1. Normal kernel running > 2. Hibernating is triggered, sys_kexec_load is used to load > hibernating kernel and initramfs into memory. Then > sys_reboot(LINUX_REBOOT_CMD_KSPAWN) is invoked. > 3. In sys_reboot, kexec_jump is called to

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread Al Boldi
Huang, Ying wrote: Hibernating process: 1. Normal kernel running 2. Hibernating is triggered, sys_kexec_load is used to load hibernating kernel and initramfs into memory. Then sys_reboot(LINUX_REBOOT_CMD_KSPAWN) is invoked. 3. In sys_reboot, kexec_jump is called to save

Re: [linux-pm] Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread david
On Fri, 13 Jul 2007, Alan Stern wrote: On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: I missed this discussion. is this idea to suspend, write to disk, but leave things in ram so that if you wakeup soon enough you have everything for ram, but if you don't and the battery dies you can restore

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread david
On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: remember release early, release often (with something that functions) fo rthe current stage where we are trying to make things work don't worry about packaging everything tight with initrd and re-useing partitions or kernel images. once everything

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread david
On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: Ok, now we need a data channel from the old kernel to the hibernate kernel, to the restore kernel. and the messier the memory layout the larger this data channel needs to be (hmm, what's the status on the memory defrag patches being proposed?) if

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread david
by the way, a data point on kernel sizes -rw-r--r-- 1 root root 864648 Jul 14 00:53 vmlinuz.2.6.22.1.hibernate -rw-r--r-- 1 root root 659496 Jul 14 01:17 vmlinuz.2.6.22.1.hibernate.stripped -rw-r--r-- 1 root root 3948168 Jul 14 01:10 vmlinuz.2.6.22.1.running the running one matches the config

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread Rafael J. Wysocki
On Saturday, 14 July 2007 10:33, [EMAIL PROTECTED] wrote: by the way, a data point on kernel sizes -rw-r--r-- 1 root root 864648 Jul 14 00:53 vmlinuz.2.6.22.1.hibernate -rw-r--r-- 1 root root 659496 Jul 14 01:17 vmlinuz.2.6.22.1.hibernate.stripped -rw-r--r-- 1 root root 3948168 Jul 14

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread Rafael J. Wysocki
On Saturday, 14 July 2007 07:48, Huang, Ying wrote: On Fri, 2007-07-13 at 10:43 -0600, Eric W. Biederman wrote: Why a assembly stub is necessary? Is it not sufficient that just continue to complete a normal boot (hot add the reset of memory) or load the hibernated kernel (hibernated

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread Huang, Ying
On Sat, 2007-07-14 at 11:59 +0200, Rafael J. Wysocki wrote: Hibernating process: 1. Normal kernel running 2. Hibernating is triggered, sys_kexec_load is used to load hibernating kernel and initramfs into memory. Then sys_reboot(LINUX_REBOOT_CMD_KSPAWN) is invoked. 3.

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread Rafael J. Wysocki
On Saturday, 14 July 2007 12:55, Huang, Ying wrote: On Sat, 2007-07-14 at 11:59 +0200, Rafael J. Wysocki wrote: Hibernating process: 1. Normal kernel running 2. Hibernating is triggered, sys_kexec_load is used to load hibernating kernel and initramfs into memory. Then

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread Rafael J. Wysocki
On Saturday, 14 July 2007 09:51, [EMAIL PROTECTED] wrote: On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: Ok, now we need a data channel from the old kernel to the hibernate kernel, to the restore kernel. and the messier the memory layout the larger this data channel needs to be (hmm,

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread david
in the past, Rafael J. Wysocki wrote: BTW, please read this message and tell me what you think: http://lkml.org/lkml/2007/7/13/265 Greetings, Rafael since I've deleted this message here's the relavent portion of it Okay, I have thought it through and I think that, as an initial step,

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread Rafael J. Wysocki
On Saturday, 14 July 2007 22:34, [EMAIL PROTECTED] wrote: in the past, Rafael J. Wysocki wrote: BTW, please read this message and tell me what you think: http://lkml.org/lkml/2007/7/13/265 Greetings, Rafael since I've deleted this message here's the relavent portion of it

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread david
On Sat, 14 Jul 2007, Rafael J. Wysocki wrote: On Saturday, 14 July 2007 22:34, [EMAIL PROTECTED] wrote: in the past, Rafael J. Wysocki wrote: BTW, please read this message and tell me what you think: http://lkml.org/lkml/2007/7/13/265 Greetings, Rafael since I've deleted this message

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-14 Thread david
On Sat, 14 Jul 2007, Rafael J. Wysocki wrote: On Saturday, 14 July 2007 09:51, [EMAIL PROTECTED] wrote: On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: Ok, now we need a data channel from the old kernel to the hibernate kernel, to the restore kernel. and the messier the memory layout the

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Huang, Ying
On Fri, 2007-07-13 at 10:43 -0600, Eric W. Biederman wrote: > > Why a assembly stub is necessary? Is it not sufficient that just > > continue to complete a normal boot (hot add the reset of memory) or load > > the hibernated kernel (hibernated image) and jump to it? > > I was thinking the

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Rafael J. Wysocki
On Friday, 13 July 2007 18:48, Jeremy Maitin-Shepard wrote: > "Rafael J. Wysocki" <[EMAIL PROTECTED]> writes: > > [snip] > > > Okay, I have thought it through and I think that, as an initial step, we > > can do > > something like this: > > > - preload the image-saving kernel before hibernation

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Rafael J. Wysocki
On Friday, 13 July 2007 20:15, Alan Stern wrote: > On Fri, 13 Jul 2007, Eric W. Biederman wrote: > > > > I doubt that re-probing devices will work. The probe routine won't > > > expect there to be any registered children, so it will try to > > > re-register them. > > > > So really unregister

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Rafael J. Wysocki
On Friday, 13 July 2007 17:50, Alan Stern wrote: > On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: > > > Okay, I have thought it through and I think that, as an initial step, we > > can do > > something like this: > > > > - preload the image-saving kernel before hibernation > > - in the

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Alan Stern
On Fri, 13 Jul 2007, Eric W. Biederman wrote: > > I doubt that re-probing devices will work. The probe routine won't > > expect there to be any registered children, so it will try to > > re-register them. > > So really unregister the children. All we really need to do is disassociate > the

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Eric W. Biederman
Alan Stern <[EMAIL PROTECTED]> writes: > On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: > >> Okay, I have thought it through and I think that, as an initial step, we can > do >> something like this: >> >> - preload the image-saving kernel before hibernation >> - in the hibernation code path

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Jeremy Maitin-Shepard
"Rafael J. Wysocki" <[EMAIL PROTECTED]> writes: [snip] > Okay, I have thought it through and I think that, as an initial step, we can > do > something like this: > - preload the image-saving kernel before hibernation > - in the hibernation code path replace device_suspend() with the shutting

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Eric W. Biederman
"Huang, Ying" <[EMAIL PROTECTED]> writes: > On Thu, 2007-07-12 at 10:32 -0600, Eric W. Biederman wrote: >> > >> > 1. Separate device suspend from device hibernate. >> >> Actually in some very practical sense we already have two copies of >> this in the kernel. device_shutdown and the

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Alan Stern
On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: > Okay, I have thought it through and I think that, as an initial step, we can > do > something like this: > > - preload the image-saving kernel before hibernation > - in the hibernation code path replace device_suspend() with the shutting > down

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Rafael J. Wysocki
On Friday, 13 July 2007 17:28, Al Boldi wrote: > Rafael J. Wysocki wrote: > > We have quite an efficient restoration code in the kernel right now. It's > > able to upload big images (something like total RAM minus the size of the > > boot kernel, initrd and, optionally, the resume application),

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Rafael J. Wysocki
On Friday, 13 July 2007 17:12, Jeremy Maitin-Shepard wrote: > "Rafael J. Wysocki" <[EMAIL PROTECTED]> writes: > > [snip] > > > Not necessarily. If we don't put devices into low power states before > > creating > > the image, that should work just fine (quiesce devices, create the image or > >

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Al Boldi
Rafael J. Wysocki wrote: > On Friday, 13 July 2007 19:32, Huang, Ying wrote: > > On Thu, 2007-07-12 at 20:06 -0700, [EMAIL PROTECTED] wrote: > > > >> I agree, a stipped down hibernate kernel can be very small, not > > > >> allocating this memory until it's needed is a step for the final > > > >>

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Al Boldi
Rafael J. Wysocki wrote: > We have quite an efficient restoration code in the kernel right now. It's > able to upload big images (something like total RAM minus the size of the > boot kernel, initrd and, optionally, the resume application), which is > much more than we're able to save. :-) > > It

Re: [linux-pm] Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Rafael J. Wysocki
On Friday, 13 July 2007 16:37, Alan Stern wrote: > On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: > > > > I missed this discussion. is this idea to suspend, write to disk, but > > > leave things in ram so that if you wakeup soon enough you have everything > > > for ram, but if you don't and the

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Huang, Ying
On Thu, 2007-07-12 at 10:54 +0200, Pavel Machek wrote: > > Sorry, I should have re-checked the mail before sending out. > > Were your patches enough to get hibernation working? I got kexec to > work here, so I guess I'm one step closer... Yes, it is just the first step. There are still many

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Huang, Ying
On Thu, 2007-07-12 at 10:32 -0600, Eric W. Biederman wrote: > > > > 1. Separate device suspend from device hibernate. > > Actually in some very practical sense we already have two copies of > this in the kernel. device_shutdown and the hotunplug/module > remove code. So it is should be mostly a

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Jeremy Maitin-Shepard
"Rafael J. Wysocki" <[EMAIL PROTECTED]> writes: [snip] > Not necessarily. If we don't put devices into low power states before > creating > the image, that should work just fine (quiesce devices, create the image or > kexec the new kernel, reprobe devices, save the image, suspend to RAM, >

Re: [linux-pm] Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Alan Stern
On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: > > I missed this discussion. is this idea to suspend, write to disk, but > > leave things in ram so that if you wakeup soon enough you have everything > > for ram, but if you don't and the battery dies you can restore from disk? > > > > if so I

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Rafael J. Wysocki
On Friday, 13 July 2007 19:32, Huang, Ying wrote: > On Thu, 2007-07-12 at 20:06 -0700, [EMAIL PROTECTED] wrote: > > >> I agree, a stipped down hibernate kernel can be very small, not > > >> allocating > > >> this memory until it's needed is a step for the final polishing. > > > > > > I'm not sure

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Rafael J. Wysocki
On Friday, 13 July 2007 11:38, [EMAIL PROTECTED] wrote: > On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: > > > On Friday, 13 July 2007 05:06, [EMAIL PROTECTED] wrote: > >> On Thu, 12 Jul 2007, Rafael J. Wysocki wrote: > >> > >>> On Thursday, 12 July 2007 20:57, [EMAIL PROTECTED] wrote: > On

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Rafael J. Wysocki
EMAIL PROTECTED]>, > > "Huang, Ying" <[EMAIL PROTECTED]>, > > Andrew Morton <[EMAIL PROTECTED]>, Pavel Machek <[EMAIL PROTECTED]>, > > [EMAIL PROTECTED], linux-kernel@vger.kernel.org, > > [EMAIL PROTECTED] > > Subject: Re: [P

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread david
On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: On Friday, 13 July 2007 05:06, [EMAIL PROTECTED] wrote: On Thu, 12 Jul 2007, Rafael J. Wysocki wrote: On Thursday, 12 July 2007 20:57, [EMAIL PROTECTED] wrote: On Thu, 12 Jul 2007, Rafael J. Wysocki wrote: 2. Do not reserve memory for kexec

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Huang, Ying
On Thu, 2007-07-12 at 20:06 -0700, [EMAIL PROTECTED] wrote: > >> I agree, a stipped down hibernate kernel can be very small, not allocating > >> this memory until it's needed is a step for the final polishing. > > > > I'm not sure if I agree with that. In any case, having to use two different > >

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread david
OTECTED]>, Pavel Machek <[EMAIL PROTECTED]>, [EMAIL PROTECTED], linux-kernel@vger.kernel.org, [EMAIL PROTECTED] Subject: Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation On Friday, 13 July 2007 05:12, [EMAIL PROTECTED] wrote: On Thu, 12 Jul 2007, Jeremy Ma

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Rafael J. Wysocki
On Friday, 13 July 2007 05:06, [EMAIL PROTECTED] wrote: > On Thu, 12 Jul 2007, Rafael J. Wysocki wrote: > > > On Thursday, 12 July 2007 20:57, [EMAIL PROTECTED] wrote: > >> On Thu, 12 Jul 2007, Rafael J. Wysocki wrote: > >> > 2. Do not reserve memory for kexec kernel. That is, backup needed

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Rafael J. Wysocki
On Friday, 13 July 2007 05:12, [EMAIL PROTECTED] wrote: > On Thu, 12 Jul 2007, Jeremy Maitin-Shepard wrote: > > > "Rafael J. Wysocki" <[EMAIL PROTECTED]> writes: > > > > [snip] > > > >> There's more to it, though. If devices are suspended, the hibernation > >> kernel > >> will have to resume

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Rafael J. Wysocki
On Friday, 13 July 2007 11:38, [EMAIL PROTECTED] wrote: On Fri, 13 Jul 2007, Rafael J. Wysocki wrote: On Friday, 13 July 2007 05:06, [EMAIL PROTECTED] wrote: On Thu, 12 Jul 2007, Rafael J. Wysocki wrote: On Thursday, 12 July 2007 20:57, [EMAIL PROTECTED] wrote: On Thu, 12 Jul 2007,

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-13 Thread Rafael J. Wysocki
On Friday, 13 July 2007 19:32, Huang, Ying wrote: On Thu, 2007-07-12 at 20:06 -0700, [EMAIL PROTECTED] wrote: I agree, a stipped down hibernate kernel can be very small, not allocating this memory until it's needed is a step for the final polishing. I'm not sure if I agree with

  1   2   3   >