diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2016-12-12 12:09:12 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-01-27 11:13:17 -0500 |
commit | d1144b84fc15755afcfefe5ced1748acf6c5a7c2 (patch) | |
tree | 46af2fa3436943290bdd6a2cc9f7d60bed6f0d79 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |
parent | b99f31030a50f6bb0d1e5e67a966ec1b0f5942a8 (diff) | |
download | linux-d1144b84fc15755afcfefe5ced1748acf6c5a7c2.tar.bz2 |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h')
0 files changed, 0 insertions, 0 deletions