aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
diff options
context:
space:
mode:
authorMonk Liu <Monk.Liu@amd.com>2016-03-16 22:47:07 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-03-17 11:53:34 -0400
commitcc55c45db5e2c97445d4663d45348a0fc27bf9ad (patch)
tree26c515f01560ece32c978c9a5bf2a0a4af27c1d4 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
parent16a8a49be1b878ef6dd5d1663d456e254e54ae3d (diff)
drm/amdgpu: give a fence param to ib_free
thus amdgpu_ib_free() can hook sched fence to SA manager in later patches. BTW: for amdgpu_free_job(), it should only fence_put() the fence of the last ib once, so fix it as well in this patch. Signed-off-by: Monk Liu <Monk.Liu@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
index 798d46626820..345cac9948be 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
@@ -85,12 +85,13 @@ int amdgpu_ib_get(struct amdgpu_device *adev, struct amdgpu_vm *vm,
85 * 85 *
86 * @adev: amdgpu_device pointer 86 * @adev: amdgpu_device pointer
87 * @ib: IB object to free 87 * @ib: IB object to free
88 * @f: the fence SA bo need wait on for the ib alloation
88 * 89 *
89 * Free an IB (all asics). 90 * Free an IB (all asics).
90 */ 91 */
91void amdgpu_ib_free(struct amdgpu_device *adev, struct amdgpu_ib *ib) 92void amdgpu_ib_free(struct amdgpu_device *adev, struct amdgpu_ib *ib, struct fence *f)
92{ 93{
93 amdgpu_sa_bo_free(adev, &ib->sa_bo, ib->fence); 94 amdgpu_sa_bo_free(adev, &ib->sa_bo, f);
94 fence_put(ib->fence); 95 fence_put(ib->fence);
95} 96}
96 97