diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index 9436994bc406..244c71c2fa06 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |||
@@ -51,18 +51,6 @@ | |||
51 | * | 51 | * |
52 | */ | 52 | */ |
53 | 53 | ||
54 | static bool amdgpu_bo_need_backup(struct amdgpu_device *adev) | ||
55 | { | ||
56 | if (adev->flags & AMD_IS_APU) | ||
57 | return false; | ||
58 | |||
59 | if (amdgpu_gpu_recovery == 0 || | ||
60 | (amdgpu_gpu_recovery == -1 && !amdgpu_sriov_vf(adev))) | ||
61 | return false; | ||
62 | |||
63 | return true; | ||
64 | } | ||
65 | |||
66 | /** | 54 | /** |
67 | * amdgpu_bo_subtract_pin_size - Remove BO from pin_size accounting | 55 | * amdgpu_bo_subtract_pin_size - Remove BO from pin_size accounting |
68 | * | 56 | * |
@@ -599,7 +587,7 @@ int amdgpu_bo_create(struct amdgpu_device *adev, | |||
599 | if (r) | 587 | if (r) |
600 | return r; | 588 | return r; |
601 | 589 | ||
602 | if ((flags & AMDGPU_GEM_CREATE_SHADOW) && amdgpu_bo_need_backup(adev)) { | 590 | if ((flags & AMDGPU_GEM_CREATE_SHADOW) && !(adev->flags & AMD_IS_APU)) { |
603 | if (!bp->resv) | 591 | if (!bp->resv) |
604 | WARN_ON(reservation_object_lock((*bo_ptr)->tbo.resv, | 592 | WARN_ON(reservation_object_lock((*bo_ptr)->tbo.resv, |
605 | NULL)); | 593 | NULL)); |