From: Aaron Liu Date: Mon, 12 Aug 2019 16:32:56 +0000 (-0500) Subject: drm/amdgpu: enable clock gating for renoir X-Git-Tag: v5.15~5407^2~9^2~208 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f78e007f76bd8be25d038dc01850984a3d551e49;p=platform%2Fkernel%2Flinux-starfive.git drm/amdgpu: enable clock gating for renoir enable gfx&common clock gating for renoir Acked-by: Huang Rui Signed-off-by: Aaron Liu Reviewed-by: Huang Rui Reviewed-by: Evan Quan Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index c97e3ac..c5ef934 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -4870,6 +4870,7 @@ static int gfx_v9_0_set_clockgating_state(void *handle, case CHIP_VEGA20: case CHIP_RAVEN: case CHIP_ARCTURUS: + case CHIP_RENOIR: gfx_v9_0_update_gfx_clock_gating(adev, state == AMD_CG_STATE_GATE ? true : false); break; diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index e02be0b..2ccca8a 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc15.c +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c @@ -1406,6 +1406,7 @@ static int soc15_common_set_clockgating_state(void *handle, state == AMD_CG_STATE_GATE ? true : false); break; case CHIP_RAVEN: + case CHIP_RENOIR: adev->nbio_funcs->update_medium_grain_clock_gating(adev, state == AMD_CG_STATE_GATE ? true : false); adev->nbio_funcs->update_medium_grain_light_sleep(adev,