* Problem with CFS V20 and Suspend2/tuxonice [not found] <1946b54f0708250423k75d5797fuc5b032be7e143f26@mail.gmail.com> @ 2007-08-25 11:29 ` David Rodriguez 2007-08-25 12:54 ` Fabio Comolli 2007-08-25 19:01 ` Ingo Molnar 0 siblings, 2 replies; 13+ messages in thread From: David Rodriguez @ 2007-08-25 11:29 UTC (permalink / raw) To: linux-kernel I'm using 2.6.22.5 with cfs v20.3 and suspend2 2.2.10.2. With that combination, suspend is not working anymore (with cfs v19 was working). Stops on suspend in "Suspending tasks" Looking at cfs patch, I managed to change the migration_thread, adding again the try_to_freeze() removed in last patch and now the suspend finished, but resume not work. Of course I don't know why that was removed, and rewriting it is not a solution, but I want to report it. All that in a core duo machine. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with CFS V20 and Suspend2/tuxonice 2007-08-25 11:29 ` Problem with CFS V20 and Suspend2/tuxonice David Rodriguez @ 2007-08-25 12:54 ` Fabio Comolli 2007-08-25 16:52 ` [Suspend2-devel] " Christian Hesse 2007-08-25 19:01 ` Ingo Molnar 1 sibling, 1 reply; 13+ messages in thread From: Fabio Comolli @ 2007-08-25 12:54 UTC (permalink / raw) To: linux-kernel; +Cc: David Rodriguez, Suspend2-users, suspend2-devel Reproduced on a Intel Centrino based laptop with gentoo kamikaze7 sources (http://forums.gentoo.org/viewtopic-t-577970.html) On 8/25/07, David Rodriguez <livuxman@gmail.com> wrote: > I'm using 2.6.22.5 with cfs v20.3 and suspend2 2.2.10.2. > With that combination, suspend is not working anymore (with cfs v19 > was working). > Stops on suspend in "Suspending tasks" > Looking at cfs patch, I managed to change the migration_thread, > adding again the try_to_freeze() removed in last patch and now the > suspend finished, but resume not work. Of course I don't know why that > was removed, and rewriting it is not a solution, but I want to report > it. > > All that in a core duo machine. > - > 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/ > ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Suspend2-devel] Problem with CFS V20 and Suspend2/tuxonice 2007-08-25 12:54 ` Fabio Comolli @ 2007-08-25 16:52 ` Christian Hesse 2007-08-25 18:49 ` Matthias Hensler 2007-08-25 19:02 ` Ingo Molnar 0 siblings, 2 replies; 13+ messages in thread From: Christian Hesse @ 2007-08-25 16:52 UTC (permalink / raw) To: suspend2-devel Cc: Fabio Comolli, linux-kernel, Suspend2-users, suspend2-devel, David Rodriguez [-- Attachment #1: Type: text/plain, Size: 844 bytes --] On Saturday 25 August 2007, Fabio Comolli wrote: > On 8/25/07, David Rodriguez <livuxman@gmail.com> wrote: > > I'm using 2.6.22.5 with cfs v20.3 and suspend2 2.2.10.2. > > With that combination, suspend is not working anymore (with cfs v19 > > was working). > > Stops on suspend in "Suspending tasks" > > Looking at cfs patch, I managed to change the migration_thread, > > adding again the try_to_freeze() removed in last patch and now the > > suspend finished, but resume not work. Of course I don't know why that > > was removed, and rewriting it is not a solution, but I want to report > > it. > > Reproduced on a Intel Centrino based laptop with gentoo kamikaze7 > sources (http://forums.gentoo.org/viewtopic-t-577970.html) Same problem here: Core Duo, Kernel 2.6.22.5, Suspend 2.2.10, CFS v20.2. -- Regards, Chris [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Suspend2-devel] Problem with CFS V20 and Suspend2/tuxonice 2007-08-25 16:52 ` [Suspend2-devel] " Christian Hesse @ 2007-08-25 18:49 ` Matthias Hensler 2007-08-25 19:02 ` Ingo Molnar 2007-08-25 19:02 ` Ingo Molnar 1 sibling, 1 reply; 13+ messages in thread From: Matthias Hensler @ 2007-08-25 18:49 UTC (permalink / raw) To: Christian Hesse Cc: suspend2-devel, Suspend2-users, linux-kernel, suspend2-devel, David Rodriguez [-- Attachment #1: Type: text/plain, Size: 698 bytes --] Hi! On Sat, Aug 25, 2007 at 06:52:20PM +0200, Christian Hesse wrote: > On Saturday 25 August 2007, Fabio Comolli wrote: > > On 8/25/07, David Rodriguez <livuxman@gmail.com> wrote: > > > I'm using 2.6.22.5 with cfs v20.3 and suspend2 2.2.10.2. With > > > that combination, suspend is not working anymore (with cfs v19 was > > > working). Stops on suspend in "Suspending tasks" > > Reproduced on a Intel Centrino based laptop with gentoo kamikaze7 > > sources (http://forums.gentoo.org/viewtopic-t-577970.html) > > Same problem here: Core Duo, Kernel 2.6.22.5, Suspend 2.2.10, CFS > v20.2. Me too for 2.6.22.5, TuxOnIce 2.2.10 and Centrino based notebook. Regards, Matthias [-- Attachment #2: Type: application/pgp-signature, Size: 307 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Suspend2-devel] Problem with CFS V20 and Suspend2/tuxonice 2007-08-25 18:49 ` Matthias Hensler @ 2007-08-25 19:02 ` Ingo Molnar 2007-08-27 11:41 ` Pavel Machek 0 siblings, 1 reply; 13+ messages in thread From: Ingo Molnar @ 2007-08-25 19:02 UTC (permalink / raw) To: Matthias Hensler Cc: Christian Hesse, suspend2-devel, Suspend2-users, linux-kernel, suspend2-devel, David Rodriguez * Matthias Hensler <matthias@wspse.de> wrote: > > Same problem here: Core Duo, Kernel 2.6.22.5, Suspend 2.2.10, CFS > > v20.2. > > Me too for 2.6.22.5, TuxOnIce 2.2.10 and Centrino based notebook. possible bugfix below. Ingo Index: linux-cfs-2.6.22.5.q/kernel/sched.c =================================================================== --- linux-cfs-2.6.22.5.q.orig/kernel/sched.c +++ linux-cfs-2.6.22.5.q/kernel/sched.c @@ -5043,6 +5043,8 @@ static int migration_thread(void *data) struct migration_req *req; struct list_head *head; + try_to_freeze(); + spin_lock_irq(&rq->lock); if (cpu_is_offline(cpu)) { @@ -5399,6 +5401,7 @@ migration_call(struct notifier_block *nf p = kthread_create(migration_thread, hcpu, "migration/%d", cpu); if (IS_ERR(p)) return NOTIFY_BAD; + p->flags |= PF_NOFREEZE; kthread_bind(p, cpu); /* Must be high prio: stop_machine expects to yield to it. */ rq = task_rq_lock(p, &flags); ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Suspend2-devel] Problem with CFS V20 and Suspend2/tuxonice 2007-08-25 19:02 ` Ingo Molnar @ 2007-08-27 11:41 ` Pavel Machek 2007-08-27 12:11 ` Ingo Molnar 2007-08-27 12:25 ` Rafael J. Wysocki 0 siblings, 2 replies; 13+ messages in thread From: Pavel Machek @ 2007-08-27 11:41 UTC (permalink / raw) To: Ingo Molnar Cc: Matthias Hensler, Christian Hesse, suspend2-devel, Suspend2-users, linux-kernel, suspend2-devel, David Rodriguez, Rafael J. Wysocki Hi! > > > Same problem here: Core Duo, Kernel 2.6.22.5, Suspend 2.2.10, CFS > > > v20.2. > > > > Me too for 2.6.22.5, TuxOnIce 2.2.10 and Centrino based notebook. > > possible bugfix below. > > Ingo > > Index: linux-cfs-2.6.22.5.q/kernel/sched.c > =================================================================== > --- linux-cfs-2.6.22.5.q.orig/kernel/sched.c > +++ linux-cfs-2.6.22.5.q/kernel/sched.c > @@ -5043,6 +5043,8 @@ static int migration_thread(void *data) > struct migration_req *req; > struct list_head *head; > > + try_to_freeze(); > + > spin_lock_irq(&rq->lock); > > if (cpu_is_offline(cpu)) { If it is NONFREEZE, you should not be trying to freeze it. > @@ -5399,6 +5401,7 @@ migration_call(struct notifier_block *nf > p = kthread_create(migration_thread, hcpu, "migration/%d", cpu); > if (IS_ERR(p)) > return NOTIFY_BAD; > + p->flags |= PF_NOFREEZE; > kthread_bind(p, cpu); > /* Must be high prio: stop_machine expects to yield to it. */ > rq = task_rq_lock(p, &flags); ...plus I believe are tasks are nonfreezable by default now...? Or is that only in 2.6.23? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Suspend2-devel] Problem with CFS V20 and Suspend2/tuxonice 2007-08-27 11:41 ` Pavel Machek @ 2007-08-27 12:11 ` Ingo Molnar 2007-08-27 12:25 ` Rafael J. Wysocki 1 sibling, 0 replies; 13+ messages in thread From: Ingo Molnar @ 2007-08-27 12:11 UTC (permalink / raw) To: Pavel Machek Cc: Matthias Hensler, Christian Hesse, suspend2-devel, Suspend2-users, linux-kernel, suspend2-devel, David Rodriguez, Rafael J. Wysocki * Pavel Machek <pavel@ucw.cz> wrote: > > > Me too for 2.6.22.5, TuxOnIce 2.2.10 and Centrino based notebook. > > + try_to_freeze(); > > + > > spin_lock_irq(&rq->lock); > > > > if (cpu_is_offline(cpu)) { > > If it is NONFREEZE, you should not be trying to freeze it. that fix is for .22 - the bug is a backporting bug. (i look .23's sched.c and stuck it into .22) Ingo ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Suspend2-devel] Problem with CFS V20 and Suspend2/tuxonice 2007-08-27 11:41 ` Pavel Machek 2007-08-27 12:11 ` Ingo Molnar @ 2007-08-27 12:25 ` Rafael J. Wysocki 1 sibling, 0 replies; 13+ messages in thread From: Rafael J. Wysocki @ 2007-08-27 12:25 UTC (permalink / raw) To: Pavel Machek Cc: Ingo Molnar, Matthias Hensler, Christian Hesse, suspend2-devel, Suspend2-users, linux-kernel, suspend2-devel, David Rodriguez On Monday, 27 August 2007 13:41, Pavel Machek wrote: > Hi! > > > > > Same problem here: Core Duo, Kernel 2.6.22.5, Suspend 2.2.10, CFS > > > > v20.2. > > > > > > Me too for 2.6.22.5, TuxOnIce 2.2.10 and Centrino based notebook. > > > > possible bugfix below. > > > > Ingo > > > > Index: linux-cfs-2.6.22.5.q/kernel/sched.c > > =================================================================== > > --- linux-cfs-2.6.22.5.q.orig/kernel/sched.c > > +++ linux-cfs-2.6.22.5.q/kernel/sched.c > > @@ -5043,6 +5043,8 @@ static int migration_thread(void *data) > > struct migration_req *req; > > struct list_head *head; > > > > + try_to_freeze(); > > + > > spin_lock_irq(&rq->lock); > > > > if (cpu_is_offline(cpu)) { > > If it is NONFREEZE, you should not be trying to freeze it. > > > @@ -5399,6 +5401,7 @@ migration_call(struct notifier_block *nf > > p = kthread_create(migration_thread, hcpu, "migration/%d", cpu); > > if (IS_ERR(p)) > > return NOTIFY_BAD; > > + p->flags |= PF_NOFREEZE; > > kthread_bind(p, cpu); > > /* Must be high prio: stop_machine expects to yield to it. */ > > rq = task_rq_lock(p, &flags); > > ...plus I believe are tasks are nonfreezable by default now...? Or is > that only in 2.6.23? Yes, only in 2.6.23-rc. Greetings, Rafael ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Suspend2-devel] Problem with CFS V20 and Suspend2/tuxonice 2007-08-25 16:52 ` [Suspend2-devel] " Christian Hesse 2007-08-25 18:49 ` Matthias Hensler @ 2007-08-25 19:02 ` Ingo Molnar 2007-08-25 20:14 ` Christian Hesse 1 sibling, 1 reply; 13+ messages in thread From: Ingo Molnar @ 2007-08-25 19:02 UTC (permalink / raw) To: Christian Hesse Cc: suspend2-devel, Fabio Comolli, linux-kernel, Suspend2-users, suspend2-devel, David Rodriguez * Christian Hesse <mail@earthworm.de> wrote: > > Reproduced on a Intel Centrino based laptop with gentoo kamikaze7 > > sources (http://forums.gentoo.org/viewtopic-t-577970.html) > > Same problem here: Core Duo, Kernel 2.6.22.5, Suspend 2.2.10, CFS v20.2. please try the patch below - does it fix the problem? Ingo Index: linux-cfs-2.6.22.5.q/kernel/sched.c =================================================================== --- linux-cfs-2.6.22.5.q.orig/kernel/sched.c +++ linux-cfs-2.6.22.5.q/kernel/sched.c @@ -5043,6 +5043,8 @@ static int migration_thread(void *data) struct migration_req *req; struct list_head *head; + try_to_freeze(); + spin_lock_irq(&rq->lock); if (cpu_is_offline(cpu)) { @@ -5399,6 +5401,7 @@ migration_call(struct notifier_block *nf p = kthread_create(migration_thread, hcpu, "migration/%d", cpu); if (IS_ERR(p)) return NOTIFY_BAD; + p->flags |= PF_NOFREEZE; kthread_bind(p, cpu); /* Must be high prio: stop_machine expects to yield to it. */ rq = task_rq_lock(p, &flags); ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Suspend2-devel] Problem with CFS V20 and Suspend2/tuxonice 2007-08-25 19:02 ` Ingo Molnar @ 2007-08-25 20:14 ` Christian Hesse 0 siblings, 0 replies; 13+ messages in thread From: Christian Hesse @ 2007-08-25 20:14 UTC (permalink / raw) To: Ingo Molnar Cc: suspend2-devel, Fabio Comolli, linux-kernel, Suspend2-users, suspend2-devel, David Rodriguez [-- Attachment #1: Type: text/plain, Size: 431 bytes --] On Saturday 25 August 2007, Ingo Molnar wrote: > * Christian Hesse <mail@earthworm.de> wrote: > > > Reproduced on a Intel Centrino based laptop with gentoo kamikaze7 > > > sources (http://forums.gentoo.org/viewtopic-t-577970.html) > > > > Same problem here: Core Duo, Kernel 2.6.22.5, Suspend 2.2.10, CFS v20.2. > > please try the patch below - does it fix the problem? Works for me. Thanks a lot! -- Regards, Chris [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with CFS V20 and Suspend2/tuxonice 2007-08-25 11:29 ` Problem with CFS V20 and Suspend2/tuxonice David Rodriguez 2007-08-25 12:54 ` Fabio Comolli @ 2007-08-25 19:01 ` Ingo Molnar 2007-08-25 19:49 ` Rafael J. Wysocki 2007-08-25 20:15 ` David Rodriguez 1 sibling, 2 replies; 13+ messages in thread From: Ingo Molnar @ 2007-08-25 19:01 UTC (permalink / raw) To: David Rodriguez; +Cc: linux-kernel * David Rodriguez <livuxman@gmail.com> wrote: > I'm using 2.6.22.5 with cfs v20.3 and suspend2 2.2.10.2. With that > combination, suspend is not working anymore (with cfs v19 was > working). Stops on suspend in "Suspending tasks" Looking at cfs patch, > I managed to change the migration_thread, adding again the > try_to_freeze() removed in last patch and now the suspend finished, > but resume not work. Of course I don't know why that was removed, and > rewriting it is not a solution, but I want to report it. could you try the patch below, does it fix this problem? Ingo Index: linux-cfs-2.6.22.5.q/kernel/sched.c =================================================================== --- linux-cfs-2.6.22.5.q.orig/kernel/sched.c +++ linux-cfs-2.6.22.5.q/kernel/sched.c @@ -5043,6 +5043,8 @@ static int migration_thread(void *data) struct migration_req *req; struct list_head *head; + try_to_freeze(); + spin_lock_irq(&rq->lock); if (cpu_is_offline(cpu)) { @@ -5399,6 +5401,7 @@ migration_call(struct notifier_block *nf p = kthread_create(migration_thread, hcpu, "migration/%d", cpu); if (IS_ERR(p)) return NOTIFY_BAD; + p->flags |= PF_NOFREEZE; kthread_bind(p, cpu); /* Must be high prio: stop_machine expects to yield to it. */ rq = task_rq_lock(p, &flags); ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with CFS V20 and Suspend2/tuxonice 2007-08-25 19:01 ` Ingo Molnar @ 2007-08-25 19:49 ` Rafael J. Wysocki 2007-08-25 20:15 ` David Rodriguez 1 sibling, 0 replies; 13+ messages in thread From: Rafael J. Wysocki @ 2007-08-25 19:49 UTC (permalink / raw) To: Ingo Molnar; +Cc: David Rodriguez, linux-kernel On Saturday, 25 August 2007 21:01, Ingo Molnar wrote: > > * David Rodriguez <livuxman@gmail.com> wrote: > > > I'm using 2.6.22.5 with cfs v20.3 and suspend2 2.2.10.2. With that > > combination, suspend is not working anymore (with cfs v19 was > > working). Stops on suspend in "Suspending tasks" Looking at cfs patch, > > I managed to change the migration_thread, adding again the > > try_to_freeze() removed in last patch and now the suspend finished, > > but resume not work. Of course I don't know why that was removed, and > > rewriting it is not a solution, but I want to report it. > > could you try the patch below, does it fix this problem? > > Ingo > > Index: linux-cfs-2.6.22.5.q/kernel/sched.c > =================================================================== > --- linux-cfs-2.6.22.5.q.orig/kernel/sched.c > +++ linux-cfs-2.6.22.5.q/kernel/sched.c > @@ -5043,6 +5043,8 @@ static int migration_thread(void *data) > struct migration_req *req; > struct list_head *head; > > + try_to_freeze(); > + > spin_lock_irq(&rq->lock); > > if (cpu_is_offline(cpu)) { > @@ -5399,6 +5401,7 @@ migration_call(struct notifier_block *nf > p = kthread_create(migration_thread, hcpu, "migration/%d", cpu); > if (IS_ERR(p)) > return NOTIFY_BAD; > + p->flags |= PF_NOFREEZE; Yeah. In 2.6.23-rc all kernel threads are PF_NOFREEZE by default. > kthread_bind(p, cpu); > /* Must be high prio: stop_machine expects to yield to it. */ > rq = task_rq_lock(p, &flags); > - Greetings, Rafael -- "Premature optimization is the root of all evil." - Donald Knuth ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with CFS V20 and Suspend2/tuxonice 2007-08-25 19:01 ` Ingo Molnar 2007-08-25 19:49 ` Rafael J. Wysocki @ 2007-08-25 20:15 ` David Rodriguez 1 sibling, 0 replies; 13+ messages in thread From: David Rodriguez @ 2007-08-25 20:15 UTC (permalink / raw) To: Ingo Molnar; +Cc: linux-kernel 2007/8/25, Ingo Molnar <mingo@elte.hu>: > > * David Rodriguez <livuxman@gmail.com> wrote: > > > I'm using 2.6.22.5 with cfs v20.3 and suspend2 2.2.10.2. With that > > combination, suspend is not working anymore (with cfs v19 was > > working). Stops on suspend in "Suspending tasks" Looking at cfs patch, > > I managed to change the migration_thread, adding again the > > try_to_freeze() removed in last patch and now the suspend finished, > > but resume not work. Of course I don't know why that was removed, and > > rewriting it is not a solution, but I want to report it. > > could you try the patch below, does it fix this problem? > > Ingo > > Index: linux-cfs-2.6.22.5.q/kernel/sched.c > =================================================================== > --- linux-cfs-2.6.22.5.q.orig/kernel/sched.c > +++ linux-cfs-2.6.22.5.q/kernel/sched.c > @@ -5043,6 +5043,8 @@ static int migration_thread(void *data) > struct migration_req *req; > struct list_head *head; > > + try_to_freeze(); > + > spin_lock_irq(&rq->lock); > > if (cpu_is_offline(cpu)) { > @@ -5399,6 +5401,7 @@ migration_call(struct notifier_block *nf > p = kthread_create(migration_thread, hcpu, "migration/%d", cpu); > if (IS_ERR(p)) > return NOTIFY_BAD; > + p->flags |= PF_NOFREEZE; > kthread_bind(p, cpu); > /* Must be high prio: stop_machine expects to yield to it. */ > rq = task_rq_lock(p, &flags); > Yes, it fixes the problem. Thanks ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2007-08-27 12:15 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1946b54f0708250423k75d5797fuc5b032be7e143f26@mail.gmail.com>
2007-08-25 11:29 ` Problem with CFS V20 and Suspend2/tuxonice David Rodriguez
2007-08-25 12:54 ` Fabio Comolli
2007-08-25 16:52 ` [Suspend2-devel] " Christian Hesse
2007-08-25 18:49 ` Matthias Hensler
2007-08-25 19:02 ` Ingo Molnar
2007-08-27 11:41 ` Pavel Machek
2007-08-27 12:11 ` Ingo Molnar
2007-08-27 12:25 ` Rafael J. Wysocki
2007-08-25 19:02 ` Ingo Molnar
2007-08-25 20:14 ` Christian Hesse
2007-08-25 19:01 ` Ingo Molnar
2007-08-25 19:49 ` Rafael J. Wysocki
2007-08-25 20:15 ` David Rodriguez
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox