diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2012-06-04 17:42:52 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-06-14 11:36:19 -0400 |
commit | b9a3906b609c4b546f00483089516c65fb2ff014 (patch) | |
tree | d0b1b247670a9e0000970d248d188a6a5b9579ce | |
parent | dfabbcb4f6a277992037fe199bcc1bf6bd44a996 (diff) |
drm/i915: add ccid to error state
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_irq.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 4fa00fcfbc96..2909b123baf5 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c | |||
@@ -713,6 +713,7 @@ static int i915_error_state(struct seq_file *m, void *unused) | |||
713 | seq_printf(m, "EIR: 0x%08x\n", error->eir); | 713 | seq_printf(m, "EIR: 0x%08x\n", error->eir); |
714 | seq_printf(m, "IER: 0x%08x\n", error->ier); | 714 | seq_printf(m, "IER: 0x%08x\n", error->ier); |
715 | seq_printf(m, "PGTBL_ER: 0x%08x\n", error->pgtbl_er); | 715 | seq_printf(m, "PGTBL_ER: 0x%08x\n", error->pgtbl_er); |
716 | seq_printf(m, "CCID: 0x%08x\n", error->ccid); | ||
716 | 717 | ||
717 | for (i = 0; i < dev_priv->num_fence_regs; i++) | 718 | for (i = 0; i < dev_priv->num_fence_regs; i++) |
718 | seq_printf(m, " fence[%d] = %08llx\n", i, error->fence[i]); | 719 | seq_printf(m, " fence[%d] = %08llx\n", i, error->fence[i]); |
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 7fb0364d5d61..6edc02b6dda4 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -176,6 +176,7 @@ struct drm_i915_error_state { | |||
176 | u32 eir; | 176 | u32 eir; |
177 | u32 pgtbl_er; | 177 | u32 pgtbl_er; |
178 | u32 ier; | 178 | u32 ier; |
179 | u32 ccid; | ||
179 | bool waiting[I915_NUM_RINGS]; | 180 | bool waiting[I915_NUM_RINGS]; |
180 | u32 pipestat[I915_MAX_PIPES]; | 181 | u32 pipestat[I915_MAX_PIPES]; |
181 | u32 tail[I915_NUM_RINGS]; | 182 | u32 tail[I915_NUM_RINGS]; |
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index 0e876646d769..add0aaeadecd 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c | |||
@@ -1156,6 +1156,7 @@ static void i915_capture_error_state(struct drm_device *dev) | |||
1156 | kref_init(&error->ref); | 1156 | kref_init(&error->ref); |
1157 | error->eir = I915_READ(EIR); | 1157 | error->eir = I915_READ(EIR); |
1158 | error->pgtbl_er = I915_READ(PGTBL_ER); | 1158 | error->pgtbl_er = I915_READ(PGTBL_ER); |
1159 | error->ccid = I915_READ(CCID); | ||
1159 | 1160 | ||
1160 | if (HAS_PCH_SPLIT(dev)) | 1161 | if (HAS_PCH_SPLIT(dev)) |
1161 | error->ier = I915_READ(DEIER) | I915_READ(GTIER); | 1162 | error->ier = I915_READ(DEIER) | I915_READ(GTIER); |