summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_debugfs.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-02-15 15:25:38 +0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-02-15 17:27:18 +0400
commitee4f42b10bbc404579c2e6f446b24d898592753c (patch)
treeaf918261e95149922e5edaafd2b7a067489d2ae0 /drivers/gpu/drm/i915/i915_debugfs.c
parent52d39a21350531063bf8f4f704101bd371ea5d7d (diff)
downloadlinux-ee4f42b10bbc404579c2e6f446b24d898592753c.tar.xz
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_debugfs.c')
-rw-r--r--drivers/gpu/drm/i915/i915_debugfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 45876e5bf2aa..fdb7ccefffbd 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -799,9 +799,10 @@ static int i915_error_state(struct seq_file *m, void *unused)
dev_priv->ring[i].name,
error->ring[i].num_requests);
for (j = 0; j < error->ring[i].num_requests; j++) {
- seq_printf(m, " seqno 0x%08x, emitted %ld\n",
+ seq_printf(m, " seqno 0x%08x, emitted %ld, tail 0x%08x\n",
error->ring[i].requests[j].seqno,
- error->ring[i].requests[j].jiffies);
+ error->ring[i].requests[j].jiffies,
+ error->ring[i].requests[j].tail);
}
}