From: Rex Zhu Date: Sat, 24 Sep 2016 08:34:59 +0000 (+0800) Subject: drm/amdgpu: bypass vce clock if vce is idle on Fiji. X-Git-Tag: v5.15~12629^2~11^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3374dcebb827307bc9487dcf4a7b61b8e6004b28;p=platform%2Fkernel%2Flinux-starfive.git drm/amdgpu: bypass vce clock if vce is idle on Fiji. Reviewed-by: Alex Deucher Signed-off-by: Rex Zhu Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c index a6b4e27..3f6db4e 100644 --- a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c @@ -716,7 +716,8 @@ static int vce_v3_0_set_clockgating_state(void *handle, int i; if ((adev->asic_type == CHIP_POLARIS10) || - (adev->asic_type == CHIP_TONGA)) + (adev->asic_type == CHIP_TONGA) || + (adev->asic_type == CHIP_FIJI)) vce_v3_0_set_bypass_mode(adev, enable); if (!(adev->cg_flags & AMD_CG_SUPPORT_VCE_MGCG))