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 40727d4..b5f9df2 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;