Skip to content

Commit e0f61e4

Browse files
alexdeucherheftig
authored andcommitted
drm/amdgpu: don't attach the tlb fence for SI
SI hardware doesn't support pasids, user mode queues, or KIQ/MES so there is no need for this. Doing so results in a segfault as these callbacks are non-existent for SI. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4744 Fixes: f3854e0 ("drm/amdgpu: attach tlb fence to the PTs update") Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cherry-picked-for: https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/issues/166
1 parent 0c48ee3 commit e0f61e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,9 @@ amdgpu_vm_tlb_flush(struct amdgpu_vm_update_params *params,
10661066
}
10671067

10681068
/* Prepare a TLB flush fence to be attached to PTs */
1069-
if (!params->unlocked) {
1069+
if (!params->unlocked &&
1070+
/* SI doesn't support pasid or KIQ/MES */
1071+
params->adev->family > AMDGPU_FAMILY_SI) {
10701072
amdgpu_vm_tlb_fence_create(params->adev, vm, fence);
10711073

10721074
/* Makes sure no PD/PT is freed before the flush */

0 commit comments

Comments
 (0)