]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: add check that shadow page directory is GPU-accessible
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 12 Dec 2016 11:09:12 +0000 (12:09 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 16:13:17 +0000 (11:13 -0500)
commitbad901a0a9a312a03c4663fda389a7f1cf867721
tree46af2fa3436943290bdd6a2cc9f7d60bed6f0d79
parent29260cc20e5e80bf50ca7b92b6fe145f7d914bce
drm/amd/amdgpu: add check that shadow page directory is GPU-accessible

Skip amdgpu_gem_va_update_vm when shadow the page directory is swapped out.
Clean up the check for non-shadow BOs as well 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

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