<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 initialization fails"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=96243">96243</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>GPU initialization fails
          </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/AMDgpu
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>hiwatari.seiji@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=124126" name="attach_124126" title="dmesg output after modprobing amdgpu">attachment 124126</a> <a href="attachment.cgi?id=124126&action=edit" title="dmesg output after modprobing amdgpu">[details]</a></span>
dmesg output after modprobing amdgpu

Setup:
QEMU + VFIO running VM with Ubuntu 16.04 and the latest amdgpu driver
(amdgpu-pro 16.20.3)

If the system is started normally, the kernel crashes during boot with various
errors (varies from boot to boot!).

If the module (amdgpu) is blacklisted during boot (grub.cfg) and modprobed
afterwards the error always the same [see attached file]:

sw_init 5 failed -12
amdgpu_init failed
memory type 2 has not been initialized
amdgpu probe failed with error -12

Experiments:

- Using the amdgpu version shipped with Ubuntu 16.04, booting works ONCE.
Rebooting/Shutting-Down the VM leads to consecutive errors of not beeing able
to init the GPU again, probably due to Bonaire PCI-Reset issues. Restarting the
Host itself allows booting the VM once more. Hereafter: Same error.

- A Windows 10 VM does not suffer from those issues. Rebooting/Shutting-Down
this VM works without issues / host-reboot</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>