Skip to content

Commit

Permalink
drm/i915: Increment composite fence seqno
Browse files Browse the repository at this point in the history
Increment composite fence seqno on each fence creation.

Fixes: 544460c ("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 62eeb9a)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
  • Loading branch information
Matthew Brost authored and Jani Nikula committed Dec 27, 2021
1 parent 0f9d36a commit d46f329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d46f329

Please sign in to comment.