<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 - Xorg stops responding when running DRI_PRIME=1 glxgears"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107735">107735</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Xorg stops responding when running DRI_PRIME=1 glxgears
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>18.1
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (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>Drivers/DRI/nouveau
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>nouveau@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sam@robots.org.uk
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>nouveau@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=141338" name="attach_141338" title="kernel messages">attachment 141338</a> <a href="attachment.cgi?id=141338&action=edit" title="kernel messages">[details]</a></span>
kernel messages

If I run 'DRI_PRIME=1 glxgears', glxgears appears and runs normally for < 1
second. However then the screen freezes and pressing Esc to close glxgears (and
other keyboard/mouse input) does not work.

Neither the kernel nor Xorg log anything when this happens.

If I run 'DRI_PRIME=1 timeout 5 glxgears', after 5 seconds SIGTERM is sent to
the process, it exits and Xorg stops being frozen.

The really weird thing is that if I leave an instance of glxgears (using the
integrated graphics) running at the same time, then glxgears using the discrete
GPU does not cause Xorg to freeze up at all!

This is on a Lenovo P50 with the following setup:

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GM107GLM [Quadro M2000M]
(rev a2)

I'm using debian unstable.
Mesa version: 18.1.6
nouveau version: 1.0.15
Kernel: Linux version 4.17.0-3-amd64 (<a href="mailto:debian-kernel@lists.debian.org">debian-kernel@lists.debian.org</a>) (gcc
version 7.3.0 (Debian 7.3.0-28)) #1 SMP Debian 4.17.17-1 (2018-08-18)

I've seen this with earlier kernels too.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>