<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 - Multiple Xorg restarts leads to `Surface: can not attach plane_state` (raven ridge)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106285">106285</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Multiple Xorg restarts leads to `Surface: can not attach plane_state` (raven ridge)
          </td>
        </tr>

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

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

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

        <tr>
          <th>Reporter</th>
          <td>ojab@ojab.ru
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Raven ridge APU (2400g), no external GPU, linux-4.17-rc2, libdrm-2.4.91,
mesa-18.1.0-rc1, xorg-server-1.19.6, xf86-video-amdgpu-18.0.1.

So I've tried to reproduce <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - general protection fault in dc_validate_global_state on raven ridge"
   href="show_bug.cgi?id=106276">https://bugs.freedesktop.org/show_bug.cgi?id=106276</a>
using simple script:
```
#!/bin/sh
set -ex
while true; do
    set -x
    X&
    XPID=$!
    sleep 1
    kill ${XPID}
    sleep 1
done
```

and ended up with screen showing nothing (i. e. backlight enabled, but all
image is black) in both console & X. dmesg is full of
[Fri Apr 27 16:17:33 2018] [drm:dc_add_plane_to_context [amdgpu]] *ERROR*
Surface: can not attach plane_state 00000000a97ad24a! Maximum is: 4
[Fri Apr 27 16:17:33 2018] [drm:dc_add_plane_to_context [amdgpu]] *ERROR*
Surface: can not attach plane_state 00000000d38d9362! Maximum is: 4
[Fri Apr 27 16:17:33 2018] [drm:dc_add_plane_to_context [amdgpu]] *ERROR*
Surface: can not attach plane_state 00000000d38d9362! Maximum is: 4
[Fri Apr 27 16:17:33 2018] [drm:dc_add_plane_to_context [amdgpu]] *ERROR*
Surface: can not attach plane_state 00000000d38d9362! Maximum is: 4
[Fri Apr 27 16:18:01 2018] [drm:dc_add_plane_to_context [amdgpu]] *ERROR*
Surface: can not attach plane_state 00000000b7ff318d! Maximum is: 4
[Fri Apr 27 16:18:04 2018] [drm:dc_add_plane_to_context [amdgpu]] *ERROR*
Surface: can not attach plane_state 00000000b7ff318d! Maximum is: 4</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>