<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Recursive locking warning with Linux v3.19-8784-gb2b89ebfc0f0"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89304">89304</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Recursive locking warning with Linux v3.19-8784-gb2b89ebfc0f0
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>DRI git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DRM/Intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jwboyer@fedoraproject.org
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>We got the following lockdep report with Linux v3.19-8794-gb2b89ebfc0f0 (right
before 4.0-rc1).  This might be optimus related?

[ INFO: possible recursive locking detected ]
3.20.0-0.rc0.git9.1.fc22.x86_64 #1 Not tainted
---------------------------------------------
Xorg/1484 is trying to acquire lock:
 (&dev->struct_mutex){+.+.+.}, at: [<ffffffffa013fac9>]
i915_gem_unmap_dma_buf+0x39/0x110 [i915]

but task is already holding lock:
 (&dev->struct_mutex){+.+.+.}, at: [<ffffffffa002eb12>]
drm_gem_object_handle_unreference_unlocked+0xc2/0x130 [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/1484:
 #0:  (&dev->struct_mutex){+.+.+.}, at: [<ffffffffa002eb12>]
drm_gem_object_handle_unreference_unlocked+0xc2/0x130 [drm]

stack backtrace:
CPU: 0 PID: 1484 Comm: Xorg Not tainted 3.20.0-0.rc0.git9.1.fc22.x86_64 #1
Hardware name: ASUSTeK COMPUTER INC. U32VJ/U32VJ, BIOS U32VJ.201 08/29/2012
 0000000000000000 000000002dfdbeed ffff8800b67779d8 ffffffff818773cd
 0000000000000000 ffffffff82bdbaf0 ffff8800b6777ad8 ffffffff811091c9
 00000000b6777ae8 ffff88012a003fc0 ffff880128f90000 0000000000000000
Call Trace:
 [<ffffffff818773cd>] dump_stack+0x4c/0x65
 [<ffffffff811091c9>] __lock_acquire+0x1bb9/0x1e20
 [<ffffffff8102f6ef>] ? save_stack_trace+0x2f/0x50
 [<ffffffff81109df7>] lock_acquire+0xc7/0x2a0
 [<ffffffffa013fac9>] ? i915_gem_unmap_dma_buf+0x39/0x110 [i915]
 [<ffffffff8187c02d>] mutex_lock_nested+0x7d/0x450
 [<ffffffffa013fac9>] ? i915_gem_unmap_dma_buf+0x39/0x110 [i915]
 [<ffffffffa013fac9>] ? i915_gem_unmap_dma_buf+0x39/0x110 [i915]
 [<ffffffffa013fac9>] i915_gem_unmap_dma_buf+0x39/0x110 [i915]
 [<ffffffff815ab2e5>] dma_buf_unmap_attachment+0x55/0x80
 [<ffffffffa0049592>] drm_prime_gem_destroy+0x22/0x40 [drm]
 [<ffffffffa0306461>] nouveau_gem_object_del+0x81/0xf0 [nouveau]
 [<ffffffffa002e5b7>] drm_gem_object_free+0x27/0x40 [drm]
 [<ffffffffa002eb30>] drm_gem_object_handle_unreference_unlocked+0xe0/0x130
[drm]
 [<ffffffffa002ec51>] drm_gem_handle_delete+0xd1/0x150 [drm]
 [<ffffffffa002f3c0>] drm_gem_close_ioctl+0x20/0x30 [drm]
 [<ffffffffa002fdab>] drm_ioctl+0x1db/0x640 [drm]
 [<ffffffff8110385f>] ? lock_release_holdtime.part.29+0xf/0x200
 [<ffffffff811071ad>] ? trace_hardirqs_on_caller+0x13d/0x1e0
 [<ffffffff8110725d>] ? trace_hardirqs_on+0xd/0x10
 [<ffffffffa02fdc62>] nouveau_drm_ioctl+0x72/0xd0 [nouveau]
 [<ffffffff8128c9a8>] do_vfs_ioctl+0x2e8/0x530
 [<ffffffff8128cc71>] SyS_ioctl+0x81/0xa0
 [<ffffffff81880969>] system_call_fastpath+0x12/0x17

[1] <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1194742">https://bugzilla.redhat.com/show_bug.cgi?id=1194742</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are on the CC list for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>