aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gpu_error.c
diff options
context:
space:
mode:
authorMika Kuoppala <mika.kuoppala@linux.intel.com>2014-02-25 10:11:28 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-05 15:30:27 -0500
commit62d5d69b49b6fea9905e36e67cc6c4fc5a17d75f (patch)
treeca6b7be8a194806ff3049e24a649968a033cb38b /drivers/gpu/drm/i915/i915_gpu_error.c
parent48b031e30d46b11fdf7a8075f02f5f9eef728f4d (diff)
drm/i915: Add suspend count to error state
For example if we get bug reports with similar error states and suspend count is always 1, that might lead the Sherlocks to right general direction. Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com> Reviewed-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_gpu_error.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gpu_error.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_error.c
index 353f0770da8f..ce2dd608968c 100644
--- a/drivers/gpu/drm/i915/i915_gpu_error.c
+++ b/drivers/gpu/drm/i915/i915_gpu_error.c
@@ -348,6 +348,7 @@ int i915_error_state_to_str(struct drm_i915_error_state_buf *m,
348 } 348 }
349 } 349 }
350 err_printf(m, "Reset count: %u\n", error->reset_count); 350 err_printf(m, "Reset count: %u\n", error->reset_count);
351 err_printf(m, "Suspend count: %u\n", error->suspend_count);
351 err_printf(m, "PCI ID: 0x%04x\n", dev->pdev->device); 352 err_printf(m, "PCI ID: 0x%04x\n", dev->pdev->device);
352 err_printf(m, "EIR: 0x%08x\n", error->eir); 353 err_printf(m, "EIR: 0x%08x\n", error->eir);
353 err_printf(m, "IER: 0x%08x\n", error->ier); 354 err_printf(m, "IER: 0x%08x\n", error->ier);
@@ -1125,6 +1126,7 @@ static void i915_capture_gen_state(struct drm_i915_private *dev_priv,
1125 struct drm_i915_error_state *error) 1126 struct drm_i915_error_state *error)
1126{ 1127{
1127 error->reset_count = i915_reset_count(&dev_priv->gpu_error); 1128 error->reset_count = i915_reset_count(&dev_priv->gpu_error);
1129 error->suspend_count = dev_priv->suspend_count;
1128} 1130}
1129 1131
1130/** 1132/**