aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2017-12-20 13:21:25 +0000
committerAlex Deucher <[email protected]>2017-12-20 21:02:48 +0000
commit4f4b94ee616500f326650f5b25439f1f7d606ea7 (patch)
tree821e3205eaafbcff3efc00bc3e8e9673172b44b4 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentdrm/amd/display: Expose dpp1_set_cursor_attributes (diff)
downloadkernel-4f4b94ee616500f326650f5b25439f1f7d606ea7.tar.gz
kernel-4f4b94ee616500f326650f5b25439f1f7d606ea7.zip
drm/amdgpu: fix test for shadow page tables
They don't work 100% correctly at the moment. Reviewed-and-Tested-by: Michel Dänzer <[email protected]> Signed-off-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_object.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index 4feee9927bce..5c4c3e0d527b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -42,7 +42,11 @@ static bool amdgpu_need_backup(struct amdgpu_device *adev)
if (adev->flags & AMD_IS_APU)
return false;
- return amdgpu_gpu_recovery;
+ if (amdgpu_gpu_recovery == 0 ||
+ (amdgpu_gpu_recovery == -1 && !amdgpu_sriov_vf(adev)))
+ return false;
+
+ return true;
}
static void amdgpu_ttm_bo_destroy(struct ttm_buffer_object *tbo)