]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: add check that shadow page tables are GPU-accessible
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 12 Dec 2016 10:53:11 +0000 (11:53 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 16:13:18 +0000 (11:13 -0500)
commitf7fe8a8c8db13f1cadb5d524ede6ca0efb2817d1
treef53fa4b3d8a8908979f0fff3b646d62e92418d39
parentbad901a0a9a312a03c4663fda389a7f1cf867721
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c