summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_irq.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-02-15 11:25:38 +0000
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-02-15 14:27:18 +0100
commitee4f42b10bbc404579c2e6f446b24d898592753c (patch)
treeaf918261e95149922e5edaafd2b7a067489d2ae0 /drivers/gpu/drm/i915/i915_irq.c
parent52d39a21350531063bf8f4f704101bd371ea5d7d (diff)
downloadop-kernel-dev-ee4f42b10bbc404579c2e6f446b24d898592753c.zip
op-kernel-dev-ee4f42b10bbc404579c2e6f446b24d898592753c.tar.gz
drm/i915: Record the position of the request upon error
So that we can tally the request against the command sequence in the ringbuffer, or merely jump to the interesting locations. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_irq.c')
-rw-r--r--drivers/gpu/drm/i915/i915_irq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 85504fb1..afd4e03 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -975,6 +975,7 @@ static void i915_gem_record_rings(struct drm_device *dev,
erq = &error->ring[i].requests[count++];
erq->seqno = request->seqno;
erq->jiffies = request->emitted_jiffies;
+ erq->tail = request->tail;
}
}
}
OpenPOWER on IntegriCloud