diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-01-05 10:33:48 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-02-19 14:17:14 -0500 |
commit | 64b9342f31363eee93d0d3e1fa87622fe2929732 (patch) | |
tree | 5499101c7ee524417062f6adcc3f6fc3169c3001 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
parent | b1d128689f9c602a3dbea37b47a27a568d55754d (diff) |
drm/amdgpu: drop extra tlb invalidation in gpuvm
We only need to flush the HDP here, not invalidate the TLB.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index df0f99741b73..114571f29c7a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |||
@@ -857,7 +857,6 @@ restart: | |||
857 | /* Flush HDP */ | 857 | /* Flush HDP */ |
858 | mb(); | 858 | mb(); |
859 | amdgpu_asic_flush_hdp(adev); | 859 | amdgpu_asic_flush_hdp(adev); |
860 | amdgpu_gart_flush_gpu_tlb(adev, 0); | ||
861 | } else if (params.ib->length_dw == 0) { | 860 | } else if (params.ib->length_dw == 0) { |
862 | amdgpu_job_free(job); | 861 | amdgpu_job_free(job); |
863 | } else { | 862 | } else { |
@@ -1459,7 +1458,6 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev, | |||
1459 | /* Flush HDP */ | 1458 | /* Flush HDP */ |
1460 | mb(); | 1459 | mb(); |
1461 | amdgpu_asic_flush_hdp(adev); | 1460 | amdgpu_asic_flush_hdp(adev); |
1462 | amdgpu_gart_flush_gpu_tlb(adev, 0); | ||
1463 | } | 1461 | } |
1464 | 1462 | ||
1465 | spin_lock(&vm->status_lock); | 1463 | spin_lock(&vm->status_lock); |