Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261183AbUJWNrp (ORCPT ); Sat, 23 Oct 2004 09:47:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261184AbUJWNrp (ORCPT ); Sat, 23 Oct 2004 09:47:45 -0400 Received: from smtp1.netcabo.pt ([212.113.174.28]:26845 "EHLO exch01smtp09.hdi.tvcabo") by vger.kernel.org with ESMTP id S261183AbUJWNrj (ORCPT ); Sat, 23 Oct 2004 09:47:39 -0400 Message-ID: <32989.192.168.1.5.1098539101.squirrel@192.168.1.5> In-Reply-To: <20041023125104.GA10883@elte.hu> References: <20041019124605.GA28896@elte.hu> <20041019180059.GA23113@elte.hu> <20041020094508.GA29080@elte.hu> <20041021132717.GA29153@elte.hu> <20041022133551.GA6954@elte.hu> <20041022155048.GA16240@elte.hu> <20041022175633.GA1864@elte.hu> <32871.192.168.1.5.1098491242.squirrel@192.168.1.5> <20041023102909.GD30270@elte.hu> <32880.192.168.1.5.1098534617.squirrel@192.168.1.5> <20041023125104.GA10883@elte.hu> Date: Sat, 23 Oct 2004 14:45:01 +0100 (WEST) Subject: Re: [patch] Real-Time Preemption, -RT-2.6.9-mm1-U10.2 From: "Rui Nuno Capela" To: "Ingo Molnar" Cc: linux-kernel@vger.kernel.org, "Lee Revell" , mark_h_johnson@raytheon.com, "K.R. Foley" , "Bill Huey" , "Adam Heath" , "Florian Schmidt" , "Thomas Gleixner" , "Michal Schmidt" , "Fernando Pablo Lopez-Lezcano" , "Alexander Batyrshin" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Priority: 3 (Normal) Importance: Normal X-OriginalArrivalTime: 23 Oct 2004 13:47:37.0865 (UTC) FILETIME=[DB9CDF90:01C4B906] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3996 Lines: 114 Ingo Molnar wrote: > > Rui Nuno Capela wrote: > >> > does the patch below help? > >> Nope. Same result: > >> SysRq : <3>BUG: sleeping function called from invalid context IRQ 1(776) >> at kernel/mutex.c:37 >> in_atomic():0 [00000000], irqs_disabled():1 > > interrupts are disabled. You used a -RT-U10.2/3 kernel, and have > CONFIG_REALTIME enabled, right? Do you have this in > drivers/net/netconsole.c, line 77: > > #ifdef PREEMPT_REALTIME > /* > * A bit hairy. Netconsole uses mutexes (indirectly) and > * thus must have interrupts enabled: > */ > local_irq_enable(); > #endif > > correct? Could you do this a few lines below: > > WARN_ON_RT(irqs_disabled()); > netpoll_send_udp(&np, msg, frag); > WARN_ON_RT(irqs_disabled()); > > to figure out who disables interrupts. Also, could you add the same two > lines to net/core/netpoll.c, line 83: > > WARN_ON_RT(irqs_disabled()); > np->dev->poll_controller(np->dev); > WARN_ON_RT(irqs_disabled()); > > and send me either the full bootlog, or the _first_ such BUG message > you'll be getting. Which network controller is this? > OK. All affirmative. NIC is natsemi. Here it is: SysRq : IRQ 1/776: BUG in write_msg at drivers/net/netconsole.c:87 [] dump_stack+0x1e/0x20 (20) [] write_msg+0xab/0xf4 [netconsole] (52) [] __call_console_drivers+0x51/0x60 (32) [] call_console_drivers+0x6d/0x147 (40) [] release_console_sem+0x48/0x100 (36) [] vprintk+0x127/0x174 (36) [] printk+0x18/0x1a (16) [] __handle_sysrq+0x38/0xed (40) [] kbd_event+0xeb/0xfa (40) [] input_event+0x160/0x3d4 (44) [] atkbd_report_key+0x3b/0x95 (32) [] atkbd_interrupt+0x25c/0x590 (60) [] serio_interrupt+0x4f/0xa5 (44) [] i8042_interrupt+0xb8/0x1b8 (40) [] handle_IRQ_event+0x48/0x79 (32) [] do_hardirq+0x86/0x123 (40) [] do_irqd+0x98/0xc9 (36) [] kthread+0x9c/0xc9 (48) [] kernel_thread_helper+0x5/0xb (548454420) preempt count: 00000001 . 1-level deep critical section nesting: .. entry 1: print_traces+0x16/0x48 [] / (dump_stack+0x1e/0x20 []) BUG: sleeping function called from invalid context IRQ 1(776) at kernel/mutex.c:37 in_atomic():0 [00000000], irqs_disabled():1 [] dump_stack+0x1e/0x20 (20) [] __might_sleep+0xb2/0xc7 (36) [] _mutex_lock+0x39/0x5e (28) [] _mutex_lock_irqsave+0x11/0x15 (12) [] refill_skbs+0x13/0x6d (20) [] find_skb+0x5d/0x9d (24) [] netpoll_send_udp+0x3b/0x298 (48) [] write_msg+0x50/0xf4 [netconsole] (52) [] __call_console_drivers+0x51/0x60 (32) [] call_console_drivers+0x6d/0x147 (40) [] release_console_sem+0x48/0x100 (36) [] vprintk+0x127/0x174 (36) [] printk+0x18/0x1a (16) [] __handle_sysrq+0x38/0xed (40) [] kbd_event+0xeb/0xfa (40) [] input_event+0x160/0x3d4 (44) [] atkbd_report_key+0x3b/0x95 (32) [] atkbd_interrupt+0x25c/0x590 (60) [] serio_interrupt+0x4f/0xa5 (44) [] i8042_interrupt+0xb8/0x1b8 (40) [] handle_IRQ_event+0x48/0x79 (32) [] do_hardirq+0x86/0x123 (40) [] do_irqd+0x98/0xc9 (36) [] kthread+0x9c/0xc9 (48) [] kernel_thread_helper+0x5/0xb (548454420) preempt count: 00000001 . 1-level deep critical section nesting: .. entry 1: print_traces+0x16/0x48 [] / (dump_stack+0x1e/0x20 []) Bye. -- rncbc aka Rui Nuno Capela rncbc@rncbc.org - 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/