]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu: Make sure IB tests flushed after IP resume
authorLeo Liu <leo.liu@amd.com>
Fri, 13 Jul 2018 15:26:28 +0000 (11:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Jul 2018 20:12:50 +0000 (15:12 -0500)
Fixes: 2c773de2 (drm/amdgpu: defer test IBs on the rings at boot (V3))
Signed-off-by: Leo Liu <leo.liu@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 6e5284e6c028d7624a60cd630419d1e1507fbc14..2c5f093e79e369db4900f6b64ddcc107956d3964 100644 (file)
@@ -2747,6 +2747,9 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon)
        if (r)
                return r;
 
+       /* Make sure IB tests flushed */
+       flush_delayed_work(&adev->late_init_work);
+
        /* blat the mode back in */
        if (fbcon) {
                if (!amdgpu_device_has_dc_support(adev)) {