From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stanislaw Gruszka Subject: [BUG 3.7-rc1] nouveau cli->mutex possible recursive locking detected Date: Tue, 16 Oct 2012 14:43:48 +0200 Message-ID: <20121016124348.GB2274@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org To: dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org, Ben Skeggs List-Id: dri-devel@lists.freedesktop.org I have this lockdep warning on wireless-testing tree based on 3.7-rc1 (no other patches except wireless bits). ============================================= Restarting tasks ... done. [ INFO: possible recursive locking detected ] 3.7.0-rc1-wl+ #2 Not tainted --------------------------------------------- Xorg/2269 is trying to acquire lock: (&cli->mutex){+.+.+.}, at: [] nouveau_bo_move_m2mf+0x5f/0x170 [nouveau] but task is already holding lock: (&cli->mutex){+.+.+.}, at: [] nouveau_abi16_get+0x34/0x100 [nouveau] other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&cli->mutex); lock(&cli->mutex); *** DEADLOCK *** May be due to missing lock nesting notation 1 lock held by Xorg/2269: #0: (&cli->mutex){+.+.+.}, at: [] nouveau_abi16_get+0x34/0x100 [nouveau] stack backtrace: Pid: 2269, comm: Xorg Not tainted 3.7.0-rc1-wl+ #2 Call Trace: [] print_deadlock_bug+0xf4/0x100 [] validate_chain+0x549/0x7e0 [] __lock_acquire+0x367/0x580 [] ? nouveau_bo_move_m2mf+0x5f/0x170 [nouveau] [] lock_acquire+0xa4/0x120 [] ? nouveau_bo_move_m2mf+0x5f/0x170 [nouveau] [] ? _raw_spin_unlock_irqrestore+0x40/0x80 [] __mutex_lock_common+0x47/0x3f0 [] ? nouveau_bo_move_m2mf+0x5f/0x170 [nouveau] [] ? nv84_graph_tlb_flush+0x291/0x2b0 [nouveau] [] ? _nouveau_gpuobj_wr32+0x26/0x30 [nouveau] [] ? nouveau_bo_move_m2mf+0x5f/0x170 [nouveau] [] mutex_lock_nested+0x37/0x50 [] nouveau_bo_move_m2mf+0x5f/0x170 [nouveau] [] nouveau_bo_move+0xe3/0x330 [nouveau] [] ttm_bo_handle_move_mem+0x2bd/0x670 [ttm] [] ttm_bo_move_buffer+0x12e/0x150 [ttm] [] ttm_bo_validate+0x99/0x130 [ttm] [] nouveau_bo_validate+0x23/0x30 [nouveau] [] validate_list+0xae/0x2c0 [nouveau] [] nouveau_gem_pushbuf_validate+0xa2/0x1e0 [nouveau] [] nouveau_gem_ioctl_pushbuf+0x22c/0x8a0 [nouveau] [] drm_ioctl+0x355/0x570 [drm] [] ? do_sync_read+0xaa/0xf0 [] ? nouveau_gem_pushbuf_validate+0x1e0/0x1e0 [nouveau] [] do_vfs_ioctl+0x8c/0x350 [] ? sysret_check+0x22/0x5d [] sys_ioctl+0xa1/0xb0 [] ? trace_hardirqs_on_thunk+0x3a/0x3f [] system_call_fastpath+0x16/0x1b