aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
diff options
context:
space:
mode:
authorJames Zhu <[email protected]>2020-03-18 20:59:38 +0000
committerAlex Deucher <[email protected]>2020-07-01 05:59:11 +0000
commitdf3183b37a84dca12f6e87fe7034f6f7d885ad3c (patch)
tree3b81726237cf298b414a30ad7732df64f2b90103 /drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
parentdrm/amd/powerplay: enable FCLK DS for sienna_cichlid (diff)
downloadkernel-df3183b37a84dca12f6e87fe7034f6f7d885ad3c.tar.gz
kernel-df3183b37a84dca12f6e87fe7034f6f7d885ad3c.zip
drm/amdgpu: fix typo for vcn3/jpeg3 idle check
fix typo for vcn3/jpeg3 idle check Signed-off-by: James Zhu <[email protected]> Reviewed-by: Leo Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
index 517484292303..340cb344a35d 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
@@ -1174,7 +1174,7 @@ static int vcn_v3_0_set_clockgating_state(void *handle,
continue;
if (enable) {
- if (RREG32_SOC15(VCN, i, mmUVD_STATUS) == UVD_STATUS__IDLE)
+ if (RREG32_SOC15(VCN, i, mmUVD_STATUS) != UVD_STATUS__IDLE)
return -EBUSY;
vcn_v3_0_enable_clock_gating(adev, i);
} else {