diff options
author | Chunming Zhou <david1.zhou@amd.com> | 2015-07-28 05:31:04 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-17 16:50:42 -0400 |
commit | 51b9db27d07869cf565ba135e97e2ed5f858612e (patch) | |
tree | 2120e2873ceef6ab8d0ef0e79dffcc9b4337277b /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | |
parent | 4afcb30383bef8bf972c6aae47995ef314e5f8a1 (diff) |
drm/amdgpu: wait forever for wait emit
the job must be emitted by scheduler, otherwise scheduler is abnormal.
Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian K?nig <christian.koenig@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, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c index 58ce2655a8fd..95807b678b6a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | |||
@@ -302,8 +302,8 @@ struct fence *amdgpu_ctx_get_fence(struct amdgpu_ctx *ctx, | |||
302 | if (amdgpu_enable_scheduler) { | 302 | if (amdgpu_enable_scheduler) { |
303 | r = amd_sched_wait_emit(&cring->c_entity, | 303 | r = amd_sched_wait_emit(&cring->c_entity, |
304 | seq, | 304 | seq, |
305 | true, | 305 | false, |
306 | AMDGPU_WAIT_IDLE_TIMEOUT_IN_MS); | 306 | -1); |
307 | if (r) | 307 | if (r) |
308 | return NULL; | 308 | return NULL; |
309 | } | 309 | } |