From: Huang Rui Date: Thu, 20 Apr 2017 02:18:13 +0000 (+0800) Subject: drm/amdgpu: enable sw clock gating for vcn X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d2a33871b54cd4ec34e33e5560e34a6ef3a993bf;p=openwrt%2Fstaging%2Fblogic.git drm/amdgpu: enable sw clock gating for vcn Signed-off-by: Huang Rui Reviewed-by: Hawking Zhang Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- 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) vcn_v1_0_mc_resume(adev); /* disable clock gating */ - vcn_v1_0_disable_clock_gating(adev, false); + vcn_v1_0_disable_clock_gating(adev, true); /* disable interupt */ 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) ~UVD_LMI_CTRL2__STALL_ARB_UMC_MASK); /* enable clock gating */ - vcn_v1_0_enable_clock_gating(adev, false); + vcn_v1_0_enable_clock_gating(adev, true); return 0; }