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

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: disable burst for gfx v12_1

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>

authored by

Likun Gao and committed by
Alex Deucher
a2a7e750 a41d94a7

+8
+8
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
··· 2637 2637 WREG32_SOC15(GC, GET_INST(GC, xcc_id), regTCP_UTCL0_CNTL1, data); 2638 2638 } 2639 2639 2640 + static void gfx_v12_1_xcc_disable_burst(struct amdgpu_device *adev, 2641 + int xcc_id) 2642 + { 2643 + WREG32_SOC15(GC, GET_INST(GC, xcc_id), regGL1_DRAM_BURST_CTRL, 0xf); 2644 + WREG32_SOC15(GC, GET_INST(GC, xcc_id), regGLARB_DRAM_BURST_CTRL, 0xf); 2645 + } 2646 + 2640 2647 static void gfx_v12_1_init_golden_registers(struct amdgpu_device *adev) 2641 2648 { 2642 2649 int i; 2643 2650 2644 2651 for (i = 0; i < NUM_XCC(adev->gfx.xcc_mask); i++) { 2652 + gfx_v12_1_xcc_disable_burst(adev, i); 2645 2653 gfx_v12_1_xcc_enable_atomics(adev, i); 2646 2654 gfx_v12_1_xcc_setup_tcp_thrashing_ctrl(adev, i); 2647 2655 }