summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.c
diff options
context:
space:
mode:
authorMika Kuoppala <mika.kuoppala@linux.intel.com>2014-02-25 17:11:28 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-05 21:30:27 +0100
commit62d5d69b49b6fea9905e36e67cc6c4fc5a17d75f (patch)
treeca6b7be8a194806ff3049e24a649968a033cb38b /drivers/gpu/drm/i915/i915_drv.c
parent48b031e30d46b11fdf7a8075f02f5f9eef728f4d (diff)
downloadlinux-62d5d69b49b6fea9905e36e67cc6c4fc5a17d75f.tar.gz
linux-62d5d69b49b6fea9905e36e67cc6c4fc5a17d75f.tar.bz2
linux-62d5d69b49b6fea9905e36e67cc6c4fc5a17d75f.zip
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_drv.c')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 70a4c9bb7b80..a50292c0423f 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -479,6 +479,8 @@ static int i915_drm_freeze(struct drm_device *dev)
intel_fbdev_set_suspend(dev, FBINFO_STATE_SUSPENDED);
console_unlock();
+ dev_priv->suspend_count++;
+
return 0;
}