drm/amd/amdgpu: don't set clockgating in uvd_v6_0_start()
authorTom St Denis <tom.stdenis@amd.com>
Thu, 28 Jul 2016 13:44:14 +0000 (09:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Aug 2016 15:32:38 +0000 (11:32 -0400)
This is handled properly by both DPM and PP externally.

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

index 4fa50918e886e9c47cc94e1089bc7f0c45399151..4dbd5ab29bba33fc319b715640044ccb44682d9d 100644 (file)
@@ -396,15 +396,10 @@ static int uvd_v6_0_start(struct amdgpu_device *adev)
 
        uvd_v6_0_mc_resume(adev);
 
-       /* Set dynamic clock gating in S/W control mode */
-       if (adev->cg_flags & AMD_CG_SUPPORT_UVD_MGCG) {
-               uvd_v6_0_set_sw_clock_gating(adev);
-       } else {
-               /* disable clock gating */
-               uint32_t data = RREG32(mmUVD_CGC_CTRL);
-               data &= ~UVD_CGC_CTRL__DYN_CLOCK_MODE_MASK;
-               WREG32(mmUVD_CGC_CTRL, data);
-       }
+       /* disable clock gating */
+       tmp = RREG32(mmUVD_CGC_CTRL);
+       tmp &= ~UVD_CGC_CTRL__DYN_CLOCK_MODE_MASK;
+       WREG32(mmUVD_CGC_CTRL, tmp);
 
        /* disable interupt */
        WREG32_P(mmUVD_MASTINT_EN, 0, ~UVD_MASTINT_EN__VCPU_EN_MASK);