<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 doesn't work after resume"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111524">111524</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>GPU doesn't work after resume
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>XOrg 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>not set
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>not set
          </td>
        </tr>

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

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>samuel@sieb.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>CPU is AMD A9-9420 RADEON R5
GPU is: 00:01.0 0300: 1002:98e4 (rev da)
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
Stoney [Radeon R2/R3/R4/R5 Graphics] (rev da) (prog-if 00 [VGA controller])
        Subsystem: Hewlett-Packard Company Device 8330
        Flags: bus master, fast devsel, latency 0, IRQ 35
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at f0800000 (64-bit, prefetchable) [size=8M]
        I/O ports at 4000 [size=256]
        Memory at f0400000 (32-bit, non-prefetchable) [size=256K]
        Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: [48] Vendor Specific Information: Len=08 <?>
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010
<?>
        Capabilities: [270] Secondary PCI Express <?>
        Capabilities: [2b0] Address Translation Service (ATS)
        Capabilities: [2c0] Page Request Interface (PRI)
        Capabilities: [2d0] Process Address Space ID (PASID)
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu

If I suspend the laptop then on resume the GPU does not work.  I've tried with
a 5.0 and a 5.2 kernel, same issue.  dc=0 or dc=1 doesn't make any obvious
difference.  I have gpu recovery enabled, otherwise it really hangs.  With
Xorg, the screen looks the same as when suspended.  With Wayland, there is
bunch of garbage around.  In both cases, the mouse moves around, but there are
no screen updates.  The following output shows up in dmesg with the last line
repeating endlessly, probably correlated with screen update attempts:

[   48.337053] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout,
signaled seq=73, emitted seq=75
[   48.337202] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information:
process gnome-shell pid 977 thread gnome-shel:cs0 pid 1005
[   48.337206] [drm] IP block:gfx_v8_0 is hung!
[   48.337319] amdgpu 0000:00:01.0: GPU reset begin!
[   48.337761] amdgpu 0000:00:01.0: GRBM_SOFT_RESET=0x000F0001
[   48.337817] amdgpu 0000:00:01.0: SRBM_SOFT_RESET=0x00000100
[   48.468854] [drm] recover vram bo from shadow start
[   48.468855] [drm] recover vram bo from shadow done
[   48.468857] [drm] Skip scheduling IBs!
[   48.500792] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize
parser -125!
[   48.502030] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize
parser -125!
[   48.503933] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize
parser -125!
[   49.144048] amdgpu 0000:00:01.0: GPU reset(2) succeeded!
[   49.147491] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize
parser -125!
[   53.186659] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize
parser -125!
[   56.651026] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize
parser -125!</pre>
        </div>
      </p>


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

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