]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: normalize registers as local xcc to read/write in gfx_v9_4_3
authorJane Jian <Jane.Jian@amd.com>
Tue, 25 Jun 2024 11:37:43 +0000 (19:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2024 21:33:27 +0000 (17:33 -0400)
commitb17eecc08fba0c1d256f9a78fe13e5e568fe7081
tree19c69db248dab7dd0f121cf166574dc85a31d83b
parentad89e904e3aaa93628785546034ec77f3100cf79
drm/amdgpu: normalize registers as local xcc to read/write in gfx_v9_4_3

[WHY]
sriov has the higher bit violation when flushing tlb

[HOW]
normalize the registers to keep lower 16-bit(dword aligned) to aviod higher bit violation
RLCG will mask xcd out and always assume it's accessing its own xcd

v2
add check in wait mem that only do the normalization on regspace

Signed-off-by: Jane Jian <Jane.Jian@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Yiqing Yao <YiQing.Yao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c