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

drm/amdgpu: change Vega IH ring 1 config

Disable overflow and enable full drain. This makes fault handling on ring 1
much more reliable since we don't generate back pressure any more.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Christian König and committed by
Alex Deucher
0133690e 46846ba2

+4
+4
drivers/gpu/drm/amd/amdgpu/vega10_ih.c
··· 203 203 204 204 ih_rb_cntl = RREG32_SOC15(OSSSYS, 0, mmIH_RB_CNTL_RING1); 205 205 ih_rb_cntl = vega10_ih_rb_cntl(ih, ih_rb_cntl); 206 + ih_rb_cntl = REG_SET_FIELD(ih_rb_cntl, IH_RB_CNTL, 207 + WPTR_OVERFLOW_ENABLE, 0); 208 + ih_rb_cntl = REG_SET_FIELD(ih_rb_cntl, IH_RB_CNTL, 209 + RB_FULL_DRAIN_ENABLE, 1); 206 210 WREG32_SOC15(OSSSYS, 0, mmIH_RB_CNTL_RING1, ih_rb_cntl); 207 211 208 212 /* set rptr, wptr to 0 */