<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Kernel 4.9: Kaveri + Hainan choked on boot using amdgpu"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=99387#c16">Comment # 16</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Kernel 4.9: Kaveri + Hainan choked on boot using amdgpu"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=99387">bug 99387</a>
              from <span class="vcard"><a class="email" href="mailto:mpiazza@gmail.com" title="Marco <mpiazza@gmail.com>"> <span class="fn">Marco</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=129516" name="attach_129516" title="oops with the two patche applied">attachment 129516</a> <a href="attachment.cgi?id=129516&action=edit" title="oops with the two patche applied">[details]</a></span>
oops with the two patche applied

Patch does not cleanly apply on 4.9.9
but it's easy to port.

But the result is the same.
Find to attached oops with patch applied.

Debugging the faulting instruction (amdgpu_pm_compute_clocks+0x424/0x640
[amdgpu])
lead to:

Reading symbols from drivers/gpu/drm/amd/amdgpu/amdgpu_pm.o...done.
(gdb) list *(amdgpu_pm_compute_clocks+0x424/0x640)
0x1a50 is in amdgpu_pm_compute_clocks
(drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c:1280).
1275    {
1276            struct drm_device *ddev = adev->ddev;
1277            struct drm_crtc *crtc;
1278            struct amdgpu_crtc *amdgpu_crtc;
1279    
1280            if (!adev->pm.dpm_enabled)
1281                    return;
1282    
1283            if (adev->pp_enabled) {
1284                    int i = 0;
(gdb) 
1285    
1286                    if (adev->mode_info.num_crtc)
1287                            amdgpu_display_bandwidth_update(adev);
1288    
1289                    for (i = 0; i < AMDGPU_MAX_RINGS; i++) {
1290                            struct amdgpu_ring *ring = adev->rings[i];
1291                            if (ring && ring->ready)
1292                                    amdgpu_fence_wait_empty(ring);
1293                    }
1294    

Fualty line seems to be:
1280            if (!adev->pm.dpm_enabled)</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>