From: Marcin =?utf-8?Q?=C5=9Alusarz?= Subject: v3.17, i915 vs nouveau: possible recursive locking detected Date: Mon, 13 Oct 2014 20:40:33 +0200 Message-ID: <20141013184033.GA5526@marcin-Inspiron-7720> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org, nouveau@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org ============================================= [ INFO: possible recursive locking detected ] 3.17.0 #50 Not tainted --------------------------------------------- Xorg/1170 is trying to acquire lock: (&dev->struct_mutex){+.+.+.}, at: [] i915_gem_unmap_dma_buf+0x33/0xc0 [i915] but task is already holding lock: (&dev->struct_mutex){+.+.+.}, at: [] drm_gem_object_handle_unreference_unlocked+0xca/0x120 [drm] other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&dev->struct_mutex); lock(&dev->struct_mutex); *** DEADLOCK *** May be due to missing lock nesting notation 1 lock held by Xorg/1170: #0: (&dev->struct_mutex){+.+.+.}, at: [] drm_gem_object_handle_unreference_unlocked+0xca/0x120 [drm] stack backtrace: CPU: 1 PID: 1170 Comm: Xorg Not tainted 3.17.0 #50 Hardware name: Dell Inc. Inspiron 7720/04M3YM, BIOS A07 08/16/2012 ffffffff82606b80 ffff880136e27b00 ffffffff81707891 ffffffff82606b80 ffff880136e27bb8 ffffffff810e0e4f ffffffff00000000 000202000000c795 0000000000000001 0000000000000000 00000000004ec276 0000000000000300 Call Trace: [] dump_stack+0x4e/0x7a [] __lock_acquire+0x194f/0x19e0 [] lock_acquire+0x91/0x120 [] ? i915_gem_unmap_dma_buf+0x33/0xc0 [i915] [] ? i915_gem_unmap_dma_buf+0x33/0xc0 [i915] [] mutex_lock_nested+0x54/0x3d0 [] ? i915_gem_unmap_dma_buf+0x33/0xc0 [i915] [] ? mark_held_locks+0x6a/0x90 [] i915_gem_unmap_dma_buf+0x33/0xc0 [i915] [] dma_buf_unmap_attachment+0x22/0x40 [] drm_prime_gem_destroy+0x22/0x40 [drm] [] nouveau_gem_object_del+0x3b/0x60 [nouveau] [] drm_gem_object_free+0x27/0x30 [drm] [] drm_gem_object_handle_unreference_unlocked+0xe4/0x120 [drm] [] drm_gem_handle_delete+0xba/0x110 [drm] [] drm_gem_close_ioctl+0x25/0x30 [drm] [] drm_ioctl+0x1ec/0x660 [drm] [] ? __pm_runtime_resume+0x32/0x60 [] ? _raw_spin_unlock_irqrestore+0x5d/0x70 [] ? trace_hardirqs_on_caller+0xfd/0x1c0 [] ? trace_hardirqs_on+0xd/0x10 [] ? _raw_spin_unlock_irqrestore+0x42/0x70 [] nouveau_drm_ioctl+0x54/0xc0 [nouveau] [] do_vfs_ioctl+0x300/0x520 [] ? __fget+0xad/0xe0 [] ? __fget+0x5/0xe0 [] SyS_ioctl+0x81/0xa0 [] system_call_fastpath+0x1a/0x1f