drm/amdgpu: always un-gate UVD REGS path.
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 9 Nov 2016 10:03:10 +0000 (18:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Nov 2016 17:36:36 +0000 (12:36 -0500)
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>
drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c

index d2c96f1f147593802f8c79c49a04c577bb2d4ecb..96444e4d862af3f011c3b3de8481aafe39529414 100644 (file)
@@ -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 |