aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-07-16 09:19:20 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-08-27 12:10:47 -0400
commit869a53d4d7d7976d039b9389aa90b6f3d29ed234 (patch)
treed455522733c12e06ff0cac9965962f047e7c68bf /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parent72a4c072ca9f2640ea303c399bd3224b69a543d9 (diff)
drm/amdgpu: remove the queue manager
Not needed any more since that is now done by the scheduler. 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.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h27
1 files changed, 3 insertions, 24 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 07924d41ee89..20e81df5cd94 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -478,29 +478,6 @@ struct amdgpu_ib {
478extern const struct drm_sched_backend_ops amdgpu_sched_ops; 478extern const struct drm_sched_backend_ops amdgpu_sched_ops;
479 479
480/* 480/*
481 * Queue manager
482 */
483struct amdgpu_queue_mapper {
484 int hw_ip;
485 struct mutex lock;
486 /* protected by lock */
487 struct amdgpu_ring *queue_map[AMDGPU_MAX_RINGS];
488};
489
490struct amdgpu_queue_mgr {
491 struct amdgpu_queue_mapper mapper[AMDGPU_MAX_IP_NUM];
492};
493
494int amdgpu_queue_mgr_init(struct amdgpu_device *adev,
495 struct amdgpu_queue_mgr *mgr);
496int amdgpu_queue_mgr_fini(struct amdgpu_device *adev,
497 struct amdgpu_queue_mgr *mgr);
498int amdgpu_queue_mgr_map(struct amdgpu_device *adev,
499 struct amdgpu_queue_mgr *mgr,
500 u32 hw_ip, u32 instance, u32 ring,
501 struct amdgpu_ring **out_ring);
502
503/*
504 * context related structures 481 * context related structures
505 */ 482 */
506 483
@@ -513,7 +490,6 @@ struct amdgpu_ctx_ring {
513struct amdgpu_ctx { 490struct amdgpu_ctx {
514 struct kref refcount; 491 struct kref refcount;
515 struct amdgpu_device *adev; 492 struct amdgpu_device *adev;
516 struct amdgpu_queue_mgr queue_mgr;
517 unsigned reset_counter; 493 unsigned reset_counter;
518 unsigned reset_counter_query; 494 unsigned reset_counter_query;
519 uint32_t vram_lost_counter; 495 uint32_t vram_lost_counter;
@@ -537,6 +513,9 @@ struct amdgpu_ctx_mgr {
537struct amdgpu_ctx *amdgpu_ctx_get(struct amdgpu_fpriv *fpriv, uint32_t id); 513struct amdgpu_ctx *amdgpu_ctx_get(struct amdgpu_fpriv *fpriv, uint32_t id);
538int amdgpu_ctx_put(struct amdgpu_ctx *ctx); 514int amdgpu_ctx_put(struct amdgpu_ctx *ctx);
539 515
516int amdgpu_ctx_get_ring(struct amdgpu_ctx *ctx,
517 u32 hw_ip, u32 instance, u32 ring,
518 struct amdgpu_ring **out_ring);
540int amdgpu_ctx_add_fence(struct amdgpu_ctx *ctx, struct amdgpu_ring *ring, 519int amdgpu_ctx_add_fence(struct amdgpu_ctx *ctx, struct amdgpu_ring *ring,
541 struct dma_fence *fence, uint64_t *seq); 520 struct dma_fence *fence, uint64_t *seq);
542struct dma_fence *amdgpu_ctx_get_fence(struct amdgpu_ctx *ctx, 521struct dma_fence *amdgpu_ctx_get_fence(struct amdgpu_ctx *ctx,