Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-09 Thread Pavel Machek
Hi! Index: linux-2.6.21-rc3/kernel/power/user.c === --- linux-2.6.21-rc3.orig/kernel/power/user.c +++ linux-2.6.21-rc3/kernel/power/user.c @@ -402,9 +402,10 @@ static int snapshot_ioctl(struct inode *

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-09 Thread Rafael J. Wysocki
On Friday, 9 March 2007 23:13, Pavel Machek wrote: Hi! Index: linux-2.6.21-rc3/kernel/power/user.c === --- linux-2.6.21-rc3.orig/kernel/power/user.c +++ linux-2.6.21-rc3/kernel/power/user.c @@ -402,9 +402,10 @@

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-09 Thread Pavel Machek
On Fri 2007-03-09 23:34:00, Rafael J. Wysocki wrote: On Friday, 9 March 2007 23:13, Pavel Machek wrote: Hi! Index: linux-2.6.21-rc3/kernel/power/user.c === --- linux-2.6.21-rc3.orig/kernel/power/user.c +++

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-08 Thread Rafael J. Wysocki
On Wednesday, 7 March 2007 22:07, Pavel Machek wrote: > Hi! > > > Prevent the WARN_ON() in arch/x86_64/kernel/acpi/sleep.c:init_low_mapping() > > from triggering by disabling nonboot CPUs before we finally enter the > > platform > > suspend. > > > > Signed-off-by: Rafael J. Wysocki <[EMAIL

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-08 Thread Pavel Machek
Hi! > Prevent the WARN_ON() in arch/x86_64/kernel/acpi/sleep.c:init_low_mapping() > from triggering by disabling nonboot CPUs before we finally enter the platform > suspend. > > Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> > --- > kernel/power/disk.c |1 + > kernel/power/user.c |

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-08 Thread Rafael J. Wysocki
On Friday, 9 March 2007 02:11, Len Brown wrote: > On Wednesday 07 March 2007 18:13, Rafael J. Wysocki wrote: > > On Wednesday, 7 March 2007 23:49, Andrew Morton wrote: > > > On Wed, 7 Mar 2007 23:14:29 +0100 > > > "Rafael J. Wysocki" <[EMAIL PROTECTED]> wrote: > > > > > > > On Wednesday, 7 March

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-08 Thread Len Brown
On Wednesday 07 March 2007 18:13, Rafael J. Wysocki wrote: > On Wednesday, 7 March 2007 23:49, Andrew Morton wrote: > > On Wed, 7 Mar 2007 23:14:29 +0100 > > "Rafael J. Wysocki" <[EMAIL PROTECTED]> wrote: > > > > > On Wednesday, 7 March 2007 22:16, Andrew Morton wrote: > > > > On Wed, 7 Mar 2007

Re: swsusp: platform notifications not properly undone in case of error

2007-03-08 Thread Rafael J. Wysocki
On Thursday, 8 March 2007 17:41, Pavel Machek wrote: > Hi! > > > Using IPI No-Shortcut mode > swsusp: Resume From Partition /dev/sda1 > PM: Checking swsusp image. > swsusp: Signature found, resuming > PM: Preparing processes for restore. > Stopping tasks ... done.

swsusp: platform notifications not properly undone in case of error

2007-03-08 Thread Pavel Machek
Hi! Using IPI No-Shortcut mode swsusp: Resume From Partition /dev/sda1 PM: Checking swsusp image. swsusp: Signature found, resuming PM: Preparing processes for restore. Stopping tasks ... done. PM: Reading swsusp image. Loading image data pages (125285 pages) ... <3>swsusp: Resume mi

Re: [PATCH 15/20] Move swsusp __pa() dependent code to arch portion

2007-03-08 Thread Pavel Machek
Hi! > > > +int pfn_is_nosave(unsigned long pfn) > > > +{ > > > + unsigned long nosave_begin_pfn = __pa_symbol(&__nosave_begin) >> > > > PAGE_SHIFT; > > > + unsigned long nosave_end_pfn = PAGE_ALIGN(__pa_symbol(&__nosave_end)) > > > >> PAGE_SHIFT; > > > + return (pfn >= nosave_begin_pfn) && (pfn

Re: [PATCH 16/20] swsusp: do not use virt_to_page on kernel data address

2007-03-08 Thread Pavel Machek
Hi! > > > Signed-off-by: Vivek Goyal <[EMAIL PROTECTED]> > > > > > +static int swsusp_header_init(void) > > > +{ > > > + swsusp_header = (struct swsusp_header*) __get_free_page(GFP_KERNEL); > > > + if (!swsusp_header) > > > + panic("Could not allocate memory for swsusp_header\n"); > > >

Re: [PATCH 16/20] swsusp: do not use virt_to_page on kernel data address

2007-03-08 Thread Pavel Machek
Hi! > > > o virt_to_page() call should be used on kernel linear addresses and not > > > on kernel text and data addresses. Swsusp code uses it on kernel data > > > (statically allocated swsusp_header). > > > > > > o Allocate swsusp_header d

swsusp: platform notifications not properly undone in case of error

2007-03-08 Thread Pavel Machek
Hi! Using IPI No-Shortcut mode swsusp: Resume From Partition /dev/sda1 PM: Checking swsusp image. swsusp: Signature found, resuming PM: Preparing processes for restore. Stopping tasks ... done. PM: Reading swsusp image. Loading image data pages (125285 pages) ... 3swsusp: Resume mismatch

Re: swsusp: platform notifications not properly undone in case of error

2007-03-08 Thread Rafael J. Wysocki
On Thursday, 8 March 2007 17:41, Pavel Machek wrote: Hi! Using IPI No-Shortcut mode swsusp: Resume From Partition /dev/sda1 PM: Checking swsusp image. swsusp: Signature found, resuming PM: Preparing processes for restore. Stopping tasks ... done. PM: Reading swsusp image. Loading

Re: [PATCH 16/20] swsusp: do not use virt_to_page on kernel data address

2007-03-08 Thread Pavel Machek
Hi! o virt_to_page() call should be used on kernel linear addresses and not on kernel text and data addresses. Swsusp code uses it on kernel data (statically allocated swsusp_header). o Allocate swsusp_header dynamically so that virt_to_page() can be used safely. o

Re: [PATCH 16/20] swsusp: do not use virt_to_page on kernel data address

2007-03-08 Thread Pavel Machek
Hi! Signed-off-by: Vivek Goyal [EMAIL PROTECTED] +static int swsusp_header_init(void) +{ + swsusp_header = (struct swsusp_header*) __get_free_page(GFP_KERNEL); + if (!swsusp_header) + panic(Could not allocate memory for swsusp_header\n); + return 0; +} +

Re: [PATCH 15/20] Move swsusp __pa() dependent code to arch portion

2007-03-08 Thread Pavel Machek
Hi! +int pfn_is_nosave(unsigned long pfn) +{ + unsigned long nosave_begin_pfn = __pa_symbol(__nosave_begin) PAGE_SHIFT; + unsigned long nosave_end_pfn = PAGE_ALIGN(__pa_symbol(__nosave_end)) PAGE_SHIFT; + return (pfn = nosave_begin_pfn) (pfn nosave_end_pfn); +}

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-08 Thread Len Brown
On Wednesday 07 March 2007 18:13, Rafael J. Wysocki wrote: On Wednesday, 7 March 2007 23:49, Andrew Morton wrote: On Wed, 7 Mar 2007 23:14:29 +0100 Rafael J. Wysocki [EMAIL PROTECTED] wrote: On Wednesday, 7 March 2007 22:16, Andrew Morton wrote: On Wed, 7 Mar 2007 20:44:11 +0100

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-08 Thread Rafael J. Wysocki
On Friday, 9 March 2007 02:11, Len Brown wrote: On Wednesday 07 March 2007 18:13, Rafael J. Wysocki wrote: On Wednesday, 7 March 2007 23:49, Andrew Morton wrote: On Wed, 7 Mar 2007 23:14:29 +0100 Rafael J. Wysocki [EMAIL PROTECTED] wrote: On Wednesday, 7 March 2007 22:16, Andrew

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-08 Thread Pavel Machek
Hi! Prevent the WARN_ON() in arch/x86_64/kernel/acpi/sleep.c:init_low_mapping() from triggering by disabling nonboot CPUs before we finally enter the platform suspend. Signed-off-by: Rafael J. Wysocki [EMAIL PROTECTED] --- kernel/power/disk.c |1 + kernel/power/user.c |2 +- 2

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-08 Thread Rafael J. Wysocki
On Wednesday, 7 March 2007 22:07, Pavel Machek wrote: Hi! Prevent the WARN_ON() in arch/x86_64/kernel/acpi/sleep.c:init_low_mapping() from triggering by disabling nonboot CPUs before we finally enter the platform suspend. Signed-off-by: Rafael J. Wysocki [EMAIL PROTECTED] ---

Re: [PATCH 15/20] Move swsusp __pa() dependent code to arch portion

2007-03-07 Thread Vivek Goyal
On Wed, Mar 07, 2007 at 11:47:40PM +0100, Pavel Machek wrote: > Hi! > > > o __pa() should be used only on kernel linearly mapped virtual addresses > > and not on kernel text and data addresses. > > > > o Hibernation code needs to determine the physical address associated > > with kernel

Re: [PATCH 16/20] swsusp: do not use virt_to_page on kernel data address

2007-03-07 Thread Vivek Goyal
On Wed, Mar 07, 2007 at 11:49:15PM +0100, Pavel Machek wrote: > Hi! > > > o virt_to_page() call should be used on kernel linear addresses and not > > on kernel text and data addresses. Swsusp code uses it on kernel data > > (statically allocated swsusp_head

Re: [PATCH 16/20] swsusp: do not use virt_to_page on kernel data address

2007-03-07 Thread Vivek Goyal
On Wed, Mar 07, 2007 at 11:50:06PM +0100, Pavel Machek wrote: > Hi! > > > o virt_to_page() call should be used on kernel linear addresses and not > > on kernel text and data addresses. Swsusp code uses it on kernel data > > (statically allocated swsusp_head

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-07 Thread Rafael J. Wysocki
On Thursday, 8 March 2007 01:20, Dave Jones wrote: > On Thu, Mar 08, 2007 at 12:13:05AM +0100, Rafael J. Wysocki wrote: > > > > > Well, the WARN_ON() in > arch/x86_64/kernel/acpi/sleep.c:init_low_mapping() > > > > triggers every time an SMP x86_64 box is suspended to disk using the > platform

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-07 Thread Dave Jones
On Thu, Mar 08, 2007 at 12:13:05AM +0100, Rafael J. Wysocki wrote: > > > Well, the WARN_ON() in arch/x86_64/kernel/acpi/sleep.c:init_low_mapping() > > > triggers every time an SMP x86_64 box is suspended to disk using the > > > platform > > > mode (default), which is quite annoying IMHO and

Re: [PATCH 16/20] swsusp: do not use virt_to_page on kernel data address

2007-03-07 Thread Nigel Cunningham
Hi. On Wed, 2007-03-07 at 23:50 +0100, Pavel Machek wrote: > Hi! > > > o virt_to_page() call should be used on kernel linear addresses and not > > on kernel text and data addresses. Swsusp code uses it on kernel data > > (statically allocated swsusp_header). > >

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-07 Thread Rafael J. Wysocki
On Wednesday, 7 March 2007 23:49, Andrew Morton wrote: > On Wed, 7 Mar 2007 23:14:29 +0100 > "Rafael J. Wysocki" <[EMAIL PROTECTED]> wrote: > > > On Wednesday, 7 March 2007 22:16, Andrew Morton wrote: > > > On Wed, 7 Mar 2007 20:44:11 +0100 > > > "Rafael J. Wysocki" <[EMAIL PROTECTED]> wrote: > >

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-07 Thread Rafael J. Wysocki
On Wednesday, 7 March 2007 23:19, Pavel Machek wrote: > Hi! > > > > > Prevent the WARN_ON() in > > > > arch/x86_64/kernel/acpi/sleep.c:init_low_mapping() > > > > from triggering by disabling nonboot CPUs before we finally enter the > > > > platform > > > > suspend. > > > > > > > >

Re: [PATCH 16/20] swsusp: do not use virt_to_page on kernel data address

2007-03-07 Thread Pavel Machek
Hi! > o virt_to_page() call should be used on kernel linear addresses and not > on kernel text and data addresses. Swsusp code uses it on kernel data > (statically allocated swsusp_header). > > o Allocate swsusp_header dynamically so that virt_to_page() can be used > s

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-07 Thread Andrew Morton
On Wed, 7 Mar 2007 23:14:29 +0100 "Rafael J. Wysocki" <[EMAIL PROTECTED]> wrote: > On Wednesday, 7 March 2007 22:16, Andrew Morton wrote: > > On Wed, 7 Mar 2007 20:44:11 +0100 > > "Rafael J. Wysocki" <[EMAIL PROTECTED]> wrote: > > > > > From: Rafael J. Wysocki <[EMAIL PROTECTED]> > > > > > >

Re: [PATCH 16/20] swsusp: do not use virt_to_page on kernel data address

2007-03-07 Thread Pavel Machek
Hi! > o virt_to_page() call should be used on kernel linear addresses and not > on kernel text and data addresses. Swsusp code uses it on kernel data > (statically allocated swsusp_header). > > o Allocate swsusp_header dynamically so that virt_to_page() can be used > s

Re: [PATCH 15/20] Move swsusp __pa() dependent code to arch portion

2007-03-07 Thread Pavel Machek
Hi! > o __pa() should be used only on kernel linearly mapped virtual addresses > and not on kernel text and data addresses. > > o Hibernation code needs to determine the physical address associated > with kernel symbol to mark a section boundary which contains pages which > don't have to

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-07 Thread Pavel Machek
Hi! > > > Prevent the WARN_ON() in > > > arch/x86_64/kernel/acpi/sleep.c:init_low_mapping() > > > from triggering by disabling nonboot CPUs before we finally enter the > > > platform > > > suspend. > > > > > > Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> > > > --- > > >

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-07 Thread Rafael J. Wysocki
On Wednesday, 7 March 2007 22:16, Andrew Morton wrote: > On Wed, 7 Mar 2007 20:44:11 +0100 > "Rafael J. Wysocki" <[EMAIL PROTECTED]> wrote: > > > From: Rafael J. Wysocki <[EMAIL PROTECTED]> > > > > Prevent the WARN_ON() in arch/x86_64/kernel/acpi/sleep.c:init_low_mapping() > > from triggering by

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-07 Thread Andrew Morton
On Wed, 7 Mar 2007 20:44:11 +0100 "Rafael J. Wysocki" <[EMAIL PROTECTED]> wrote: > From: Rafael J. Wysocki <[EMAIL PROTECTED]> > > Prevent the WARN_ON() in arch/x86_64/kernel/acpi/sleep.c:init_low_mapping() > from triggering by disabling nonboot CPUs before we finally enter the platform >

[PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-07 Thread Rafael J. Wysocki
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Prevent the WARN_ON() in arch/x86_64/kernel/acpi/sleep.c:init_low_mapping() from triggering by disabling nonboot CPUs before we finally enter the platform suspend. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> --- kernel/power/disk.c |1 +

[patch 054/101] swsusp: Fix possible oops in userland interface

2007-03-07 Thread Greg KH
From: Stefan Seyfried <[EMAIL PROTECTED]> Fix the Oops occuring when SNAPSHOT_PMOPS or SNAPSHOT_S2RAM ioctl is called on a system without pm_ops defined (eg. a non-ACPI kernel on x86 PC). Signed-off-by: Stefan Seyfried <[EMAIL PROTECTED]> Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]>

[patch 054/101] swsusp: Fix possible oops in userland interface

2007-03-07 Thread Greg KH
From: Stefan Seyfried [EMAIL PROTECTED] Fix the Oops occuring when SNAPSHOT_PMOPS or SNAPSHOT_S2RAM ioctl is called on a system without pm_ops defined (eg. a non-ACPI kernel on x86 PC). Signed-off-by: Stefan Seyfried [EMAIL PROTECTED] Signed-off-by: Rafael J. Wysocki [EMAIL PROTECTED] Acked-by:

[PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-07 Thread Rafael J. Wysocki
From: Rafael J. Wysocki [EMAIL PROTECTED] Prevent the WARN_ON() in arch/x86_64/kernel/acpi/sleep.c:init_low_mapping() from triggering by disabling nonboot CPUs before we finally enter the platform suspend. Signed-off-by: Rafael J. Wysocki [EMAIL PROTECTED] --- kernel/power/disk.c |1 +

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-07 Thread Andrew Morton
On Wed, 7 Mar 2007 20:44:11 +0100 Rafael J. Wysocki [EMAIL PROTECTED] wrote: From: Rafael J. Wysocki [EMAIL PROTECTED] Prevent the WARN_ON() in arch/x86_64/kernel/acpi/sleep.c:init_low_mapping() from triggering by disabling nonboot CPUs before we finally enter the platform suspend.

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-07 Thread Rafael J. Wysocki
On Wednesday, 7 March 2007 22:16, Andrew Morton wrote: On Wed, 7 Mar 2007 20:44:11 +0100 Rafael J. Wysocki [EMAIL PROTECTED] wrote: From: Rafael J. Wysocki [EMAIL PROTECTED] Prevent the WARN_ON() in arch/x86_64/kernel/acpi/sleep.c:init_low_mapping() from triggering by disabling

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-07 Thread Pavel Machek
Hi! Prevent the WARN_ON() in arch/x86_64/kernel/acpi/sleep.c:init_low_mapping() from triggering by disabling nonboot CPUs before we finally enter the platform suspend. Signed-off-by: Rafael J. Wysocki [EMAIL PROTECTED] --- kernel/power/disk.c |1 +

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-07 Thread Andrew Morton
On Wed, 7 Mar 2007 23:14:29 +0100 Rafael J. Wysocki [EMAIL PROTECTED] wrote: On Wednesday, 7 March 2007 22:16, Andrew Morton wrote: On Wed, 7 Mar 2007 20:44:11 +0100 Rafael J. Wysocki [EMAIL PROTECTED] wrote: From: Rafael J. Wysocki [EMAIL PROTECTED] Prevent the WARN_ON() in

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-07 Thread Rafael J. Wysocki
On Wednesday, 7 March 2007 23:49, Andrew Morton wrote: On Wed, 7 Mar 2007 23:14:29 +0100 Rafael J. Wysocki [EMAIL PROTECTED] wrote: On Wednesday, 7 March 2007 22:16, Andrew Morton wrote: On Wed, 7 Mar 2007 20:44:11 +0100 Rafael J. Wysocki [EMAIL PROTECTED] wrote: From: Rafael

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-07 Thread Rafael J. Wysocki
On Wednesday, 7 March 2007 23:19, Pavel Machek wrote: Hi! Prevent the WARN_ON() in arch/x86_64/kernel/acpi/sleep.c:init_low_mapping() from triggering by disabling nonboot CPUs before we finally enter the platform suspend. Signed-off-by: Rafael J. Wysocki [EMAIL

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-07 Thread Dave Jones
On Thu, Mar 08, 2007 at 12:13:05AM +0100, Rafael J. Wysocki wrote: Well, the WARN_ON() in arch/x86_64/kernel/acpi/sleep.c:init_low_mapping() triggers every time an SMP x86_64 box is suspended to disk using the platform mode (default), which is quite annoying IMHO and users think

Re: [PATCH] swsusp: Disable nonboot CPUs before entering platform suspend

2007-03-07 Thread Rafael J. Wysocki
On Thursday, 8 March 2007 01:20, Dave Jones wrote: On Thu, Mar 08, 2007 at 12:13:05AM +0100, Rafael J. Wysocki wrote: Well, the WARN_ON() in arch/x86_64/kernel/acpi/sleep.c:init_low_mapping() triggers every time an SMP x86_64 box is suspended to disk using the platform mode

Re: [PATCH 15/20] Move swsusp __pa() dependent code to arch portion

2007-03-07 Thread Pavel Machek
Hi! o __pa() should be used only on kernel linearly mapped virtual addresses and not on kernel text and data addresses. o Hibernation code needs to determine the physical address associated with kernel symbol to mark a section boundary which contains pages which don't have to be

Re: [PATCH 16/20] swsusp: do not use virt_to_page on kernel data address

2007-03-07 Thread Pavel Machek
Hi! o virt_to_page() call should be used on kernel linear addresses and not on kernel text and data addresses. Swsusp code uses it on kernel data (statically allocated swsusp_header). o Allocate swsusp_header dynamically so that virt_to_page() can be used safely. o I am changing

Re: [PATCH 16/20] swsusp: do not use virt_to_page on kernel data address

2007-03-07 Thread Pavel Machek
Hi! o virt_to_page() call should be used on kernel linear addresses and not on kernel text and data addresses. Swsusp code uses it on kernel data (statically allocated swsusp_header). o Allocate swsusp_header dynamically so that virt_to_page() can be used safely. o I am changing

Re: [PATCH 16/20] swsusp: do not use virt_to_page on kernel data address

2007-03-07 Thread Nigel Cunningham
Hi. On Wed, 2007-03-07 at 23:50 +0100, Pavel Machek wrote: Hi! o virt_to_page() call should be used on kernel linear addresses and not on kernel text and data addresses. Swsusp code uses it on kernel data (statically allocated swsusp_header). o Allocate swsusp_header dynamically

Re: [PATCH 16/20] swsusp: do not use virt_to_page on kernel data address

2007-03-07 Thread Vivek Goyal
On Wed, Mar 07, 2007 at 11:50:06PM +0100, Pavel Machek wrote: Hi! o virt_to_page() call should be used on kernel linear addresses and not on kernel text and data addresses. Swsusp code uses it on kernel data (statically allocated swsusp_header). o Allocate swsusp_header

Re: [PATCH 16/20] swsusp: do not use virt_to_page on kernel data address

2007-03-07 Thread Vivek Goyal
On Wed, Mar 07, 2007 at 11:49:15PM +0100, Pavel Machek wrote: Hi! o virt_to_page() call should be used on kernel linear addresses and not on kernel text and data addresses. Swsusp code uses it on kernel data (statically allocated swsusp_header). o Allocate swsusp_header

Re: [PATCH 15/20] Move swsusp __pa() dependent code to arch portion

2007-03-07 Thread Vivek Goyal
On Wed, Mar 07, 2007 at 11:47:40PM +0100, Pavel Machek wrote: Hi! o __pa() should be used only on kernel linearly mapped virtual addresses and not on kernel text and data addresses. o Hibernation code needs to determine the physical address associated with kernel symbol to mark a

[PATCH 16/20] swsusp: do not use virt_to_page on kernel data address

2007-03-06 Thread Vivek Goyal
o virt_to_page() call should be used on kernel linear addresses and not on kernel text and data addresses. Swsusp code uses it on kernel data (statically allocated swsusp_header). o Allocate swsusp_header dynamically so that virt_to_page() can be used safely. o I am changing this because

[PATCH 15/20] Move swsusp __pa() dependent code to arch portion

2007-03-06 Thread Vivek Goyal
|5 ++--- kernel/power/snapshot.c | 11 --- 6 files changed, 55 insertions(+), 14 deletions(-) diff -puN arch/i386/power/suspend.c~move-swsusp-__pa-dependent-code-to-arch-portion arch/i386/power/suspend.c --- linux-2.6.21-rc2-reloc/arch/i386/power/suspend.c~move-swsusp-__pa-dep

Re: [PATCH] Kconfig: Update swsusp description

2007-03-06 Thread Rafael J. Wysocki
Hi, On Tuesday, 6 March 2007 10:41, Pavel Machek wrote: > Hi! > > > > > Index: linux-2.6.21-rc2/kernel/power/Kconfig > > > > === > > > > --- linux-2.6.21-rc2.orig/kernel/power/Kconfig 2007-02-28 > > > > 23:54:45.0 +0100 >

Re: [PATCH] Kconfig: Update swsusp description

2007-03-06 Thread Pavel Machek
Hi! > > > Index: linux-2.6.21-rc2/kernel/power/Kconfig > > > === > > > --- linux-2.6.21-rc2.orig/kernel/power/Kconfig2007-02-28 > > > 23:54:45.0 +0100 > > > +++ linux-2.6.21-rc2/kernel/power/Kconfig 2007-03-04

Re: [PATCH] Kconfig: Update swsusp description

2007-03-06 Thread Rafael J. Wysocki
On Tuesday, 6 March 2007 09:32, Pavel Machek wrote: > Hi! > > > Index: linux-2.6.21-rc2/kernel/power/Kconfig > > === > > --- linux-2.6.21-rc2.orig/kernel/power/Kconfig 2007-02-28 > > 23:54:45.0 +0100 > > +++

Re: [PATCH] Kconfig: Update swsusp description

2007-03-06 Thread Pavel Machek
Hi! > Index: linux-2.6.21-rc2/kernel/power/Kconfig > === > --- linux-2.6.21-rc2.orig/kernel/power/Kconfig2007-02-28 > 23:54:45.0 +0100 > +++ linux-2.6.21-rc2/kernel/power/Kconfig 2007-03-04 11:50:48.0 >

Re: [PATCH] Kconfig: Update swsusp description

2007-03-06 Thread Pavel Machek
Hi! Index: linux-2.6.21-rc2/kernel/power/Kconfig === --- linux-2.6.21-rc2.orig/kernel/power/Kconfig2007-02-28 23:54:45.0 +0100 +++ linux-2.6.21-rc2/kernel/power/Kconfig 2007-03-04 11:50:48.0 +0100

Re: [PATCH] Kconfig: Update swsusp description

2007-03-06 Thread Rafael J. Wysocki
On Tuesday, 6 March 2007 09:32, Pavel Machek wrote: Hi! Index: linux-2.6.21-rc2/kernel/power/Kconfig === --- linux-2.6.21-rc2.orig/kernel/power/Kconfig 2007-02-28 23:54:45.0 +0100 +++

Re: [PATCH] Kconfig: Update swsusp description

2007-03-06 Thread Pavel Machek
Hi! Index: linux-2.6.21-rc2/kernel/power/Kconfig === --- linux-2.6.21-rc2.orig/kernel/power/Kconfig2007-02-28 23:54:45.0 +0100 +++ linux-2.6.21-rc2/kernel/power/Kconfig 2007-03-04 11:50:48.0

Re: [PATCH] Kconfig: Update swsusp description

2007-03-06 Thread Rafael J. Wysocki
Hi, On Tuesday, 6 March 2007 10:41, Pavel Machek wrote: Hi! Index: linux-2.6.21-rc2/kernel/power/Kconfig === --- linux-2.6.21-rc2.orig/kernel/power/Kconfig 2007-02-28 23:54:45.0 +0100 +++

[PATCH 15/20] Move swsusp __pa() dependent code to arch portion

2007-03-06 Thread Vivek Goyal
++--- kernel/power/snapshot.c | 11 --- 6 files changed, 55 insertions(+), 14 deletions(-) diff -puN arch/i386/power/suspend.c~move-swsusp-__pa-dependent-code-to-arch-portion arch/i386/power/suspend.c --- linux-2.6.21-rc2-reloc/arch/i386/power/suspend.c~move-swsusp-__pa-dependent-code

[PATCH 16/20] swsusp: do not use virt_to_page on kernel data address

2007-03-06 Thread Vivek Goyal
o virt_to_page() call should be used on kernel linear addresses and not on kernel text and data addresses. Swsusp code uses it on kernel data (statically allocated swsusp_header). o Allocate swsusp_header dynamically so that virt_to_page() can be used safely. o I am changing this because

[PATCH] Kconfig: Update swsusp description

2007-03-04 Thread Rafael J. Wysocki
It doesn't need ACPI or APM. - You may suspend your machine by 'swsusp' or 'shutdown -z ' - (patch for sysvinit needed). + Enable the suspend to disk (STD) functionality. - It creates an image which is saved in your active swap. Upon next + You can s

[PATCH] Kconfig: Update swsusp description

2007-03-04 Thread Rafael J. Wysocki
machine by 'swsusp' or 'shutdown -z time' - (patch for sysvinit needed). + Enable the suspend to disk (STD) functionality. - It creates an image which is saved in your active swap. Upon next + You can suspend your machine with 'echo disk /sys/power/state

Re: [PATCH] swsusp: Fix possible oops in userland interface

2007-02-25 Thread Pavel Machek
Hi! > From: Stefan Seyfried <[EMAIL PROTECTED]> > > Fix the Oops occuring when SNAPSHOT_PMOPS or SNAPSHOT_S2RAM ioctl is called on > a system without pm_ops defined (eg. a non-ACPI kernel on x86 PC). > > Signed-off-by: Stefan Seyfried <[EMAIL PROTECTED]> > Signed-off-by: Rafael J. Wysocki

Re: [PATCH] swsusp: Fix possible oops in userland interface

2007-02-25 Thread Pavel Machek
Hi! From: Stefan Seyfried [EMAIL PROTECTED] Fix the Oops occuring when SNAPSHOT_PMOPS or SNAPSHOT_S2RAM ioctl is called on a system without pm_ops defined (eg. a non-ACPI kernel on x86 PC). Signed-off-by: Stefan Seyfried [EMAIL PROTECTED] Signed-off-by: Rafael J. Wysocki [EMAIL

Re: [PATCH] swsusp: Fix possible oops in userland interface

2007-02-24 Thread Rafael J. Wysocki
On Saturday, 24 February 2007 23:06, Rafael J. Wysocki wrote: > From: Stefan Seyfried <[EMAIL PROTECTED]> > > Fix the Oops occuring when SNAPSHOT_PMOPS or SNAPSHOT_S2RAM ioctl is called on > a system without pm_ops defined (eg. a non-ACPI kernel on x86 PC). > > Signed-off-by: Stefan Seyfried

[PATCH] swsusp: Fix possible oops in userland interface

2007-02-24 Thread Rafael J. Wysocki
From: Stefan Seyfried <[EMAIL PROTECTED]> Fix the Oops occuring when SNAPSHOT_PMOPS or SNAPSHOT_S2RAM ioctl is called on a system without pm_ops defined (eg. a non-ACPI kernel on x86 PC). Signed-off-by: Stefan Seyfried <[EMAIL PROTECTED]> Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> ---

[PATCH] swsusp: Fix possible oops in userland interface

2007-02-24 Thread Rafael J. Wysocki
From: Stefan Seyfried [EMAIL PROTECTED] Fix the Oops occuring when SNAPSHOT_PMOPS or SNAPSHOT_S2RAM ioctl is called on a system without pm_ops defined (eg. a non-ACPI kernel on x86 PC). Signed-off-by: Stefan Seyfried [EMAIL PROTECTED] Signed-off-by: Rafael J. Wysocki [EMAIL PROTECTED] ---

Re: [PATCH] swsusp: Fix possible oops in userland interface

2007-02-24 Thread Rafael J. Wysocki
On Saturday, 24 February 2007 23:06, Rafael J. Wysocki wrote: From: Stefan Seyfried [EMAIL PROTECTED] Fix the Oops occuring when SNAPSHOT_PMOPS or SNAPSHOT_S2RAM ioctl is called on a system without pm_ops defined (eg. a non-ACPI kernel on x86 PC). Signed-off-by: Stefan Seyfried [EMAIL

Re: Some "patch" between 2.6.20-rc7 and 2.6.20-final-vanilla has broken my SWSUSP resume

2007-02-07 Thread Pavel Machek
Hi! > please take a look at my bugreport. It is very important for me... > > http://bugzilla.kernel.org/show_bug.cgi?id=7936 > > Thanks a lot If it is really caused by difference between -rc7 and -final... then I guess it is 'git bisect' time...

Re: [swsusp] s2ram fails to restore graphics

2007-02-07 Thread Pavel Machek
Hi! > I'm having problems with s2ram being unable to restore > my Intel 945GM (a Dell D420 laptop) when resuming. I > think everything else is restored properly (I have input > so I can reboot or suspend again). Full hibernation is > working flawless on this machine including restoring >

Re: [swsusp] s2ram fails to restore graphics

2007-02-07 Thread Pavel Machek
Hi! I'm having problems with s2ram being unable to restore my Intel 945GM (a Dell D420 laptop) when resuming. I think everything else is restored properly (I have input so I can reboot or suspend again). Full hibernation is working flawless on this machine including restoring

Re: Some patch between 2.6.20-rc7 and 2.6.20-final-vanilla has broken my SWSUSP resume

2007-02-07 Thread Pavel Machek
Hi! please take a look at my bugreport. It is very important for me... http://bugzilla.kernel.org/show_bug.cgi?id=7936 Thanks a lot If it is really caused by difference between -rc7 and -final... then I guess it is 'git bisect' time...

[PATCH -mm] swsusp: Fix possible oops in userland interface

2007-02-06 Thread Rafael J. Wysocki
The SNAPSHOT_PMOPS and SNAPSHOT_S2RAM ioctls can Oops if they are called from a kernel that doesn't set pm_ops (eg. non-ACPI kernel on a PC). Fix it. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> --- kernel/power/user.c | 13 +++-- 1

Re: [swsusp] s2ram fails to restore graphics

2007-02-06 Thread Christian Axelsson
Ups, forgot suspend-devel CC :) Christian Axelsson wrote: Hello! I'm having problems with s2ram being unable to restore my Intel 945GM (a Dell D420 laptop) when resuming. I think everything else is restored properly (I have input so I can reboot or suspend again). Full hibernation is

Re: [Suspend-devel] [swsusp] s2ram fails to restore graphics

2007-02-06 Thread Stefan Seyfried
On Tue, Feb 06, 2007 at 06:18:54PM +0100, Christian Axelsson wrote: > Ups, forgot suspend-devel CC :) > > Christian Axelsson wrote: > > Hello! > > > > I'm having problems with s2ram being unable to restore my Intel 945GM (a > > Dell D420 laptop) when resuming. I think everything else is

[swsusp] s2ram fails to restore graphics

2007-02-06 Thread Christian Axelsson
Hello! I'm having problems with s2ram being unable to restore my Intel 945GM (a Dell D420 laptop) when resuming. I think everything else is restored properly (I have input so I can reboot or suspend again). Full hibernation is working flawless on this machine including restoring framebuffer

[swsusp] s2ram fails to restore graphics

2007-02-06 Thread Christian Axelsson
Hello! I'm having problems with s2ram being unable to restore my Intel 945GM (a Dell D420 laptop) when resuming. I think everything else is restored properly (I have input so I can reboot or suspend again). Full hibernation is working flawless on this machine including restoring framebuffer

[PATCH -mm] swsusp: Fix possible oops in userland interface

2007-02-06 Thread Rafael J. Wysocki
The SNAPSHOT_PMOPS and SNAPSHOT_S2RAM ioctls can Oops if they are called from a kernel that doesn't set pm_ops (eg. non-ACPI kernel on a PC). Fix it. Signed-off-by: Rafael J. Wysocki [EMAIL PROTECTED] Acked-by: Pavel Machek [EMAIL PROTECTED] --- kernel/power/user.c | 13 +++-- 1 file

Re: [Suspend-devel] [swsusp] s2ram fails to restore graphics

2007-02-06 Thread Stefan Seyfried
On Tue, Feb 06, 2007 at 06:18:54PM +0100, Christian Axelsson wrote: Ups, forgot suspend-devel CC :) Christian Axelsson wrote: Hello! I'm having problems with s2ram being unable to restore my Intel 945GM (a Dell D420 laptop) when resuming. I think everything else is restored

Re: [swsusp] s2ram fails to restore graphics

2007-02-06 Thread Christian Axelsson
Ups, forgot suspend-devel CC :) Christian Axelsson wrote: Hello! I'm having problems with s2ram being unable to restore my Intel 945GM (a Dell D420 laptop) when resuming. I think everything else is restored properly (I have input so I can reboot or suspend again). Full hibernation is

Some "patch" between 2.6.20-rc7 and 2.6.20-final-vanilla has broken my SWSUSP resume

2007-02-05 Thread CIJOML
Hi, please take a look at my bugreport. It is very important for me... http://bugzilla.kernel.org/show_bug.cgi?id=7936 Thanks a lot Michal - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

Some patch between 2.6.20-rc7 and 2.6.20-final-vanilla has broken my SWSUSP resume

2007-02-05 Thread CIJOML
Hi, please take a look at my bugreport. It is very important for me... http://bugzilla.kernel.org/show_bug.cgi?id=7936 Thanks a lot Michal - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

[PATCH][Fix] swsusp: Do not fail if resume device is not set

2007-01-02 Thread Rafael J. Wysocki
In the kernels later than 2.6.19 there is a regression that makes swsusp fail if the resume device is not explicitly specified. It can be fixed by adding an additional parameter to mm/swapfile.c:swap_type_of() allowing us to pass the (struct block_device *) corresponding to the first available

[PATCH][Fix] swsusp: Do not fail if resume device is not set

2007-01-02 Thread Rafael J. Wysocki
In the kernels later than 2.6.19 there is a regression that makes swsusp fail if the resume device is not explicitly specified. It can be fixed by adding an additional parameter to mm/swapfile.c:swap_type_of() allowing us to pass the (struct block_device *) corresponding to the first available

swsusp testing wanted (was Re: Linux 2.6.20-rc2)

2006-12-25 Thread Pavel Machek
Hi! > Rafael J. Wysocki (1): > ACPI: S4: Use "platform" rather than "shutdown" mode by default ...platform is right thing to do, but it is also "more aggresive" than "shutdown" -- it needs bigger chunk of ACPI BIOS to work properly. So, it would be nice to test 2.6.20-rc2 on your

swsusp testing wanted (was Re: Linux 2.6.20-rc2)

2006-12-25 Thread Pavel Machek
Hi! Rafael J. Wysocki (1): ACPI: S4: Use platform rather than shutdown mode by default ...platform is right thing to do, but it is also more aggresive than shutdown -- it needs bigger chunk of ACPI BIOS to work properly. So, it would be nice to test 2.6.20-rc2 on your favourite system

[PATCH -mm 3/4] swsusp: Change code ordering in user.c

2006-12-20 Thread Rafael J. Wysocki
ume(), as indicated by the recent discussion on Linux-PM (cf. http://lists.osdl.org/pipermail/linux-pm/2006-November/004164.html). The changes here only affect the userland interface of swsusp. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]&

[PATCH -mm 4/4] swsusp: Change pm_ops handling by userland interface

2006-12-20 Thread Rafael J. Wysocki
Make the userland interface of swsusp call pm_ops->finish() after enable_nonboot_cpus() and before resume_device(), as indicated by the recent discussion on Linux-PM (cf. http://lists.osdl.org/pipermail/linux-pm/2006-November/004164.html). This patch changes the SNAPSHOT_PMOPS ioctl so that

[PATCH -mm 2/4] swsusp: Change code ordering in disk.c

2006-12-20 Thread Rafael J. Wysocki
-pm/2006-November/004164.html). The changes here only affect the built-in swsusp. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> --- kernel/cpu.c|2 kernel/power/disk.c | 110 ++---

[PATCH -mm 2/4] swsusp: Change code ordering in disk.c

2006-12-20 Thread Rafael J. Wysocki
-pm/2006-November/004164.html). The changes here only affect the built-in swsusp. Signed-off-by: Rafael J. Wysocki [EMAIL PROTECTED] Acked-by: Pavel Machek [EMAIL PROTECTED] --- kernel/cpu.c|2 kernel/power/disk.c | 110 ++-- 2 files

[PATCH -mm 3/4] swsusp: Change code ordering in user.c

2006-12-20 Thread Rafael J. Wysocki
(), as indicated by the recent discussion on Linux-PM (cf. http://lists.osdl.org/pipermail/linux-pm/2006-November/004164.html). The changes here only affect the userland interface of swsusp. Signed-off-by: Rafael J. Wysocki [EMAIL PROTECTED] Acked-by: Pavel Machek [EMAIL PROTECTED] --- kernel/power

[PATCH -mm 4/4] swsusp: Change pm_ops handling by userland interface

2006-12-20 Thread Rafael J. Wysocki
Make the userland interface of swsusp call pm_ops-finish() after enable_nonboot_cpus() and before resume_device(), as indicated by the recent discussion on Linux-PM (cf. http://lists.osdl.org/pipermail/linux-pm/2006-November/004164.html). This patch changes the SNAPSHOT_PMOPS ioctl so that its

[patch 27/32] PM: Fix swsusp debug mode testproc

2006-12-08 Thread Chris Wright
-stable review patch. If anyone has any objections, please let us know. -- From: Rafael J Wysocki <[EMAIL PROTECTED]> The 'testproc' swsusp debug mode thaws tasks twice in a row, which is _very_ confusing. Fix that. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTE

<    1   2   3   4   5   6   7   8   9   10   >