diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2016-12-12 11:53:11 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-01-27 11:13:18 -0500 |
commit | 3e19e69ab01f53d68fc85e2fedcdd93c74994415 (patch) | |
tree | f53fa4b3d8a8908979f0fff3b646d62e92418d39 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
parent | d1144b84fc15755afcfefe5ced1748acf6c5a7c2 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions