diff options
author | Huang Rui <ray.huang@amd.com> | 2017-04-19 22:18:13 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-05-24 17:41:48 -0400 |
commit | d2a33871b54cd4ec34e33e5560e34a6ef3a993bf (patch) | |
tree | 4962f63c6d84b37a2838725c4ee7c957d8f135c7 /drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | |
parent | fb4d56fa37240149a29041430a2d0e579e0c9a2e (diff) |
drm/amdgpu: enable sw clock gating for vcn
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c index 15a2c0f10a2a..61a25a16699d 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | |||
@@ -501,7 +501,7 @@ static int vcn_v1_0_start(struct amdgpu_device *adev) | |||
501 | vcn_v1_0_mc_resume(adev); | 501 | vcn_v1_0_mc_resume(adev); |
502 | 502 | ||
503 | /* disable clock gating */ | 503 | /* disable clock gating */ |
504 | vcn_v1_0_disable_clock_gating(adev, false); | 504 | vcn_v1_0_disable_clock_gating(adev, true); |
505 | 505 | ||
506 | /* disable interupt */ | 506 | /* disable interupt */ |
507 | WREG32_P(SOC15_REG_OFFSET(UVD, 0, mmUVD_MASTINT_EN), 0, | 507 | WREG32_P(SOC15_REG_OFFSET(UVD, 0, mmUVD_MASTINT_EN), 0, |
@@ -682,7 +682,7 @@ static int vcn_v1_0_stop(struct amdgpu_device *adev) | |||
682 | ~UVD_LMI_CTRL2__STALL_ARB_UMC_MASK); | 682 | ~UVD_LMI_CTRL2__STALL_ARB_UMC_MASK); |
683 | 683 | ||
684 | /* enable clock gating */ | 684 | /* enable clock gating */ |
685 | vcn_v1_0_enable_clock_gating(adev, false); | 685 | vcn_v1_0_enable_clock_gating(adev, true); |
686 | 686 | ||
687 | return 0; | 687 | return 0; |
688 | } | 688 | } |