Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932975AbZDBSUB (ORCPT ); Thu, 2 Apr 2009 14:20:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932824AbZDBSTU (ORCPT ); Thu, 2 Apr 2009 14:19:20 -0400 Received: from casper.infradead.org ([85.118.1.10]:34890 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932642AbZDBSTT (ORCPT ); Thu, 2 Apr 2009 14:19:19 -0400 Subject: Re: mutex_lock_slowpath warning using mxser tty driver (input/output error) From: Peter Zijlstra To: Christophe Lermytte Cc: linux-kernel@vger.kernel.org, Alan Cox , Jiri Slaby In-Reply-To: <1238689565.14822.99.camel@thom> References: <1238689565.14822.99.camel@thom> Content-Type: text/plain Date: Thu, 02 Apr 2009 20:19:09 +0200 Message-Id: <1238696349.5133.25.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2923 Lines: 66 On Thu, 2009-04-02 at 18:26 +0200, Christophe Lermytte wrote: > Hi all, > > I have upgraded one of my automated test setups from 2.6.27 to 2.6.29. I > now have issues with using a Moxa multiport serial device, where I had > none before :-) > > > MOXA Smartio/Industio family driver version 2.0.4 > > mxser 0000:03:02.0: found MOXA C168H/PCI series board (BusNo=3, > DevNo=2) > > mxser 0000:03:02.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18 > > mxser: max. baud rate = 921600 bps > > When I cat /dev/setup3 (which is a symlink to /dev/ttyMI3), which is > connected to a device that outputs data (tried it with one @ 115200bps > and one @ 9600bps), I get the following kernel trace: > > ------------[ cut here ]------------ > WARNING: at kernel/mutex.c:135 __mutex_lock_slowpath+0x50/0x211() > Hardware name: OptiPlex 755 > Modules linked in: i915 drm i2c_algo_bit ipv6 8021q dummy fuse arc4 ecb > snd_hda_codec_analog snd_hda_intel snd_hda_codec rtl8187 mac80211 usbhid > i2c_i801 snd_pcm serio_raw eeprom_93cx6 iTCO_wdt i2c_core > iTCO_vendor_support cfg80211 snd_timer snd snd_page_alloc rtc_cmos > rtc_core intel_agp agpgart mxser ppdev thermal uhci_hcd sg rtc_lib > parport_pc processor parport button thermal_sys dcdbas > Pid: 0, comm: swapper Not tainted 2.6.29-autodistro-r4 #1 > Call Trace: > [] warn_slowpath+0x74/0x8a > [] ? get_page_from_freelist+0xc1/0x3c6 > [] ? usb_hcd_submit_urb+0x88d/0x95b > [] ? _spin_lock+0x8/0xb > [] ? cache_alloc_refill+0x19f/0x499 > [] __mutex_lock_slowpath+0x50/0x211 > [] mutex_lock+0x12/0x15 > [] echo_set_canon_col+0x14/0x37 > [] n_tty_receive_buf+0x2f3/0xe0c > [] ? _spin_lock+0x8/0xb > [] ? cache_alloc_refill+0x19f/0x499 > [] ? _spin_lock_irqsave+0x28/0x2f > [] ? lock_timer_base+0x1f/0x3e > [] ? default_spin_lock_flags+0x8/0xb > [] ? default_spin_lock_flags+0x8/0xb > [] flush_to_ldisc+0xe9/0x159 > [] tty_flip_buffer_push+0x41/0x51 > [] mxser_receive_chars+0x237/0x246 [mxser] > [] mxser_interrupt+0x18e/0x228 [mxser] > [] handle_IRQ_event+0x2a/0x5a > [] handle_fasteoi_irq+0x7b/0xb4 > [] ? handle_fasteoi_irq+0x0/0xb4 > [] ? common_interrupt+0x27/0x2c > [] ? mwait_idle+0x4c/0x5b > [] ? cpu_idle+0x59/0x6d > [] ? start_secondary+0x19f/0x1a4 > ---[ end trace 433a17e91cdf059a ]--- It appears to want to lock a mutex in interrupt context, something that's a definite no-no. CCed the folks who might know a thing or two about the driver. -- 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/