diff options
author | Christian König <christian.koenig@amd.com> | 2018-08-24 08:23:33 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-08-27 16:12:10 -0400 |
commit | 85eff20020a656b2d13b33dc4681523508fee037 (patch) | |
tree | 0f4f15282bfd5032a94f34ad8ee682a5e80cab69 /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h | |
parent | a9a8a788e5e946a9835a1365256fc4ce9e96ba2c (diff) |
drm/amdgpu: amdgpu_ctx_add_fence can't fail
No more waiting for a fence done here.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h index d67c1d285a4f..b3b012c0a7da 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h | |||
@@ -65,9 +65,9 @@ int amdgpu_ctx_put(struct amdgpu_ctx *ctx); | |||
65 | 65 | ||
66 | int amdgpu_ctx_get_entity(struct amdgpu_ctx *ctx, u32 hw_ip, u32 instance, | 66 | int amdgpu_ctx_get_entity(struct amdgpu_ctx *ctx, u32 hw_ip, u32 instance, |
67 | u32 ring, struct drm_sched_entity **entity); | 67 | u32 ring, struct drm_sched_entity **entity); |
68 | int amdgpu_ctx_add_fence(struct amdgpu_ctx *ctx, | 68 | void amdgpu_ctx_add_fence(struct amdgpu_ctx *ctx, |
69 | struct drm_sched_entity *entity, | 69 | struct drm_sched_entity *entity, |
70 | struct dma_fence *fence, uint64_t *seq); | 70 | struct dma_fence *fence, uint64_t *seq); |
71 | struct dma_fence *amdgpu_ctx_get_fence(struct amdgpu_ctx *ctx, | 71 | struct dma_fence *amdgpu_ctx_get_fence(struct amdgpu_ctx *ctx, |
72 | struct drm_sched_entity *entity, | 72 | struct drm_sched_entity *entity, |
73 | uint64_t seq); | 73 | uint64_t seq); |