diff options
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) |