<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 - GPU hang after resume from hibernation on ThinkPad x230"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98706">98706</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>GPU hang after resume from hibernation on ThinkPad x230
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>DRM/Intel
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>eugene.shatokhin@rosalab.ru
          </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>Created <span class=""><a href="attachment.cgi?id=127950" name="attach_127950" title="Gzipped contents of /sys/class/drm/card0/error">attachment 127950</a> <a href="attachment.cgi?id=127950&action=edit" title="Gzipped contents of /sys/class/drm/card0/error">[details]</a></span>
Gzipped contents of /sys/class/drm/card0/error

When the system resumes from hibernate on my ThinkPad x230, GPU hang is
reported in dmesg and the X11 server restarts.

So far the problem happens only if I use "modesetting" X11 driver and does not
occur if I use the Intel's X11 driver.

OS: ROSA Linux x86_64
GPU: VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor
Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])

Kernel: I checked version 4.8.6 and 4.8.7 (4.8.6-nrj-desktop-1rosa-x86_64,
4.8.7-nrj-desktop-1rosa-x86_64).

X11 server: 1.17.4

I have been using kernel 4.8.6 and "modesetting" X11 driver for about a week
now, hibernated and resumed the laptop a dozen times without any problems.
Since yesterday, however, GPU hang happens each time I resume the laptop from
hibernation.

By the way, I used the following file in /etc/xorg/conf.d to switch to
"modesetting" X11 driver:
51-modesetting.conf:
--------------------
Section "Device"
        Identifier  "Device0"
        Driver      "modesetting"
        Option      "AccelMethod"    "glamor"
EndSection
--------------------

I switched to the Intel's X11 driver (git rev. 8f33f80 as of 2016-09-23) and
the problem does not show up anymore. When I switched back to "modesetting"
driver, the problem appeared again.

I tried kernel 4.8.7 - the results are the same as for 4.8.6.

>From dmesg after the problem happened:
-------------------
[  514.736258] [drm] GPU HANG: ecode 7:0:0x85fffffa, in X [16159], reason: Hang
on render ring, action: reset
[  514.736259] [drm] GPU hangs can indicate a bug anywhere in the entire gfx
stack, including userspace.
[  514.736259] [drm] Please file a _new_ bug report on bugs.freedesktop.org
against DRI -> DRM/Intel
[  514.736259] [drm] drm/i915 developers can then reassign to the right
component if it's not a kernel issue.
[  514.736260] [drm] The gpu crash dump is required to analyze gpu hangs, so
please always attach it.
[  514.736260] [drm] GPU crash dump saved to /sys/class/drm/card0/error
[  514.736301] drm/i915: Resetting chip after gpu hang
[  525.744243] drm/i915: Resetting chip after gpu hang
-------------------

Full dmesg: <a href="https://linux-hardware.org/index.php?probe=0f9af40d17&log=dmesg">https://linux-hardware.org/index.php?probe=0f9af40d17&log=dmesg</a>

lspci: <a href="https://linux-hardware.org/index.php?probe=0f9af40d17&log=lspci_all">https://linux-hardware.org/index.php?probe=0f9af40d17&log=lspci_all</a>

Other info about the hardware and the system:
<a href="https://linux-hardware.org/index.php?probe=0f9af40d17">https://linux-hardware.org/index.php?probe=0f9af40d17</a>

Before the problem started to occur, if that matters, I updated mesa (12.0.3 =>
12.0.4), cpupower and installed kernel 4.8.7 alongside 4.8.6.</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 on the CC list for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>