]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu: drop extra tlb invalidation in gpuvm
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Jan 2018 15:33:48 +0000 (10:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:17:14 +0000 (14:17 -0500)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

index df0f99741b736ee2828f606233427d7800db46c9..114571f29c7ad173f51d34d1db6fded0d9d98bb3 100644 (file)
@@ -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 {
@@ -1459,7 +1458,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);