drm/amdgpu: Remove SRAM clock gater override by driver
Subsystems (2)
PATCH 1/1 drm/amdgpu: Remove SRAM clock gater override by driver
rlc firmware does required setting ,driver need not do it.
Signed-off-by Mangesh Gadre <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 9 --------- 1 file changed, 9 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c +0 -9
@@ -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,
Signature · 1 line
2.34.1
[AMD Official Use Only - General]
Reviewed-by Hawking Zhang <[email protected]>
Regards,
Hawking
-----Original Message-----
From: Gadre, Mangesh <[email protected]>
Sent: Friday, August 18, 2023 19:40
To: [email protected]; Lazar, Lijo <[email protected]>; Zhang, Hawking <[email protected]>
Cc: Gadre, Mangesh <[email protected]>
Subject: [PATCH] drm/amdgpu: Remove SRAM clock gater override by driver
rlc firmware does required setting ,driver need not do it.
Signed-off-by Mangesh Gadre <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 9 --------- 1 file changed, 9 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c +0 -9
@@ -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,
--
2.34.1
Quoted 3 lines · Mangesh Gadre
rlc firmware does required setting ,driver need not do it.
Signed-off-by Mangesh Gadre <[email protected]>
Reviewed-by Lijo Lazar <[email protected]>
Thanks,
Lijo
Quoted 24 lines
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 9 --------- 1 file changed, 9 deletions(-)drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c +0
-9@@ -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,