drm/amdgpu: consistenly use VM moved flag
authorChristian König <christian.koenig@amd.com>
Thu, 19 Apr 2018 12:22:56 +0000 (14:22 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 24 May 2018 15:07:54 +0000 (10:07 -0500)
commit862b8c5762e4e2324d18c881ce86062af72b2063
tree0944ba704aff5acc14bcf87d1aea94898fc8dad2
parenta7f91061c60ad9cac2e6a03b642be6a4f88b3662
drm/amdgpu: consistenly use VM moved flag

Instead of sometimes checking if the vm_status is empty use the moved
flag and also reset it when the BO leaves the state machine.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c