[PATCH 2/2] drm/amdgpu: drop extra tlb invalidation in gpuvm
Alex Deucher
alexdeucher at gmail.com
Fri Jan 5 15:59:00 UTC 2018
We only need to flush the HDP here, not invalidate the TLB.
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index 2d5c1aa7322a..7b1dae663bd0 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -857,7 +857,6 @@ int amdgpu_vm_update_directories(struct amdgpu_device *adev,
/* Flush HDP */
mb();
amdgpu_asic_flush_hdp(adev);
- amdgpu_gart_flush_gpu_tlb(adev, 0);
} else if (params.ib->length_dw == 0) {
amdgpu_job_free(job);
} else {
@@ -1455,7 +1454,6 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev,
/* Flush HDP */
mb();
amdgpu_asic_flush_hdp(adev);
- amdgpu_gart_flush_gpu_tlb(adev, 0);
}
spin_lock(&vm->status_lock);
--
2.13.6
More information about the amd-gfx
mailing list