[PATCH] drm/amdgpu: Remove SRAM clock gater override by driver

Lazar, Lijo lijo.lazar at amd.com
Fri Aug 18 11:53:30 UTC 2023



On 8/18/2023 5:10 PM, Mangesh Gadre wrote:
> rlc firmware does required setting ,driver need not do it.
> 
> Signed-off-by: Mangesh Gadre <Mangesh.Gadre at amd.com>

Reviewed-by: Lijo Lazar <lijo.lazar at amd.com>

Thanks,
Lijo

> ---
>   drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 9 ---------
>   1 file changed, 9 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
> index d8d6807e7b96..93590adf2b04 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
> @@ -2221,15 +2221,6 @@ static void gfx_v9_4_3_xcc_update_sram_fgcg(struct amdgpu_device *adev,
>   		WREG32_SOC15(GC, GET_INST(GC, xcc_id),
>   			     regRLC_CGTT_MGCG_OVERRIDE, data);
>   
> -	def = data = RREG32_SOC15(GC, GET_INST(GC, xcc_id), regRLC_CLK_CNTL);
> -
> -	if (enable)
> -		data &= ~RLC_CLK_CNTL__RLC_SRAM_CLK_GATER_OVERRIDE_MASK;
> -	else
> -		data |= RLC_CLK_CNTL__RLC_SRAM_CLK_GATER_OVERRIDE_MASK;
> -
> -	if (def != data)
> -		WREG32_SOC15(GC, GET_INST(GC, xcc_id), regRLC_CLK_CNTL, data);
>   }
>   
>   static void gfx_v9_4_3_xcc_update_repeater_fgcg(struct amdgpu_device *adev,


More information about the amd-gfx mailing list