]> 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)
commit7d4323177b3b9356fc073db85f63ca081f13db48
tree46af2fa3436943290bdd6a2cc9f7d60bed6f0d79
parenta6fbb4506484ab5df20d74f259abc72e6a9ac70d
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