]> git.karo-electronics.de Git - karo-tx-linux.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)
commitd1144b84fc15755afcfefe5ced1748acf6c5a7c2
tree46af2fa3436943290bdd6a2cc9f7d60bed6f0d79
parentb99f31030a50f6bb0d1e5e67a966ec1b0f5942a8
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