diff options
author | Christian König <christian.koenig@amd.com> | 2018-07-19 08:22:25 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-08-27 12:10:48 -0400 |
commit | 0d346a14c634120046d194377e2cb5b387a6c1c6 (patch) | |
tree | 696fcd42ef4feec3e2745ef0d7e31dfa0f5b7958 /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h | |
parent | 8290268f31b8c1bc3d331212b60ae7fb2262e20d (diff) |
drm/amdgpu: use entity instead of ring for CS
Further demangle ring from entity handling.
Signed-off-by: Christian König <christian.koenig@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_ctx.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h index 5664b1f54142..609f925b076c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h | |||
@@ -61,20 +61,22 @@ struct amdgpu_ctx_mgr { | |||
61 | struct amdgpu_ctx *amdgpu_ctx_get(struct amdgpu_fpriv *fpriv, uint32_t id); | 61 | struct amdgpu_ctx *amdgpu_ctx_get(struct amdgpu_fpriv *fpriv, uint32_t id); |
62 | int amdgpu_ctx_put(struct amdgpu_ctx *ctx); | 62 | int amdgpu_ctx_put(struct amdgpu_ctx *ctx); |
63 | 63 | ||
64 | int amdgpu_ctx_get_ring(struct amdgpu_ctx *ctx, | 64 | int amdgpu_ctx_get_entity(struct amdgpu_ctx *ctx, u32 hw_ip, u32 instance, |
65 | u32 hw_ip, u32 instance, u32 ring, | 65 | u32 ring, struct drm_sched_entity **entity); |
66 | struct amdgpu_ring **out_ring); | 66 | int amdgpu_ctx_add_fence(struct amdgpu_ctx *ctx, |
67 | int amdgpu_ctx_add_fence(struct amdgpu_ctx *ctx, struct amdgpu_ring *ring, | 67 | struct drm_sched_entity *entity, |
68 | struct dma_fence *fence, uint64_t *seq); | 68 | struct dma_fence *fence, uint64_t *seq); |
69 | struct dma_fence *amdgpu_ctx_get_fence(struct amdgpu_ctx *ctx, | 69 | struct dma_fence *amdgpu_ctx_get_fence(struct amdgpu_ctx *ctx, |
70 | struct amdgpu_ring *ring, uint64_t seq); | 70 | struct drm_sched_entity *entity, |
71 | uint64_t seq); | ||
71 | void amdgpu_ctx_priority_override(struct amdgpu_ctx *ctx, | 72 | void amdgpu_ctx_priority_override(struct amdgpu_ctx *ctx, |
72 | enum drm_sched_priority priority); | 73 | enum drm_sched_priority priority); |
73 | 74 | ||
74 | int amdgpu_ctx_ioctl(struct drm_device *dev, void *data, | 75 | int amdgpu_ctx_ioctl(struct drm_device *dev, void *data, |
75 | struct drm_file *filp); | 76 | struct drm_file *filp); |
76 | 77 | ||
77 | int amdgpu_ctx_wait_prev_fence(struct amdgpu_ctx *ctx, unsigned ring_id); | 78 | int amdgpu_ctx_wait_prev_fence(struct amdgpu_ctx *ctx, |
79 | struct drm_sched_entity *entity); | ||
78 | 80 | ||
79 | void amdgpu_ctx_mgr_init(struct amdgpu_ctx_mgr *mgr); | 81 | void amdgpu_ctx_mgr_init(struct amdgpu_ctx_mgr *mgr); |
80 | void amdgpu_ctx_mgr_entity_fini(struct amdgpu_ctx_mgr *mgr); | 82 | void amdgpu_ctx_mgr_entity_fini(struct amdgpu_ctx_mgr *mgr); |