Re: 2.6.21-rc6 + firstfloor patches: BUG: sleeping function called from invalid context at kernel/sched,.c:3643

2007-04-16 Thread Jeremy Fitzhardinge
Andi Kleen wrote:
> Hmm, are you sure? Can you double check?  With the latest tree?
>
> I could reproduce the problem and my change fixed the problem for me.
>   

Hm.  Me too.  I just booted 2.6.21-rc7-ff-paravirt, and it seems fine.

J

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


Re: 2.6.21-rc6 + firstfloor patches: BUG: sleeping function called from invalid context at kernel/sched,.c:3643

2007-04-15 Thread Andi Kleen
On Saturday 14 April 2007 23:12:25 Jeremy Fitzhardinge wrote:
> Andi Kleen wrote:
> > Fixed now. The latest sched-clock was leaking preempt counts during
> > cpu frequency changes.
> >   
> 
> No, that didn't help.  I think its cpufreq:

Hmm, are you sure? Can you double check?  With the latest tree?

I could reproduce the problem and my change fixed the problem for me.

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


Re: 2.6.21-rc6 + firstfloor patches: BUG: sleeping function called from invalid context at kernel/sched,.c:3643

2007-04-14 Thread Jeremy Fitzhardinge
Andi Kleen wrote:
> Fixed now. The latest sched-clock was leaking preempt counts during
> cpu frequency changes.
>   

No, that didn't help.  I think its cpufreq:

Apr 14 13:58:29 localhost kernel: BUG: scheduling while atomic: 
swapper/0x0002/1
Apr 14 13:58:29 localhost kernel: 2 locks held by swapper/1:
Apr 14 13:58:29 localhost kernel:  #0:  (&per_cpu(cpu_policy_rwsem, 
cpu)){--..}, at: [] lock_policy_rwsem_write
+0x35/0x5f
Apr 14 13:58:29 localhost kernel:  #1:  (userspace_mutex){--..}, at: 
[] mutex_lock+0x1f/0x23
Apr 14 13:58:29 localhost kernel:  [] show_trace_log_lvl+0x1a/0x30
Apr 14 13:58:29 localhost kernel:  [] show_trace+0x12/0x14
Apr 14 13:58:29 localhost kernel:  [] dump_stack+0x16/0x18
Apr 14 13:58:29 localhost kernel:  [] __sched_text_start+0x79/0x86a
Apr 14 13:58:29 localhost kernel:  [] wait_for_completion+0x74/0xaa
Apr 14 13:58:29 localhost kernel:  [] set_cpus_allowed+0x6e/0x8c
Apr 14 13:58:29 localhost kernel:  [] acpi_cpufreq_target+0x18d/0x262
Apr 14 13:58:29 localhost kernel:  [] 
__cpufreq_driver_target+0x27/0x32
Apr 14 13:58:29 localhost kernel:  [] 
cpufreq_governor_userspace+0x120/0x154
Apr 14 13:58:29 localhost kernel:  [] __cpufreq_governor+0x77/0xab
Apr 14 13:58:29 localhost kernel:  [] __cpufreq_set_policy+0x109/0x11a
Apr 14 13:58:29 localhost kernel:  [] cpufreq_set_policy+0x32/0x6c
Apr 14 13:58:29 localhost kernel:  [] cpufreq_add_dev+0x347/0x3ea
Apr 14 13:58:29 localhost kernel:  [] sysdev_driver_register+0x62/0xaf
Apr 14 13:58:29 localhost kernel:  [] 
cpufreq_register_driver+0x82/0xf2
Apr 14 13:58:29 localhost kernel:  [] acpi_cpufreq_init+0x8d/0x93
Apr 14 13:58:29 localhost kernel:  [] init+0x14b/0x241
Apr 14 13:58:29 localhost kernel:  [] kernel_thread_helper+0x7/0x10
Apr 14 13:58:29 localhost kernel:  ===
Apr 14 13:58:29 localhost kernel: initcall at 0xc0454e97: 
acpi_cpufreq_init+0x0/0x93(): returned with preemption imbalance


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


Re: 2.6.21-rc6 + firstfloor patches: BUG: sleeping function called from invalid context at kernel/sched,.c:3643

2007-04-14 Thread Andi Kleen
On Saturday 14 April 2007 08:20:50 Jeremy Fitzhardinge wrote:
> I'm seeing this:
> 
> Apr 13 21:55:34 localhost kernel: BUG: sleeping function called from invalid 
> context at kernel/sched.c:3643

Fixed now. The latest sched-clock was leaking preempt counts during
cpu frequency changes.

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


2.6.21-rc6 + firstfloor patches: BUG: sleeping function called from invalid context at kernel/sched,.c:3643

2007-04-13 Thread Jeremy Fitzhardinge
I'm seeing this:

Apr 13 21:55:34 localhost kernel: BUG: sleeping function called from invalid 
context at kernel/sched.c:3643
Apr 13 21:55:34 localhost kernel: in_atomic():1, irqs_disabled():0
Apr 13 21:55:34 localhost kernel: 1 lock held by events/0/8:
Apr 13 21:55:34 localhost kernel:  #0:  (dbs_mutex){--..}, at: [] 
mutex_lock+0x1f/0x23
Apr 13 21:55:34 localhost kernel:  [] show_trace_log_lvl+0x1a/0x30
Apr 13 21:55:34 localhost kernel:  [] show_trace+0x12/0x14
Apr 13 21:55:34 localhost kernel:  [] dump_stack+0x16/0x18
Apr 13 21:55:34 localhost kernel:  [] __might_sleep+0xe5/0xeb
Apr 13 21:55:34 localhost kernel:  [] wait_for_completion+0x1a/0xaa
Apr 13 21:55:34 localhost kernel:  [] set_cpus_allowed+0x6e/0x8c
Apr 13 21:55:34 localhost kernel:  [] acpi_cpufreq_target+0x18d/0x262
Apr 13 21:55:34 localhost kernel:  [] 
__cpufreq_driver_target+0x27/0x32
Apr 13 21:55:34 localhost kernel:  [] do_dbs_timer+0x190/0x1d2
Apr 13 21:55:34 localhost kernel:  [] run_workqueue+0x8f/0x15f
Apr 13 21:55:34 localhost kernel:  [] worker_thread+0xf8/0x124
Apr 13 21:55:34 localhost kernel:  [] kthread+0xb5/0xe1
Apr 13 21:55:34 localhost kernel:  [] kernel_thread_helper+0x7/0x10
Apr 13 21:55:34 localhost kernel:  ===
Apr 13 21:55:34 localhost kernel: BUG: scheduling while atomic: 
events/0/0x0002/8
Apr 13 21:55:34 localhost kernel: 1 lock held by events/0/8:
Apr 13 21:55:34 localhost kernel:  #0:  (dbs_mutex){--..}, at: [] 
mutex_lock+0x1f/0x23
Apr 13 21:55:34 localhost kernel:  [] show_trace_log_lvl+0x1a/0x30
Apr 13 21:55:34 localhost kernel:  [] show_trace+0x12/0x14
Apr 13 21:55:34 localhost kernel:  [] dump_stack+0x16/0x18
Apr 13 21:55:34 localhost kernel:  [] __sched_text_start+0x79/0x86a
Apr 13 21:55:34 localhost kernel:  [] wait_for_completion+0x74/0xaa
Apr 13 21:55:34 localhost kernel:  [] set_cpus_allowed+0x6e/0x8c
Apr 13 21:55:34 localhost kernel:  [] acpi_cpufreq_target+0x18d/0x262
Apr 13 21:55:34 localhost kernel:  [] 
__cpufreq_driver_target+0x27/0x32
Apr 13 21:55:34 localhost kernel:  [] do_dbs_timer+0x190/0x1d2
Apr 13 21:55:34 localhost kernel:  [] run_workqueue+0x8f/0x15f
Apr 13 21:55:34 localhost kernel:  [] worker_thread+0xf8/0x124
Apr 13 21:55:34 localhost kernel:  [] kthread+0xb5/0xe1
Apr 13 21:55:34 localhost kernel:  [] kernel_thread_helper+0x7/0x10
[...repeat ad nauseum...]

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