drm/i915: batch submit seqno off-by-one.
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 23 Sep 2009 23:43:17 +0000 (00:43 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Sep 2009 02:15:24 +0000 (03:15 +0100)
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: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c

index 40727d4c2919d6cbb4fa719b7a7a3fe906b7917a..b5f9df230d09cb0af47d2091fc1e4724c5181d93 100644 (file)
@@ -3352,7 +3352,7 @@ i915_dispatch_gem_execbuffer(struct drm_device *dev,
        exec_start = (uint32_t) exec_offset + exec->batch_start_offset;
        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;