<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [all]igt/gem_userptr_blits/process-exit-gtt doesn't exit /sys/kernel/debug/dri/0/clients"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=82167">82167</a>
          </td>
        </tr>

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

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

        <tr>
          <th>Summary</th>
          <td>[all]igt/gem_userptr_blits/process-exit-gtt doesn't exit /sys/kernel/debug/dri/0/clients
          </td>
        </tr>

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

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

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>huax.lu@intel.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=104037" name="attach_104037" title="dmesg">attachment 104037</a> <a href="attachment.cgi?id=104037&action=edit" title="dmesg">[details]</a></span>
dmesg

==System Environment==
--------------------------
Regression: No, new case
Non-working platforms: all

==kernel==
--------------------------
(drm-intel-nightly)ddbc288690cd888dd6f5629ccba9a2691a70b7b0

==Bug detailed description==
It happens on all platform with -fixes, -queued and -nightly kernel.
New case gem_userptr_blits/process-exit-gtt's return code is 0, the result
shows pass, but the pid still keep in  /sys/kernel/debug/dri/0/clients.

Run this case then run other cases, they will report "other drm clients
running!" and fail.

[root@x-sgb4 tests]# cat /sys/kernel/debug/dri/0/clients
a dev   pid    uid      magic

[root@x-sgb4 tests]# ./gem_userptr_blits --run-subtest process-exit-gtt
IGT-Version: 1.7-gac31f19 (i686) (Linux:
3.16.0-rc6_drm-intel-nightly_8980a4_20140805+ i686)
Aperture size is 2048 MiB
Total RAM is 3202 MiB
Testing unsynchronized mappings...
Testing synchronized mappings...
Subtest process-exit-gtt: SUCCESS
[root@x-sgb4 tests]# cat /sys/kernel/debug/dri/0/clients
a dev   pid    uid      magic

y   0  3792     0          0
[root@x-sgb4 tests]# ps -ef |grep 3792 |grep -v grep


==Reproduce steps==
---------------------------- 
1. ./gem_userptr_blits --run-subtest process-exit-gtt
2. cat /sys/kernel/debug/dri/0/clients</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>