Nicolai Hähnle 3e19e69ab0 drm/amd/amdgpu: add check that shadow page tables are GPU-accessible
Skip amdgpu_gem_va_update_vm otherwise. Also clean up the check for the
non-shadow page tables using the new helper function.

This fixes a crash with the stack trace:

amdgpu_gem_va_update_vm
-> amdgpu_vm_update_page_directory
 -> amdgpu_ttm_bind
  -> amdgpu_gtt_mgr_alloc

v2: actually check bo->shadow instead of just checking bo twice

Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-01-27 11:13:18 -05:00
..
2016-12-15 14:55:33 +02:00
2017-01-27 11:13:14 -05:00
2017-01-27 11:13:14 -05:00
2015-06-03 21:03:17 -04:00
2016-10-25 14:38:08 -04:00
2016-12-25 17:21:22 +01:00
2016-10-04 11:15:59 -04:00
2015-06-03 21:03:17 -04:00
2015-06-03 21:03:17 -04:00
2016-08-31 15:21:09 -04:00
2016-08-31 15:21:09 -04:00
2017-01-27 11:13:15 -05:00