From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@bugzilla.kernel.org Subject: [Bug 84041] New: I built my kernel with lockdep, and caught a possible deadlock while playing video using vdpau on radeon driver. Date: Sun, 07 Sep 2014 17:47:15 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by gabe.freedesktop.org (Postfix) with ESMTP id 1625489F73 for ; Sun, 7 Sep 2014 10:47:18 -0700 (PDT) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E68162012F for ; Sun, 7 Sep 2014 17:47:16 +0000 (UTC) Received: from bugzilla1.web.kernel.org (bugzilla1.web.kernel.org [172.20.200.51]) by mail.kernel.org (Postfix) with ESMTP id F29432012D for ; Sun, 7 Sep 2014 17:47:15 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org https://bugzilla.kernel.org/show_bug.cgi?id=84041 Bug ID: 84041 Summary: I built my kernel with lockdep, and caught a possible deadlock while playing video using vdpau on radeon driver. Product: Drivers Version: 2.5 Kernel Version: Possible deadlock when using dri PRIME Hardware: All OS: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: Video(DRI - non Intel) Assignee: drivers_video-dri@kernel-bugs.osdl.org Reporter: yshuiv7@gmail.com Regression: No dmesg: [ 166.768423] ============================================= [ 166.768424] [ INFO: possible recursive locking detected ] [ 166.768429] 3.16.1 #7 Not tainted [ 166.768430] --------------------------------------------- [ 166.768432] Xorg.bin/319 is trying to acquire lock: [ 166.768435] (&dev->struct_mutex){+.+.+.}, at: [] i915_gem_unmap_dma_buf+0x33/0xd0 [ 166.768461] but task is already holding lock: [ 166.768462] (&dev->struct_mutex){+.+.+.}, at: [] drm_gem_object_handle_unreference_unlocked+0x102/0x130 [ 166.768475] other info that might help us debug this: [ 166.768477] Possible unsafe locking scenario: [ 166.768479] CPU0 [ 166.768480] ---- [ 166.768481] lock(&dev->struct_mutex); [ 166.768483] lock(&dev->struct_mutex); [ 166.768484] *** DEADLOCK *** [ 166.768486] May be due to missing lock nesting notation [ 166.768488] 1 lock held by Xorg.bin/319: [ 166.768489] #0: (&dev->struct_mutex){+.+.+.}, at: [] drm_gem_object_handle_unreference_unlocked+0x102/0x130 [ 166.768493] stack backtrace: [ 166.768496] CPU: 0 PID: 319 Comm: Xorg.bin Not tainted 3.16.1-zen-v7+ #7 [ 166.768499] Hardware name: LENOVO 20347/Lenovo Y40-70, BIOS 99CN24WW(V1.07) 07/28/2014 [ 166.768500] ffffffff825f02c0 ffff880098dcfae0 ffffffff8174e942 ffff88024f065fa0 [ 166.768504] ffff880098dcfbb0 ffffffff810ca996 ffff8802553b8e88 00000000fffff200 [ 166.768506] ffff880098dcfb20 ffffffff810c8abd ffff8802553b8ea8 ffff88024f066878 [ 166.768510] Call Trace: [ 166.768520] [] dump_stack+0x4d/0x6f [ 166.768528] [] __lock_acquire+0x1b06/0x1fa0 [ 166.768531] [] ? trace_hardirqs_on_caller+0x15d/0x200 [ 166.768534] [] lock_acquire+0x95/0x130 [ 166.768537] [] ? i915_gem_unmap_dma_buf+0x33/0xd0 [ 166.768542] [] mutex_lock_nested+0x63/0x410 [ 166.768544] [] ? i915_gem_unmap_dma_buf+0x33/0xd0 [ 166.768546] [] ? mark_held_locks+0x75/0xa0 [ 166.768549] [] i915_gem_unmap_dma_buf+0x33/0xd0 [ 166.768556] [] dma_buf_unmap_attachment+0x4c/0x70 [ 166.768564] [] drm_prime_gem_destroy+0x22/0x40 [ 166.768662] [] radeon_gem_object_free+0x33/0x40 [radeon] [ 166.768665] [] drm_gem_object_free+0x27/0x40 [ 166.768667] [] drm_gem_object_handle_unreference_unlocked+0x120/0x130 [ 166.768671] [] drm_gem_handle_delete+0xba/0x110 [ 166.768674] [] drm_gem_close_ioctl+0x25/0x30 [ 166.768676] [] drm_ioctl+0x197/0x680 [ 166.768680] [] ? _raw_spin_unlock_irqrestore+0x55/0x70 [ 166.768682] [] ? trace_hardirqs_on_caller+0x15d/0x200 [ 166.768684] [] ? trace_hardirqs_on+0xd/0x10 [ 166.768703] [] radeon_drm_ioctl+0x4c/0x80 [radeon] [ 166.768708] [] do_vfs_ioctl+0x2f0/0x4f0 [ 166.768710] [] ? __fget+0xac/0xf0 [ 166.768712] [] ? __fget+0x5/0xf0 [ 166.768714] [] SyS_ioctl+0x41/0x80 [ 166.768717] [] tracesys+0xd4/0xd9 -- You are receiving this mail because: You are watching the assignee of the bug.