Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751209AbWEWTyt (ORCPT ); Tue, 23 May 2006 15:54:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751211AbWEWTyt (ORCPT ); Tue, 23 May 2006 15:54:49 -0400 Received: from rune.pobox.com ([208.210.124.79]:29575 "EHLO rune.pobox.com") by vger.kernel.org with ESMTP id S1751209AbWEWTyt (ORCPT ); Tue, 23 May 2006 15:54:49 -0400 Date: Tue, 23 May 2006 14:54:45 -0500 From: Nathan Lynch To: Dave Jones , Linux Kernel Subject: Re: cpu hotplug sleeping from invalid context Message-ID: <20060523195445.GB11414@localdomain> References: <20060522183534.GA8920@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060522183534.GA8920@redhat.com> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1104 Lines: 32 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 > __alloc_pages+0x32/0x2a8 > printk+0x1f/0xaf > schedule+0xa21/0xa8a > get_zeroed_page+0x31/0x3d > cpu_init+0x10a/0x323 > start_secondary+0xc/0x3ef > 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). - 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/