]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita031f93db3994c312ec04bd45234633740d95dc2
tree0944ba704aff5acc14bcf87d1aea94898fc8dad2
parent6d73499cce67cc41cb0779c8ca6b7edf3b0bc636
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