Skip to contentSkip to conversation

drm/amdgpu: don't attach the tlb fence for SI

PATCH In review Alex Deucher 2 participants 2 messages Dec 2, 2025 – Dec 3, 2025

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/1 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.

Fixes f3854e04b708 ("drm/amdgpu: attach tlb fence to the PTs update")
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +3 -1
index 6a2ea200d90c8..0eccb31793ca7 100644
@@ -1069,7 +1069,9 @@ amdgpu_vm_tlb_flush(struct amdgpu_vm_update_params *params,
 	}
 
 	/* Prepare a TLB flush fence to be attached to PTs */
-	if (!params->unlocked) {
+	if (!params->unlocked &&
+	    /* SI doesn't support pasid or KIQ/MES */
+	    params->adev->family > AMDGPU_FAMILY_SI) {
 		amdgpu_vm_tlb_fence_create(params->adev, vm, fence);
 
 		/* Makes sure no PD/PT is freed before the flush */
Signature · 1 line
2.51.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Alex Deucher

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.

Fixes f3854e04b708 ("drm/amdgpu: attach tlb fence to the PTs

update")

Thank you Alex!

Quoted 21 lines

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 +++-

 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0 -0
index 6a2ea200d90c8..0eccb31793ca7 100644
@@ -1069,7 +1069,9 @@ amdgpu_vm_tlb_flush(struct
 amdgpu_vm_update_params *params,
  	}


  /* Prepare a TLB flush fence to be attached to PTs */

drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +3 -1
-	if (!params->unlocked) {
+	if (!params->unlocked &&
+	    /* SI doesn't support pasid or KIQ/MES */
+	    params->adev->family > AMDGPU_FAMILY_SI) {

  amdgpu_vm_tlb_fence_create(params->adev, vm, fence);
  /* Makes sure no PD/PT is freed before the flush */