]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: disable burst for gfx v12_1
authorLikun Gao <Likun.Gao@amd.com>
Wed, 6 Aug 2025 02:28:18 +0000 (10:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Jan 2026 21:26:25 +0000 (16:26 -0500)
Disable burst in GL1A and GLARBA for gfx v12_1.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c

index 6777319234969270014cc4c58c4aaa456420d167..c2b93118316464aee94bf69318277ff879931f0f 100644 (file)
@@ -2637,11 +2637,19 @@ static void gfx_v12_1_xcc_enable_atomics(struct amdgpu_device *adev,
        WREG32_SOC15(GC, GET_INST(GC, xcc_id), regTCP_UTCL0_CNTL1, data);
 }
 
+static void gfx_v12_1_xcc_disable_burst(struct amdgpu_device *adev,
+                                       int xcc_id)
+{
+       WREG32_SOC15(GC, GET_INST(GC, xcc_id), regGL1_DRAM_BURST_CTRL, 0xf);
+       WREG32_SOC15(GC, GET_INST(GC, xcc_id), regGLARB_DRAM_BURST_CTRL, 0xf);
+}
+
 static void gfx_v12_1_init_golden_registers(struct amdgpu_device *adev)
 {
        int i;
 
        for (i = 0; i < NUM_XCC(adev->gfx.xcc_mask); i++) {
+               gfx_v12_1_xcc_disable_burst(adev, i);
                gfx_v12_1_xcc_enable_atomics(adev, i);
                gfx_v12_1_xcc_setup_tcp_thrashing_ctrl(adev, i);
        }