Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030579AbVLWQcs (ORCPT ); Fri, 23 Dec 2005 11:32:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030581AbVLWQcs (ORCPT ); Fri, 23 Dec 2005 11:32:48 -0500 Received: from mxsf38.cluster1.charter.net ([209.225.28.165]:11992 "EHLO mxsf38.cluster1.charter.net") by vger.kernel.org with ESMTP id S1030579AbVLWQcr (ORCPT ); Fri, 23 Dec 2005 11:32:47 -0500 X-IronPort-AV: i="3.99,290,1131339600"; d="scan'208"; a="1774950524:sNHT18076440" Message-ID: <43AC2607.1050707@cybsft.com> Date: Fri, 23 Dec 2005 10:29:59 -0600 From: "K.R. Foley" Organization: Cybersoft Solutions, Inc. User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Steven Rostedt CC: linux-kernel , Ingo Molnar , Lee Revell , John Rigg Subject: Re: 2.6.15-rc5-rt4: BUG: swapper:0 task might have lost a preemption check! References: <1135306534.4473.1.camel@mindpipe> <43AB6B89.8020409@cybsft.com> <1135352277.6652.2.camel@localhost.localdomain> In-Reply-To: <1135352277.6652.2.camel@localhost.localdomain> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3026 Lines: 80 Steven Rostedt wrote: > On Thu, 2005-12-22 at 21:14 -0600, K.R. Foley wrote: >> Lee Revell wrote: >>> Got this on boot. Same .config as the last one I sent you. >>> >>> VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci0000:00:11.1 >>> ide1: BM-DMA at 0xe008-0xe00f, BIOS settings: hdc:DMA, hdd:pio >>> Probing IDE interface ide1... >>> BUG: swapper:0 task might have lost a preemption check! >>> [] dump_stack+0x1c/0x20 (20) >>> [] preempt_enable_no_resched+0x5a/0x60 (20) >>> [] cpu_idle+0x79/0xb0 (12) >>> [] _stext+0x40/0x50 (28) >>> [] start_kernel+0x176/0x1d0 (20) >>> [] 0xc0100199 (1086889999) >>> --------------------------- >>> | preempt count: 00000000 ] >>> | 0-level deep critical section nesting: >>> ---------------------------------------- >>> >>> > > > OK, I just found an SMP bug, and here's the patch. Maybe this will help > you kr. I'm currently running x86_64 SMP with 2.6.15-rc5-rt4 with this > and my softirq-no-hrtimers patch I sent earlier. > > -- Steve > > Index: linux-2.6.15-rc5-rt4/kernel/workqueue.c > =================================================================== > --- linux-2.6.15-rc5-rt4.orig/kernel/workqueue.c 2005-12-23 10:23:25.000000000 -0500 > +++ linux-2.6.15-rc5-rt4/kernel/workqueue.c 2005-12-23 10:25:21.000000000 -0500 > @@ -370,10 +370,17 @@ > void set_workqueue_thread_prio(struct workqueue_struct *wq, int cpu, > int policy, int rt_priority, int nice) > { > - struct task_struct *p = wq->cpu_wq[cpu].thread; > + struct cpu_workqueue_struct *cwq; > + struct task_struct *p; > struct sched_param param = { .sched_priority = rt_priority }; > + unsigned long flags; > int ret; > > + cwq = per_cpu_ptr(wq->cpu_wq, cpu); > + spin_lock_irqsave(&cwq->lock, flags); > + p = cwq->thread; > + spin_unlock_irqrestore(&cwq->lock, flags); > + > set_user_nice(p, nice); > ret = sys_sched_setscheduler(p->pid, policy, ¶m); > if (ret) > > > OK. The BUG still exists (output below) but it does boot now with the above patch applied (THANKS Steven!), which would seem to imply the two weren't related. ARGH! :) Dec 23 10:16:27 porky kernel: Event source lapic installed with caps set: 06 Dec 23 10:16:27 porky kernel: BUG: swapper:0 task might have lost a preemption check! Dec 23 10:16:27 porky kernel: Brought up 2 CPUs Dec 23 10:16:27 porky kernel: checking if image is initramfs... it is Dec 23 10:16:27 porky kernel: [] dump_stack+0x1e/0x20 (20) Dec 23 10:16:27 porky kernel: [] preempt_enable_no_resched+0x5f/0x70 (20) Dec 23 10:16:27 porky kernel: [] cpu_idle+0xb2/0x100 (40) Dec 23 10:16:27 porky kernel: [] start_secondary+0x296/0x340<6>Freeing initrd memory: 452k freed -- kr - 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/