<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 - Discrete R5 M330 GPU stopped working completely"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98687">98687</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Discrete R5 M330 GPU stopped working completely
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>DRI 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>Keywords</th>
          <td>bisected, regression
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

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

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

        <tr>
          <th>Reporter</th>
          <td>pavel.ondracka@email.cz
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>alexdeucher@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=127916" name="attach_127916" title="dmesg">attachment 127916</a> <a href="attachment.cgi?id=127916&action=edit" title="dmesg">[details]</a></span>
dmesg

After Fedora updated the kernel to 4.8 my discrete AMD GPU stopped working.
Even the most simple commands like DRI_PRIME=1 glxinfo produce:
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
..........
radeonsi: Failed to create a context.
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  44
  Current serial number in output stream:  43

Dmesg from booting and attempting to run glxinfo is attached.

I managed to bisect it to:
b817634276f7f68c9d1d6d4a27117ff3c2f16956 is the first bad commit
commit b817634276f7f68c9d1d6d4a27117ff3c2f16956
Author: Alex Deucher <<a href="mailto:alexander.deucher@amd.com">alexander.deucher@amd.com</a>>
Date:   Tue Aug 9 00:21:45 2016 -0400

    Revert "drm/radeon: work around lack of upstream ACPI support for D3cold"

    This reverts commit bdfb76040068d960cb9e226876be8a508d741c4a.

    Now that d3cold is upstream, there is no more need for this workaround.

Reverting this commit from top of the current linux git fixes things for me.
This might be duplicate of <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [Topaz] Regression introduces in 4.8-rc3"
   href="show_bug.cgi?id=98505">bug 98505</a>, however this is with radeon driver
instead of the amdgpu, so filling separately.

This is Lenovo G50-80 laptop 
discrete GPU: 04:00.0 Display controller: Advanced Micro Devices, Inc.
[AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430] (rev ff)
integrated GPU: 00:02.0 VGA compatible controller: Intel Corporation HD
Graphics 5500 (rev 09)
Mesa: 12.0.3-2.fc24
Libdrm: 2.4.71-2.fc24</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>