]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: rework how we handle TLB fences
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Mar 2026 15:04:46 +0000 (11:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 21:43:17 +0000 (17:43 -0400)
commit69c5fbd2b93b5ced77c6e79afe83371bca84c788
tree5a70b160d905f8977e3a15230235b5813954f49a
parent855e3e19f69c0133a98dfae3ec9d26089cd50e77
drm/amdgpu: rework how we handle TLB fences

Add a new VM flag to indicate whether or not we need
a TLB fence.  Userqs (KFD or KGD) require a TLB fence.
A TLB fence is not strictly required for kernel queues,
but it shouldn't hurt.  That said, enabling this
unconditionally should be fine, but it seems to tickle
some issues in KIQ/MES.  Only enable them for KFD,
or when KGD userq queues are enabled (currently via module
parameter).

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4798
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4749
Fixes: f3854e04b708 ("drm/amdgpu: attach tlb fence to the PTs update")
Cc: Christian König <christian.koenig@amd.com>
Cc: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Prike Liang <Prike.Liang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h