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: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
        if (r)
                goto error;
 
+       /* vm_flush_needed after updating PDEs */
+       atomic64_inc(&vm->tlb_seq);
+
        while (!list_empty(&vm->relocated)) {
                entry = list_first_entry(&vm->relocated,
                                         struct amdgpu_vm_bo_base,