diff options
author | Monk Liu <Monk.Liu@amd.com> | 2017-05-11 01:36:33 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-05-24 17:40:39 -0400 |
commit | 75fbed20e5e36130a381cc162b137aef349d1f81 (patch) | |
tree | 2cd9c4654df6cd9859d3154a65ff377438651d10 /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | |
parent | 0c63e11340c6e41795feaaa3768cd6db3b2f8585 (diff) |
drm/amdgpu:don't init entity for KIQ
We don't need a scheduler for KIQ.
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c index 90d1ac8a80f8..d22e385b72ad 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | |||
@@ -52,6 +52,10 @@ static int amdgpu_ctx_init(struct amdgpu_device *adev, struct amdgpu_ctx *ctx) | |||
52 | struct amd_sched_rq *rq; | 52 | struct amd_sched_rq *rq; |
53 | 53 | ||
54 | rq = &ring->sched.sched_rq[AMD_SCHED_PRIORITY_NORMAL]; | 54 | rq = &ring->sched.sched_rq[AMD_SCHED_PRIORITY_NORMAL]; |
55 | |||
56 | if (ring == &adev->gfx.kiq.ring) | ||
57 | continue; | ||
58 | |||
55 | r = amd_sched_entity_init(&ring->sched, &ctx->rings[i].entity, | 59 | r = amd_sched_entity_init(&ring->sched, &ctx->rings[i].entity, |
56 | rq, amdgpu_sched_jobs); | 60 | rq, amdgpu_sched_jobs); |
57 | if (r) | 61 | if (r) |