Commit 8f0dc5bf authored by Chris Wilson's avatar Chris Wilson

drm/i915: batch submit seqno off-by-one.

We increment the seqno number between submitting the batch buffer and
the flush/interrupt that demarcates its end, so the tracepoint needs to
reference the incremented value to match the completion event.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent 4f49be54
...@@ -3352,7 +3352,7 @@ i915_dispatch_gem_execbuffer(struct drm_device *dev, ...@@ -3352,7 +3352,7 @@ i915_dispatch_gem_execbuffer(struct drm_device *dev,
exec_start = (uint32_t) exec_offset + exec->batch_start_offset; exec_start = (uint32_t) exec_offset + exec->batch_start_offset;
exec_len = (uint32_t) exec->batch_len; exec_len = (uint32_t) exec->batch_len;
trace_i915_gem_request_submit(dev, dev_priv->mm.next_gem_seqno); trace_i915_gem_request_submit(dev, dev_priv->mm.next_gem_seqno + 1);
count = nbox ? nbox : 1; count = nbox ? nbox : 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment