Skip to content

Commit 808c205

Browse files
prliangpubalexdeucher
authored andcommitted
Revert "drm/amdgpu: don't attach the tlb fence for SI"
This reverts commit 820b3d3. It’s better to validate VM TLB flushes in the flush‑TLB backend rather than in the generic VM layer. Reverting this patch depends on commit fa7c231fc2b0 ("drm/amdgpu: validate the flush_gpu_tlb_pasid()") being present in the tree. Signed-off-by: Prike Liang <Prike.Liang@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 9163fe4)
1 parent 0bea77b commit 808c205

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,9 +1069,7 @@ amdgpu_vm_tlb_flush(struct amdgpu_vm_update_params *params,
10691069
}
10701070

10711071
/* Prepare a TLB flush fence to be attached to PTs */
1072-
if (!params->unlocked &&
1073-
/* SI doesn't support pasid or KIQ/MES */
1074-
params->adev->family > AMDGPU_FAMILY_SI) {
1072+
if (!params->unlocked) {
10751073
amdgpu_vm_tlb_fence_create(params->adev, vm, fence);
10761074

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

0 commit comments

Comments
 (0)