diff options
author | Christian König <christian.koenig@amd.com> | 2018-09-11 05:50:57 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-09-19 13:38:41 -0400 |
commit | 403009bfba45163887398652762ed1fc6645181c (patch) | |
tree | 55d50f036ed77a19acffb3f736190878c6130280 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
parent | c33adbc7285f72dbd86aedba858e9570cd9f9c99 (diff) |
drm/amdgpu: fix shadow BO restoring
Don't grab the reservation lock any more and simplify the handling quite
a bit.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index 64337ff2ad63..7d3312d0da11 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |||
@@ -273,12 +273,8 @@ int amdgpu_bo_backup_to_shadow(struct amdgpu_device *adev, | |||
273 | struct reservation_object *resv, | 273 | struct reservation_object *resv, |
274 | struct dma_fence **fence, bool direct); | 274 | struct dma_fence **fence, bool direct); |
275 | int amdgpu_bo_validate(struct amdgpu_bo *bo); | 275 | int amdgpu_bo_validate(struct amdgpu_bo *bo); |
276 | int amdgpu_bo_restore_from_shadow(struct amdgpu_device *adev, | 276 | int amdgpu_bo_restore_shadow(struct amdgpu_bo *shadow, |
277 | struct amdgpu_ring *ring, | 277 | struct dma_fence **fence); |
278 | struct amdgpu_bo *bo, | ||
279 | struct reservation_object *resv, | ||
280 | struct dma_fence **fence, | ||
281 | bool direct); | ||
282 | uint32_t amdgpu_bo_get_preferred_pin_domain(struct amdgpu_device *adev, | 278 | uint32_t amdgpu_bo_get_preferred_pin_domain(struct amdgpu_device *adev, |
283 | uint32_t domain); | 279 | uint32_t domain); |
284 | 280 | ||