Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/amdgpu: change the config of cgcg on gfx12

change the config of cgcg on gfx12

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.12.x

authored by

Kenneth Feng and committed by
Alex Deucher
5cda56bd f214b7be

-11
-11
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
··· 4021 4021 4022 4022 if (def != data) 4023 4023 WREG32_SOC15(GC, 0, regRLC_CGCG_CGLS_CTRL_3D, data); 4024 - 4025 - data = RREG32_SOC15(GC, 0, regSDMA0_RLC_CGCG_CTRL); 4026 - data &= ~SDMA0_RLC_CGCG_CTRL__CGCG_INT_ENABLE_MASK; 4027 - WREG32_SOC15(GC, 0, regSDMA0_RLC_CGCG_CTRL, data); 4028 - 4029 - /* Some ASICs only have one SDMA instance, not need to configure SDMA1 */ 4030 - if (adev->sdma.num_instances > 1) { 4031 - data = RREG32_SOC15(GC, 0, regSDMA1_RLC_CGCG_CTRL); 4032 - data &= ~SDMA1_RLC_CGCG_CTRL__CGCG_INT_ENABLE_MASK; 4033 - WREG32_SOC15(GC, 0, regSDMA1_RLC_CGCG_CTRL, data); 4034 - } 4035 4024 } 4036 4025 } 4037 4026