Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S270680AbUJUO1r (ORCPT ); Thu, 21 Oct 2004 10:27:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264881AbUJUOXw (ORCPT ); Thu, 21 Oct 2004 10:23:52 -0400 Received: from mx2.elte.hu ([157.181.151.9]:32470 "EHLO mx2.elte.hu") by vger.kernel.org with ESMTP id S270693AbUJUOUz (ORCPT ); Thu, 21 Oct 2004 10:20:55 -0400 Date: Thu, 21 Oct 2004 16:22:15 +0200 From: Ingo Molnar To: Mark_H_Johnson@raytheon.com Cc: Bill Huey , Adam Heath , "K.R. Foley" , linux-kernel@vger.kernel.org, Florian Schmidt , Fernando Pablo Lopez-Lezcano , Lee Revell , Rui Nuno Capela , Thomas Gleixner , Michal Schmidt Subject: Re: [patch] Real-Time Preemption, -RT-2.6.9-rc4-mm1-U8 Message-ID: <20041021142215.GA3972@elte.hu> References: <20041021141439.GB2875@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041021141439.GB2875@elte.hu> User-Agent: Mutt/1.4.1i X-ELTE-SpamVersion: MailScanner 4.31.6-itk1 (ELTE 1.2) SpamAssassin 2.63 ClamAV 0.73 X-ELTE-VirusStatus: clean X-ELTE-SpamCheck: no X-ELTE-SpamCheck-Details: score=-2.201, required 5.9, BAYES_00 -4.90, SORTED_RECIPS 2.70 X-ELTE-SpamLevel: X-ELTE-SpamScore: -2 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1384 Lines: 31 * Ingo Molnar wrote: > the soundcard IRQ trace you got is interesting: > > BUG: sleeping function called from invalid context X(2948) at kernel/mutex.c:25 Oct 21 07:53:02 localhost kernel: in_atomic():1 [00010000], irqs_disabled():0 > [] __might_sleep+0xca/0xe0 (12) > [] _mutex_lock+0x26/0x50 (36) > [] snd_audiopci_interrupt+0x46/0xf0 [snd_ens1371] (20) > [] handle_IRQ_event+0x46/0x80 (24) > [] __do_IRQ+0x107/0x160 (32) > [] do_IRQ+0x59/0x90 (36) > [] common_interrupt+0x18/0x20 (20) > preempt count: 00010001 > > do you have PREEMPT_REALTIME enabled? The above trace is a direct > interrupt - only the timer interrupt is allowed to execute directly in > the PREEMPT_REALTIME model - things break badly if it happens for any > other interrupt (such as the soundcard IRQ). this also seems to be the major cause of the other problems in your log: kernel preempting off a hardirq context and then confusing other kernel code. It's surprising that it booted up at all! Now how did the soundcard IRQ end up being non-threaded? Ingo - 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/