drm/i915: Increment composite fence seqno
authorMatthew Brost <matthew.brost@intel.com>
Tue, 14 Dec 2021 19:59:13 +0000 (11:59 -0800)
committerJani Nikula <jani.nikula@intel.com>
Mon, 27 Dec 2021 09:33:40 +0000 (11:33 +0200)
Increment composite fence seqno on each fence creation.

Fixes: 544460c33821 ("drm/i915: Multi-BB execbuf")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211214195913.35735-1-matthew.brost@intel.com
(cherry picked from commit 62eeb9ae1364cd96991ccc6e3c5c69d66b8c64df)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c

index 9b24d9b..cb0bf6f 100644 (file)
@@ -3017,7 +3017,7 @@ eb_composite_fence_create(struct i915_execbuffer *eb, int out_fence_fd)
        fence_array = dma_fence_array_create(eb->num_batches,
                                             fences,
                                             eb->context->parallel.fence_context,
-                                            eb->context->parallel.seqno,
+                                            eb->context->parallel.seqno++,
                                             false);
        if (!fence_array) {
                kfree(fences);