diff options
author | Christian König <ckoenig.leichtzumerken@gmail.com> | 2017-12-20 08:21:25 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-20 16:02:48 -0500 |
commit | 4f4b94ee616500f326650f5b25439f1f7d606ea7 (patch) | |
tree | 821e3205eaafbcff3efc00bc3e8e9673172b44b4 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | c24011d56b3fa3ebf43cc77b1785709ac0e50dbe (diff) |
drm/amdgpu: fix test for shadow page tables
They don't work 100% correctly at the moment.
Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-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_object.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 6 |
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) | |||
42 | if (adev->flags & AMD_IS_APU) | 42 | if (adev->flags & AMD_IS_APU) |
43 | return false; | 43 | return false; |
44 | 44 | ||
45 | return amdgpu_gpu_recovery; | 45 | if (amdgpu_gpu_recovery == 0 || |
46 | (amdgpu_gpu_recovery == -1 && !amdgpu_sriov_vf(adev))) | ||
47 | return false; | ||
48 | |||
49 | return true; | ||
46 | } | 50 | } |
47 | 51 | ||
48 | static void amdgpu_ttm_bo_destroy(struct ttm_buffer_object *tbo) | 52 | static void amdgpu_ttm_bo_destroy(struct ttm_buffer_object *tbo) |