mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nathan Lynch <ntl@pobox.com>
To: Dave Jones <davej@redhat.com>,
	Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: cpu hotplug sleeping from invalid context
Date: Tue, 23 May 2006 14:54:45 -0500	[thread overview]
Message-ID: <20060523195445.GB11414@localdomain> (raw)
In-Reply-To: <20060522183534.GA8920@redhat.com>

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).


  parent reply	other threads:[~2006-05-23 19:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]
2006-05-23 14:12 shin, jacob

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060523195445.GB11414@localdomain \
    --to=ntl@pobox.com \
    --cc=davej@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®