drm/amdgpu: fix and cleanup VM ready check
authorChristian König <christian.koenig@amd.com>
Thu, 24 Aug 2017 10:32:55 +0000 (12:32 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Aug 2017 19:27:56 +0000 (15:27 -0400)
commit34d7be5dc28041b95254da517fd0f0f740544ece
tree3cb6ab57a8e2e59347216a2daf24e93068c6c3e2
parent87f64a76b38acaa081b2bc46c3169884b9ccd6f2
drm/amdgpu: fix and cleanup VM ready check

Stop checking the mapped BO itself, cause that one is
certainly not a page table.

Additional to that move the code into amdgpu_vm.c

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