From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756853AbYHKTnM (ORCPT ); Mon, 11 Aug 2008 15:43:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753773AbYHKTm6 (ORCPT ); Mon, 11 Aug 2008 15:42:58 -0400 Received: from mx2.mail.elte.hu ([157.181.151.9]:59968 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753098AbYHKTm5 (ORCPT ); Mon, 11 Aug 2008 15:42:57 -0400 Date: Mon, 11 Aug 2008 21:42:40 +0200 From: Ingo Molnar To: Jaswinder Singh Cc: LKML , Peter Oruba , "H. Peter Anvin" , Thomas Gleixner Subject: Re: BUG: scheduling while atomic: swapper/1/0x00000002 in 2.6.27-rc1-tip Message-ID: <20080811194240.GJ12788@elte.hu> References: <3f9a31f40808052015n400ef4d3p19f11a7e57084371@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3f9a31f40808052015n400ef4d3p19f11a7e57084371@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Jaswinder Singh wrote: > Hello Ingo, > > I am getting this while booting : > > hub 4-0:1.0: USB hub found > hub 4-0:1.0: 2 ports detected > BUG: scheduling while atomic: swapper/1/0x00000002 > Modules linked in: > Pid: 1, comm: swapper Not tainted 2.6.27-rc1-tip #13 > [] schedule+0xa9/0x68a > [] idr_get_empty_slot+0x13b/0x1e5 > [] idr_get_empty_slot+0x13b/0x1e5 > [] schedule_timeout+0x13/0x99 > [] __wake_up+0x29/0x39 > [] wait_for_common+0xab/0x105 > [] default_wake_function+0x0/0x8 > [] call_usermodehelper_exec+0x62/0xa2 > [] kobject_uevent_env+0x2d4/0x308 > [] device_add+0x3ab/0x4e6 > [] device_create_vargs+0x78/0x99 > [] device_create+0x1e/0x24 > [] misc_register+0xb4/0xef > [] microcode_init+0x2a/0xb0 > [] _stext+0x3a/0x12a > [] microcode_intel_module_init+0x0/0x35 > [] try_to_wake_up+0x154/0x15d > [] __create_workqueue_key+0xcf/0x1c1 > [] kernel_init+0x177/0x1db > [] kernel_init+0x0/0x1db > [] kernel_thread_helper+0x7/0x10 > ======================= > BUG: scheduling while atomic: swapper/1/0x00000002 > Modules linked in: > Pid: 1, comm: swapper Not tainted 2.6.27-rc1-tip #13 > [] schedule+0xa9/0x68a > [] idr_get_empty_slot+0x13b/0x1e5 > [] schedule_timeout+0x13/0x99 > [] __wake_up+0x29/0x39 > [] wait_for_common+0xab/0x105 > [] default_wake_function+0x0/0x8 > [] call_usermodehelper_exec+0x62/0xa2 > [] kobject_uevent_env+0x2d4/0x308 > [] device_add+0x3ab/0x4e6 > [] strlcpy+0x11/0x3d > [] platform_device_add+0xc9/0xf7 > [] platform_device_register_simple+0x34/0x4a > [] microcode_init+0xa0/0xb0 > [] _stext+0x3a/0x12a > [] microcode_intel_module_init+0x0/0x35 > [] try_to_wake_up+0x154/0x15d > [] __create_workqueue_key+0xcf/0x1c1 > [] kernel_init+0x177/0x1db > [] kernel_init+0x0/0x1db > [] kernel_thread_helper+0x7/0x10 > ======================= > Microcode Update Driver: v2.00 > > initcall microcode_intel_module_init+0x0/0x35 returned with preemption > imbalance > highmem bounce pool size: 64 pages > > > Attaching config for reference. i've Cc:-ed Peter Oruba who has changed this code recently. Peter, there's apparently a preemption count leak in the new microcode codepaths. Either a missing unlock or some cpu_get/put imbalance or similar mishap. Any ideas? Ingo