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: Setup Atomics enable in TCP UTCL0 for GFX 12.1.0

We need to explicitly setup atomics enable in TCP UTCL0 to enable
PCIe atomics to host memory.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Alex Sierra <alex.sierra@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Mukul Joshi and committed by
Alex Deucher
e08a675f 9c34a4c1

+6
+6
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
··· 2521 2521 RETRY_FRAGMENT_THRESHOLD_UP_EN, 0x0); 2522 2522 2523 2523 WREG32_SOC15(GC, 0, regTCP_UTCL0_THRASHING_CTRL, val); 2524 + 2525 + /* Set the TCP UTCL0 register to enable atomics */ 2526 + val = RREG32_SOC15(GC, 0, regTCP_UTCL0_CNTL1); 2527 + val = REG_SET_FIELD(val, TCP_UTCL0_CNTL1, ATOMIC_REQUESTER_EN, 0x1); 2528 + 2529 + WREG32_SOC15(GC, 0, regTCP_UTCL0_CNTL1, val); 2524 2530 } 2525 2531 2526 2532 static int gfx_v12_1_hw_init(struct amdgpu_ip_block *ip_block)