drm/amdgpu/gfx8: Add serdes wait for idle in CGCG en/disable
authorTom St Denis <tom.stdenis@amd.com>
Thu, 26 May 2016 13:47:44 +0000 (09:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 18:50:58 +0000 (14:50 -0400)
Must wait for SERDES idle before exiting RLC SAFEMODE

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c

index 7cfeac1c134df83aec55cabd80ff7c3321a1aecb..e7fe9cc9772967f1499747fa7fdf42a2ec785e5e 100644 (file)
@@ -5805,6 +5805,8 @@ static void gfx_v8_0_update_coarse_grain_clock_gating(struct amdgpu_device *adev
                        WREG32(mmRLC_CGCG_CGLS_CTRL, data);
        }
 
+       gfx_v8_0_wait_for_rlc_serdes(adev);
+
        adev->gfx.rlc.funcs->exit_safe_mode(adev);
 }
 static int gfx_v8_0_update_gfx_clock_gating(struct amdgpu_device *adev,