diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index 86340cfa6be7..4feee9927bce 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |||
@@ -37,6 +37,14 @@ | |||
37 | #include "amdgpu.h" | 37 | #include "amdgpu.h" |
38 | #include "amdgpu_trace.h" | 38 | #include "amdgpu_trace.h" |
39 | 39 | ||
40 | static bool amdgpu_need_backup(struct amdgpu_device *adev) | ||
41 | { | ||
42 | if (adev->flags & AMD_IS_APU) | ||
43 | return false; | ||
44 | |||
45 | return amdgpu_gpu_recovery; | ||
46 | } | ||
47 | |||
40 | static void amdgpu_ttm_bo_destroy(struct ttm_buffer_object *tbo) | 48 | static void amdgpu_ttm_bo_destroy(struct ttm_buffer_object *tbo) |
41 | { | 49 | { |
42 | struct amdgpu_device *adev = amdgpu_ttm_adev(tbo->bdev); | 50 | struct amdgpu_device *adev = amdgpu_ttm_adev(tbo->bdev); |