Commit 5be32356 authored by Philip Yang's avatar Philip Yang Committed by Alex Deucher

drm/amdgpu: vm flush needed after updating PDEs

If page table PDEs is evicted and restored, after updating PDEs, need
increase vm->tlb_seq, then amdgpu_vm_flush will flush TLB before command
submission.
Signed-off-by: default avatarPhilip Yang <Philip.Yang@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 688ea549
...@@ -764,6 +764,9 @@ int amdgpu_vm_update_pdes(struct amdgpu_device *adev, ...@@ -764,6 +764,9 @@ int amdgpu_vm_update_pdes(struct amdgpu_device *adev,
if (r) if (r)
goto error; goto error;
/* vm_flush_needed after updating PDEs */
atomic64_inc(&vm->tlb_seq);
while (!list_empty(&vm->relocated)) { while (!list_empty(&vm->relocated)) {
entry = list_first_entry(&vm->relocated, entry = list_first_entry(&vm->relocated,
struct amdgpu_vm_bo_base, struct amdgpu_vm_bo_base,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment