drm/amdgpu: irq resume should be immediately after gpu resume
authorChunming Zhou <David1.Zhou@amd.com>
Wed, 27 Jul 2016 05:15:20 +0000 (13:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Aug 2016 15:33:21 +0000 (11:33 -0400)
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 9b358df6e886fdd1210c142333f5ee9994706be4..c715f1bd459894388a82127f1347c544079607c1 100644 (file)
@@ -2094,6 +2094,7 @@ retry:
                amdgpu_atombios_scratch_regs_restore(adev);
        }
        if (!r) {
+               amdgpu_irq_gpu_reset_resume_helper(adev);
                r = amdgpu_ib_ring_tests(adev);
                if (r) {
                        dev_err(adev->dev, "ib ring test failed (%d).\n", r);
@@ -2124,7 +2125,6 @@ retry:
                /* bad news, how to tell it to userspace ? */
                dev_info(adev->dev, "GPU reset failed\n");
        }
-       amdgpu_irq_gpu_reset_resume_helper(adev);
 
        return r;
 }