From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Gleixner Subject: Re: rt5, sleeping function called from invalid context Date: Thu, 28 Jul 2011 21:39:43 +0200 (CEST) Message-ID: References: <4E31B6F3.80602@am.sony.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: linux-rt-users@vger.kernel.org To: Frank Rowand Return-path: Received: from www.linutronix.de ([62.245.132.108]:57882 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754590Ab1G1Tjp (ORCPT ); Thu, 28 Jul 2011 15:39:45 -0400 In-Reply-To: <4E31B6F3.80602@am.sony.com> Sender: linux-rt-users-owner@vger.kernel.org List-ID: On Thu, 28 Jul 2011, Frank Rowand wrote: > Thomas, > > Here is one of my current BUGs, from rt5 (same panda board, same config): > > > BUG: sleeping function called from invalid context at kernel/rtmutex.c:645 > in_atomic(): 0, irqs_disabled(): 128, pid: 599, name: bash > 2 locks held by bash/599: > #0: (tty_mutex){+.+.+.}, at: [] tty_open+0x4c/0x4c4 > #1: (big_tty_mutex){+.+.+.}, at: [] tty_lock+0x2c/0x54 > irq event stamp: 18015 > hardirqs last enabled at (18014): [] _raw_spin_unlock_irqrestore+0x60/0x74 > hardirqs last disabled at (18015): [] serial_omap_console_write+0x28/0x230 > softirqs last enabled at (0): [] copy_process+0x364/0xf84 > softirqs last disabled at (0): [< (null)>] (null) > [] (unwind_backtrace+0x0/0xf0) from [] (rt_spin_lock+0x24/0x5c) > [] (rt_spin_lock+0x24/0x5c) from [] (serial_omap_console_write+0x1d4/0x230) > [] (serial_omap_console_write+0x1d4/0x230) from [] (__call_console_drivers+0xcc/0xf4 > ) > [] (__call_console_drivers+0xcc/0xf4) from [] (console_unlock+0x158/0x210) > [] (console_unlock+0x158/0x210) from [] (console_device+0x54/0x60) > [] (console_device+0x54/0x60) from [] (tty_open+0x3b8/0x4c4) > [] (tty_open+0x3b8/0x4c4) from [] (chrdev_open+0x180/0x260) > [] (chrdev_open+0x180/0x260) from [] (__dentry_open+0x1d4/0x348) > [] (__dentry_open+0x1d4/0x348) from [] (nameidata_to_filp+0x5c/0x64) > [] (nameidata_to_filp+0x5c/0x64) from [] (do_last+0x180/0x698) > [] (do_last+0x180/0x698) from [] (path_openat+0xb8/0x3f8) > [] (path_openat+0xb8/0x3f8) from [] (do_filp_open+0x30/0x84) > [] (do_filp_open+0x30/0x84) from [] (do_sys_open+0xf4/0x188) > [] (do_sys_open+0xf4/0x188) from [] (ret_fast_syscall+0x0/0x3c) https://lkml.org/lkml/2011/7/28/114 Thanks, tglx