[Bug,97980,amdgpu] New kernel warning during shutdown
diff mbox

Message ID bug-97980-502-VT4O7WTdAY@http.bugs.freedesktop.org/
State New
Headers show

Commit Message

bugzilla-daemon@freedesktop.org Oct. 16, 2016, 2:04 p.m. UTC
https://bugs.freedesktop.org/show_bug.cgi?id=97980

--- Comment #6 from Mike Lothian <mike@fireburn.co.uk> ---
I'm still seeing this issue on the 4.9-wip branch and that has this patch
included:

Patch
diff mbox

--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1708,11 +1708,11 @@  void amdgpu_device_fini(struct amdgpu_device *adev)

        DRM_INFO("amdgpu: finishing device.\n");
        adev->shutdown = true;
+       drm_crtc_force_disable_all(adev->ddev);
        /* evict vram memory */
        amdgpu_bo_evict_vram(adev);
        amdgpu_ib_pool_fini(adev);
        amdgpu_fence_driver_fini(adev);
-       drm_crtc_force_disable_all(adev->ddev);
        amdgpu_fbdev_fini(adev);
        r = amdgpu_fini(adev);
        kfree(adev->ip_block_status);