linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: cpu hotplug sleeping from invalid context
@ 2006-05-23 14:12 shin, jacob
  0 siblings, 0 replies; 5+ messages in thread
From: shin, jacob @ 2006-05-23 14:12 UTC (permalink / raw)
  To: Ashok Raj, Dave Jones; +Cc: Linux Kernel, akpm

On Tuesday, May 23, 2006 12:42 AM Ashok Raj wrote:
> On Mon, May 22, 2006 at 11:35:34AM -0700, Dave Jones wrote:
>> 
>>    (2.6.17rc4-git9)
>> 
>>    echo 0 > /sys/devices/system/cpu/cpu1/online
>>    echo 1 > /sys/devices/system/cpu/cpu1/online
>> 
>>    on my dual-core notebook gets me this:
>> 
> 
> I was just purging my inbox this morning, and saw a similar report
> from Jacob Shin in the x86-64 discuss list. When i checked with
> him, he replied that this is now resolved. I didnt ask what it
> was... Jacob could you send a pointer to the fix?

http://lkml.org/lkml/2006/4/28/142

It was a simply null pointer fix.

-Jacob


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: cpu hotplug sleeping from invalid context
  2006-05-22 18:35 Dave Jones
  2006-05-23  5:42 ` Ashok Raj
  2006-05-23  5:56 ` Ashok Raj
@ 2006-05-23 19:54 ` Nathan Lynch
  2 siblings, 0 replies; 5+ messages in thread
From: Nathan Lynch @ 2006-05-23 19:54 UTC (permalink / raw)
  To: Dave Jones, Linux Kernel

Dave Jones wrote:
> (2.6.17rc4-git9)
> 
> echo 0 > /sys/devices/system/cpu/cpu1/online
> echo 1 > /sys/devices/system/cpu/cpu1/online
> 
> on my dual-core notebook gets me this:
> 
> CPU 1 is now offline
> SMP alternatives: switching to UP code
> SMP alternatives: switching to SMP code
> Booting processor 1/1 eip 3000
> CPU 1 irqstacks, hard=c0799000 soft=c0779000
> Initializing CPU#1
> BUG: sleeping function called from invalid context at mm/page_alloc.c:945
> in_atomic():0, irqs_disabled():1
>  <c04500ce> __alloc_pages+0x32/0x2a8
>  <c0425577> printk+0x1f/0xaf
>  <c060674d> schedule+0xa21/0xa8a
>  <c04503a6> get_zeroed_page+0x31/0x3d
>  <c040a117> cpu_init+0x10a/0x323
>  <c04176f5> start_secondary+0xc/0x3ef
>  <c0417afa> cpu_exit_clear+0x22/0x43

I think it's caused by arch/i386/kernel/cpu/common.c::cpu_init() doing
get_zeroed_page(GFP_KERNEL).


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: cpu hotplug sleeping from invalid context
  2006-05-22 18:35 Dave Jones
  2006-05-23  5:42 ` Ashok Raj
@ 2006-05-23  5:56 ` Ashok Raj
  2006-05-23 19:54 ` Nathan Lynch
  2 siblings, 0 replies; 5+ messages in thread
From: Ashok Raj @ 2006-05-23  5:56 UTC (permalink / raw)
  To: Dave Jones; +Cc: Linux Kernel, akpm, jacob.shin

On Mon, May 22, 2006 at 11:35:34AM -0700, Dave Jones wrote:
> 
>    (2.6.17rc4-git9)
> 
>    echo 0 > /sys/devices/system/cpu/cpu1/online
>    echo 1 > /sys/devices/system/cpu/cpu1/online
> 
>    on my dual-core notebook gets me this:
> 

Ok, i just tried on my Centrino core duo, and the same online/offline
works just fine for me on git-10. I havent tried git-9 though... could you 
give git10 a try?

ashok

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: cpu hotplug sleeping from invalid context
  2006-05-22 18:35 Dave Jones
@ 2006-05-23  5:42 ` Ashok Raj
  2006-05-23  5:56 ` Ashok Raj
  2006-05-23 19:54 ` Nathan Lynch
  2 siblings, 0 replies; 5+ messages in thread
From: Ashok Raj @ 2006-05-23  5:42 UTC (permalink / raw)
  To: Dave Jones; +Cc: Linux Kernel, jacob.shin, akpm

On Mon, May 22, 2006 at 11:35:34AM -0700, Dave Jones wrote:
> 
>    (2.6.17rc4-git9)
> 
>    echo 0 > /sys/devices/system/cpu/cpu1/online
>    echo 1 > /sys/devices/system/cpu/cpu1/online
> 
>    on my dual-core notebook gets me this:
> 

I was just purging my inbox this morning, and saw a similar report from 
Jacob Shin in the x86-64 discuss list. When i checked with him, he replied 
that this is now resolved. I didnt ask what it was... Jacob could you 
send a pointer to the fix?

Cheers,
ashok

^ permalink raw reply	[flat|nested] 5+ messages in thread

* cpu hotplug sleeping from invalid context
@ 2006-05-22 18:35 Dave Jones
  2006-05-23  5:42 ` Ashok Raj
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Dave Jones @ 2006-05-22 18:35 UTC (permalink / raw)
  To: Linux Kernel

(2.6.17rc4-git9)

echo 0 > /sys/devices/system/cpu/cpu1/online
echo 1 > /sys/devices/system/cpu/cpu1/online

on my dual-core notebook gets me this:

CPU 1 is now offline
SMP alternatives: switching to UP code
SMP alternatives: switching to SMP code
Booting processor 1/1 eip 3000
CPU 1 irqstacks, hard=c0799000 soft=c0779000
Initializing CPU#1
BUG: sleeping function called from invalid context at mm/page_alloc.c:945
in_atomic():0, irqs_disabled():1
 <c04500ce> __alloc_pages+0x32/0x2a8
 <c0425577> printk+0x1f/0xaf
 <c060674d> schedule+0xa21/0xa8a
 <c04503a6> get_zeroed_page+0x31/0x3d
 <c040a117> cpu_init+0x10a/0x323
 <c04176f5> start_secondary+0xc/0x3ef
 <c0417afa> cpu_exit_clear+0x22/0x43



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-05-23 19:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-23 14:12 cpu hotplug sleeping from invalid context shin, jacob
  -- strict thread matches above, loose matches on Subject: below --
2006-05-22 18:35 Dave Jones
2006-05-23  5:42 ` Ashok Raj
2006-05-23  5:56 ` Ashok Raj
2006-05-23 19:54 ` Nathan Lynch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).