Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759619AbYGaV70 (ORCPT ); Thu, 31 Jul 2008 17:59:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757923AbYGaV6k (ORCPT ); Thu, 31 Jul 2008 17:58:40 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:33630 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759452AbYGaV6i (ORCPT ); Thu, 31 Jul 2008 17:58:38 -0400 Date: Thu, 31 Jul 2008 14:57:39 -0700 From: Andrew Morton To: "Zdenek Kabelac" Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: Re: INFO: possible recursive locking detected ps2_command Message-Id: <20080731145739.fe8923be.akpm@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.8.20; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3962 Lines: 94 (cc linux-input) On Thu, 31 Jul 2008 11:41:25 +0200 "Zdenek Kabelac" wrote: > Hi > > During mouse unplugging from psaux connector from the laptops' docking > station I've got attached INFO trace. > (laptops still has synaptics device) > > Also for unknown reason to me psaux mouse & synaptic device do not > work somehow together - is it hw limitation > of /dev/input/mice interface? > (USB mouse and synaptics do work quite well together) > > [ INFO: possible recursive locking detected ] > 2.6.27-rc1 #48 (it's 2.6.27-rc1) > --------------------------------------------- > kseriod/166 is trying to acquire lock: > (&ps2dev->cmd_mutex){--..}, at: [] ps2_command+0x5e/0x460 > > but task is already holding lock: > (&ps2dev->cmd_mutex){--..}, at: [] ps2_command+0x5e/0x460 > > other info that might help us debug this: > 4 locks held by kseriod/166: > #0: (serio_mutex){--..}, at: [] serio_thread+0x3e/0x410 > #1: (&serio->drv_mutex){--..}, at: [] > serio_connect_driver+0x2b/0x50 > #2: (psmouse_mutex){--..}, at: [] > psmouse_connect+0x30/0x2c0 [psmouse] > #3: (&ps2dev->cmd_mutex){--..}, at: [] > ps2_command+0x5e/0x460 > > stack backtrace: > Pid: 166, comm: kseriod Not tainted 2.6.27-rc1 #48 > > Call Trace: > [] __lock_acquire+0xcea/0x13b0 > [] ? trace_hardirqs_off_caller+0x21/0xc0 > [] ? trace_hardirqs_off+0xd/0x10 > [] ? ps2_command+0x5e/0x460 > [] lock_acquire+0x96/0xe0 > [] ? ps2_command+0x5e/0x460 > [] mutex_lock_nested+0xc1/0x340 > [] ? ps2_command+0x5e/0x460 > [] ? native_sched_clock+0x90/0xb0 > [] ps2_command+0x5e/0x460 > [] ? trace_hardirqs_off_caller+0x21/0xc0 > [] ? get_lock_stats+0x34/0x70 > [] psmouse_sliced_command+0x2d/0x90 [psmouse] > [] ? ps2_sendbyte+0x48/0x130 > [] synaptics_pt_write+0x27/0x60 [psmouse] > [] ? _spin_unlock_irq+0x3d/0x80 > [] ps2_sendbyte+0x5d/0x130 > [] ? sub_preempt_count+0x80/0x120 > [] ps2_command+0xfd/0x460 > [] ? sub_preempt_count+0x80/0x120 > [] ? _spin_unlock_irq+0x3d/0x80 > [] psmouse_probe+0x27/0xa0 [psmouse] > [] ? serio_open+0x11/0x50 > [] psmouse_connect+0x178/0x2c0 [psmouse] > [] serio_connect_driver+0x36/0x50 > [] serio_driver_probe+0x1b/0x20 > [] driver_probe_device+0xa2/0x1e0 > [] ? __device_attach+0x0/0x10 > [] __device_attach+0x9/0x10 > [] bus_for_each_drv+0x6b/0xa0 > [] device_attach+0x88/0x90 > [] bus_attach_device+0x55/0x80 > [] device_add+0x4f9/0x610 > [] ? sub_preempt_count+0x80/0x120 > [] serio_thread+0x23c/0x410 > [] ? autoremove_wake_function+0x0/0x40 > [] ? serio_thread+0x0/0x410 > [] kthread+0x49/0x90 > [] child_rip+0xa/0x11 > [] ? finish_task_switch+0x57/0x110 > [] ? _spin_unlock_irq+0x3d/0x80 > [] ? restore_args+0x0/0x30 > [] ? trace_hardirqs_off+0xd/0x10 > [] ? kthread+0x0/0x90 > [] ? child_rip+0x0/0x11 -- 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/