drm/amdgpu: fix user fences when scheduler is enabled
authorChristian König <christian.koenig@amd.com>
Thu, 20 Aug 2015 15:28:36 +0000 (17:28 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Aug 2015 14:40:25 +0000 (10:40 -0400)
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c

index f91849b12a0f67b72d0db2a6113592c68a9f6d85..5d335522625ee7f5948cc48709d0cb893c4e512e 100644 (file)
@@ -869,6 +869,8 @@ int amdgpu_cs_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
                cs->out.handle =
                        amdgpu_ctx_add_fence(job->ctx, ring,
                                             &job->base.s_fence->base);
+               parser->ibs[parser->num_ibs - 1].sequence = cs->out.handle;
+
                list_sort(NULL, &parser->validated, cmp_size_smaller_first);
                ttm_eu_fence_buffer_objects(&parser->ticket,
                                &parser->validated,