summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2016-11-09 18:03:10 +0800
committerAlex Deucher <alexander.deucher@amd.com>2016-11-15 12:36:36 -0500
commit953618cf1c966493090aa2982cf3274355c53ceb (patch)
tree562591e2069be9737021a94e9eb83dc94293f10c /drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c
parent6bf3f9c3cb087d91b141df060f9fee60e9f2aff9 (diff)
downloadtalos-obmc-linux-953618cf1c966493090aa2982cf3274355c53ceb.tar.gz
talos-obmc-linux-953618cf1c966493090aa2982cf3274355c53ceb.zip
drm/amdgpu: always un-gate UVD REGS path.
Signed-off-by: Rex Zhu <Rex.Zhu@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/uvd_v4_2.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c b/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c
index d2c96f1f1475..96444e4d862a 100644
--- a/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c
+++ b/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c
@@ -597,6 +597,8 @@ static void uvd_v4_2_set_dcm(struct amdgpu_device *adev,
{
u32 tmp, tmp2;
+ WREG32_FIELD(UVD_CGC_GATE, REGS, 0);
+
tmp = RREG32(mmUVD_CGC_CTRL);
tmp &= ~(UVD_CGC_CTRL__CLK_OFF_DELAY_MASK | UVD_CGC_CTRL__CLK_GATE_DLY_TIMER_MASK);
tmp |= UVD_CGC_CTRL__DYN_CLOCK_MODE_MASK |
OpenPOWER on IntegriCloud