* Re: 2.6.22-rc3-mm1
[not found] <20070530235823.793f00d9.akpm@linux-foundation.org>
@ 2007-05-31 15:29 ` Michal Piotrowski
[not found] ` <465EE9F2.8080905@googlemail.com>
2007-06-05 21:50 ` [-mm patch] kernel/power/disk.c: make code static Adrian Bunk
2 siblings, 0 replies; 8+ messages in thread
From: Michal Piotrowski @ 2007-05-31 15:29 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-pm, linux-kernel, Pavel Machek
Hi,
Andrew Morton napisał(a):
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.22-rc3/2.6.22-rc3-mm1/
>
FYI suspend to disk doesn't work anymore on my box, system hangs after "Suspending console(s)" message.
[ 186.297753] Shrinking memory... \b-\b\\b|\b/\b-\b\\b|\bdone (113064 pages freed)
[ 187.841914] Freed 452256 kbytes in 1.54 seconds (293.67 MB/s)
[ 187.847730] Suspending console(s)
http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.22-rc3-mm1/console.log
http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.22-rc3-mm1/mm-config
Regards,
Michal
--
"Najbardziej brakowało mi twojego milczenia."
-- Andrzej Sapkowski "Coś więcej"
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2.6.22-rc3-mm1
[not found] ` <465EE9F2.8080905@googlemail.com>
@ 2007-05-31 19:58 ` Rafael J. Wysocki
[not found] ` <200705312158.26560.rjw@sisk.pl>
1 sibling, 0 replies; 8+ messages in thread
From: Rafael J. Wysocki @ 2007-05-31 19:58 UTC (permalink / raw)
To: Michal Piotrowski; +Cc: Andrew Morton, linux-kernel, Pavel Machek, linux-pm
On Thursday, 31 May 2007 17:29, Michal Piotrowski wrote:
> Hi,
>
> Andrew Morton napisał(a):
> > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.22-rc3/2.6.22-rc3-mm1/
> >
>
> FYI suspend to disk doesn't work anymore on my box, system hangs after "Suspending console(s)" message.
>
> [ 186.297753] Shrinking memory... \b-\b\\b|\b/\b-\b\\b|\bdone (113064 pages freed)
> [ 187.841914] Freed 452256 kbytes in 1.54 seconds (293.67 MB/s)
> [ 187.847730] Suspending console(s)
>
> http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.22-rc3-mm1/console.log
> http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.22-rc3-mm1/mm-config
Hmm, that might be a couple of things, actually.
To see if the patches directly related to hibernation/suspend cause this, can
you please test 2.6.22-rc3 with the patch series at
http://www.sisk.pl/kernel/hibernation_and_suspend/2.6.22-rc3/patches/
applied?
Greetings,
Rafael
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2.6.22-rc3-mm1
[not found] ` <200705312158.26560.rjw@sisk.pl>
@ 2007-05-31 21:25 ` Michal Piotrowski
2007-05-31 21:34 ` 2.6.22-rc3-mm1 Rafael J. Wysocki
2007-05-31 21:30 ` [PATCH -mm] Freezer: migration_thread should not be freezable (was: Re: Re: 2.6.22-rc3-mm1) Rafael J. Wysocki
[not found] ` <200705312330.09157.rjw@sisk.pl>
2 siblings, 1 reply; 8+ messages in thread
From: Michal Piotrowski @ 2007-05-31 21:25 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: Andrew Morton, linux-kernel, Pavel Machek, linux-pm
On 31/05/07, Rafael J. Wysocki <rjw@sisk.pl> wrote:
> On Thursday, 31 May 2007 17:29, Michal Piotrowski wrote:
> > Hi,
> >
> > Andrew Morton napisał(a):
> > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.22-rc3/2.6.22-rc3-mm1/
> > >
> >
> > FYI suspend to disk doesn't work anymore on my box, system hangs after "Suspending console(s)" message.
> >
> > [ 186.297753] Shrinking memory... \b-\b\\b|\b/\b-\b\\b|\bdone (113064 pages freed)
> > [ 187.841914] Freed 452256 kbytes in 1.54 seconds (293.67 MB/s)
> > [ 187.847730] Suspending console(s)
> >
> > http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.22-rc3-mm1/console.log
> > http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.22-rc3-mm1/mm-config
>
> Hmm, that might be a couple of things, actually.
>
> To see if the patches directly related to hibernation/suspend cause this, can
> you please test 2.6.22-rc3 with the patch series at
>
> http://www.sisk.pl/kernel/hibernation_and_suspend/2.6.22-rc3/patches/
>
> applied?
Ok, bug is in suspend tree.
>
> Greetings,
> Rafael
>
Regards,
Michal
--
"Najbardziej brakowało mi twojego milczenia."
-- Andrzej Sapkowski "Coś więcej"
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH -mm] Freezer: migration_thread should not be freezable (was: Re: Re: 2.6.22-rc3-mm1)
[not found] ` <200705312158.26560.rjw@sisk.pl>
2007-05-31 21:25 ` 2.6.22-rc3-mm1 Michal Piotrowski
@ 2007-05-31 21:30 ` Rafael J. Wysocki
[not found] ` <200705312330.09157.rjw@sisk.pl>
2 siblings, 0 replies; 8+ messages in thread
From: Rafael J. Wysocki @ 2007-05-31 21:30 UTC (permalink / raw)
To: Michal Piotrowski, Andrew Morton; +Cc: linux-pm, linux-kernel, Pavel Machek
On Thursday, 31 May 2007 21:58, Rafael J. Wysocki wrote:
> On Thursday, 31 May 2007 17:29, Michal Piotrowski wrote:
> > Hi,
> >
> > Andrew Morton napisał(a):
> > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.22-rc3/2.6.22-rc3-mm1/
> > >
> >
> > FYI suspend to disk doesn't work anymore on my box, system hangs after "Suspending console(s)" message.
> >
> > [ 186.297753] Shrinking memory... \b-\b\\b|\b/\b-\b\\b|\bdone (113064 pages freed)
> > [ 187.841914] Freed 452256 kbytes in 1.54 seconds (293.67 MB/s)
> > [ 187.847730] Suspending console(s)
> >
> > http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.22-rc3-mm1/console.log
> > http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.22-rc3-mm1/mm-config
>
> Hmm, that might be a couple of things, actually.
>
> To see if the patches directly related to hibernation/suspend cause this, can
> you please test 2.6.22-rc3 with the patch series at
>
> http://www.sisk.pl/kernel/hibernation_and_suspend/2.6.22-rc3/patches/
>
> applied?
Ahem, I broke it. :-(
Andrew, the following fix is needed on top of
freezer-make-kernel-threads-nonfreezable-by-default.patch
---
From: Rafael J. Wysocki <rjw@sisk.pl>
migration_thread should not be freezable, or it will break hibernation and
suspend on SMP.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
---
kernel/sched.c | 3 ---
1 file changed, 3 deletions(-)
Index: linux-2.6.22-rc3/kernel/sched.c
===================================================================
--- linux-2.6.22-rc3.orig/kernel/sched.c
+++ linux-2.6.22-rc3/kernel/sched.c
@@ -5157,13 +5157,10 @@ static int migration_thread(void *data)
BUG_ON(rq->migration_thread != current);
set_current_state(TASK_INTERRUPTIBLE);
- set_freezable();
while (!kthread_should_stop()) {
struct migration_req *req;
struct list_head *head;
- try_to_freeze();
-
spin_lock_irq(&rq->lock);
if (cpu_is_offline(cpu)) {
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2.6.22-rc3-mm1
2007-05-31 21:25 ` 2.6.22-rc3-mm1 Michal Piotrowski
@ 2007-05-31 21:34 ` Rafael J. Wysocki
0 siblings, 0 replies; 8+ messages in thread
From: Rafael J. Wysocki @ 2007-05-31 21:34 UTC (permalink / raw)
To: Michal Piotrowski; +Cc: Andrew Morton, linux-kernel, Pavel Machek, linux-pm
On Thursday, 31 May 2007 23:25, Michal Piotrowski wrote:
> On 31/05/07, Rafael J. Wysocki <rjw@sisk.pl> wrote:
> > On Thursday, 31 May 2007 17:29, Michal Piotrowski wrote:
> > > Hi,
> > >
> > > Andrew Morton napisał(a):
> > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.22-rc3/2.6.22-rc3-mm1/
> > > >
> > >
> > > FYI suspend to disk doesn't work anymore on my box, system hangs after "Suspending console(s)" message.
> > >
> > > [ 186.297753] Shrinking memory... \b-\b\\b|\b/\b-\b\\b|\bdone (113064 pages freed)
> > > [ 187.841914] Freed 452256 kbytes in 1.54 seconds (293.67 MB/s)
> > > [ 187.847730] Suspending console(s)
> > >
> > > http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.22-rc3-mm1/console.log
> > > http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.22-rc3-mm1/mm-config
> >
> > Hmm, that might be a couple of things, actually.
> >
> > To see if the patches directly related to hibernation/suspend cause this, can
> > you please test 2.6.22-rc3 with the patch series at
> >
> > http://www.sisk.pl/kernel/hibernation_and_suspend/2.6.22-rc3/patches/
> >
> > applied?
>
> Ok, bug is in suspend tree.
Yup. Please see the message I've just sent (with a fix).
Rafael
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH -mm] Freezer: migration_thread should not be freezable (was: Re: Re: 2.6.22-rc3-mm1)
[not found] ` <200705312330.09157.rjw@sisk.pl>
@ 2007-05-31 21:45 ` Michal Piotrowski
0 siblings, 0 replies; 8+ messages in thread
From: Michal Piotrowski @ 2007-05-31 21:45 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: Andrew Morton, linux-pm, Pavel Machek, linux-kernel
On 31/05/07, Rafael J. Wysocki <rjw@sisk.pl> wrote:
> On Thursday, 31 May 2007 21:58, Rafael J. Wysocki wrote:
> > On Thursday, 31 May 2007 17:29, Michal Piotrowski wrote:
> > > Hi,
> > >
> > > Andrew Morton napisał(a):
> > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.22-rc3/2.6.22-rc3-mm1/
> > > >
> > >
> > > FYI suspend to disk doesn't work anymore on my box, system hangs after "Suspending console(s)" message.
> > >
> > > [ 186.297753] Shrinking memory... \b-\b\\b|\b/\b-\b\\b|\bdone (113064 pages freed)
> > > [ 187.841914] Freed 452256 kbytes in 1.54 seconds (293.67 MB/s)
> > > [ 187.847730] Suspending console(s)
> > >
> > > http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.22-rc3-mm1/console.log
> > > http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.22-rc3-mm1/mm-config
> >
> > Hmm, that might be a couple of things, actually.
> >
> > To see if the patches directly related to hibernation/suspend cause this, can
> > you please test 2.6.22-rc3 with the patch series at
> >
> > http://www.sisk.pl/kernel/hibernation_and_suspend/2.6.22-rc3/patches/
> >
> > applied?
>
> Ahem, I broke it. :-(
>
> Andrew, the following fix is needed on top of
> freezer-make-kernel-threads-nonfreezable-by-default.patch
>
> ---
> From: Rafael J. Wysocki <rjw@sisk.pl>
>
> migration_thread should not be freezable, or it will break hibernation and
> suspend on SMP.
>
Problem fixed, suspend to disk works fine. Huge thanks!
Regards,
Michal
--
"Najbardziej brakowało mi twojego milczenia."
-- Andrzej Sapkowski "Coś więcej"
^ permalink raw reply [flat|nested] 8+ messages in thread
* [-mm patch] kernel/power/disk.c: make code static
[not found] <20070530235823.793f00d9.akpm@linux-foundation.org>
2007-05-31 15:29 ` 2.6.22-rc3-mm1 Michal Piotrowski
[not found] ` <465EE9F2.8080905@googlemail.com>
@ 2007-06-05 21:50 ` Adrian Bunk
2007-06-05 22:10 ` Rafael J. Wysocki
2 siblings, 1 reply; 8+ messages in thread
From: Adrian Bunk @ 2007-06-05 21:50 UTC (permalink / raw)
To: Andrew Morton, Rafael J. Wysocki, pavel; +Cc: linux-pm, linux-kernel
On Wed, May 30, 2007 at 11:58:23PM -0700, Andrew Morton wrote:
>...
> Changes since 2.6.22-rc2-mm1:
>...
> +swsusp-remove-code-duplication-between-diskc-and-userc.patch
>...
> freezer/swsusp updates
>...
This patch makes needlessly global code static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
kernel/power/disk.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- linux-2.6.22-rc3-mm1/kernel/power/disk.c.old 2007-06-05 22:12:07.000000000 +0200
+++ linux-2.6.22-rc3-mm1/kernel/power/disk.c 2007-06-05 22:13:37.000000000 +0200
@@ -45,7 +45,7 @@
static int hibernation_mode = HIBERNATION_SHUTDOWN;
-struct hibernation_ops *hibernation_ops;
+static struct hibernation_ops *hibernation_ops;
/**
* hibernation_set_ops - set the global hibernate operations
@@ -231,7 +231,7 @@
* to power off or reboot.
*/
-void power_down(void)
+static void power_down(void)
{
switch (hibernation_mode) {
case HIBERNATION_TEST:
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [-mm patch] kernel/power/disk.c: make code static
2007-06-05 21:50 ` [-mm patch] kernel/power/disk.c: make code static Adrian Bunk
@ 2007-06-05 22:10 ` Rafael J. Wysocki
0 siblings, 0 replies; 8+ messages in thread
From: Rafael J. Wysocki @ 2007-06-05 22:10 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Andrew Morton, linux-pm, linux-kernel
On Tuesday, 5 June 2007 23:50, Adrian Bunk wrote:
> On Wed, May 30, 2007 at 11:58:23PM -0700, Andrew Morton wrote:
> >...
> > Changes since 2.6.22-rc2-mm1:
> >...
> > +swsusp-remove-code-duplication-between-diskc-and-userc.patch
> >...
> > freezer/swsusp updates
> >...
>
> This patch makes needlessly global code static.
>
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
ACK
Rafael
> ---
>
> kernel/power/disk.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> --- linux-2.6.22-rc3-mm1/kernel/power/disk.c.old 2007-06-05 22:12:07.000000000 +0200
> +++ linux-2.6.22-rc3-mm1/kernel/power/disk.c 2007-06-05 22:13:37.000000000 +0200
> @@ -45,7 +45,7 @@
>
> static int hibernation_mode = HIBERNATION_SHUTDOWN;
>
> -struct hibernation_ops *hibernation_ops;
> +static struct hibernation_ops *hibernation_ops;
>
> /**
> * hibernation_set_ops - set the global hibernate operations
> @@ -231,7 +231,7 @@
> * to power off or reboot.
> */
>
> -void power_down(void)
> +static void power_down(void)
> {
> switch (hibernation_mode) {
> case HIBERNATION_TEST:
>
>
>
--
"Premature optimization is the root of all evil." - Donald Knuth
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-06-05 22:10 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20070530235823.793f00d9.akpm@linux-foundation.org>
2007-05-31 15:29 ` 2.6.22-rc3-mm1 Michal Piotrowski
[not found] ` <465EE9F2.8080905@googlemail.com>
2007-05-31 19:58 ` 2.6.22-rc3-mm1 Rafael J. Wysocki
[not found] ` <200705312158.26560.rjw@sisk.pl>
2007-05-31 21:25 ` 2.6.22-rc3-mm1 Michal Piotrowski
2007-05-31 21:34 ` 2.6.22-rc3-mm1 Rafael J. Wysocki
2007-05-31 21:30 ` [PATCH -mm] Freezer: migration_thread should not be freezable (was: Re: Re: 2.6.22-rc3-mm1) Rafael J. Wysocki
[not found] ` <200705312330.09157.rjw@sisk.pl>
2007-05-31 21:45 ` Michal Piotrowski
2007-06-05 21:50 ` [-mm patch] kernel/power/disk.c: make code static Adrian Bunk
2007-06-05 22:10 ` 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