mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-26 20:44:32 +08:00
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>
This commit is contained in:
parent
b1d128689f
commit
64b9342f31
@ -857,7 +857,6 @@ restart:
|
|||||||
/* Flush HDP */
|
/* Flush HDP */
|
||||||
mb();
|
mb();
|
||||||
amdgpu_asic_flush_hdp(adev);
|
amdgpu_asic_flush_hdp(adev);
|
||||||
amdgpu_gart_flush_gpu_tlb(adev, 0);
|
|
||||||
} else if (params.ib->length_dw == 0) {
|
} else if (params.ib->length_dw == 0) {
|
||||||
amdgpu_job_free(job);
|
amdgpu_job_free(job);
|
||||||
} else {
|
} else {
|
||||||
@ -1459,7 +1458,6 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev,
|
|||||||
/* Flush HDP */
|
/* Flush HDP */
|
||||||
mb();
|
mb();
|
||||||
amdgpu_asic_flush_hdp(adev);
|
amdgpu_asic_flush_hdp(adev);
|
||||||
amdgpu_gart_flush_gpu_tlb(adev, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
spin_lock(&vm->status_lock);
|
spin_lock(&vm->status_lock);
|
||||||
|
Loading…
Reference in New Issue
Block a user