diff options
| author | Mika Kuoppala <[email protected]> | 2014-02-25 17:11:28 +0200 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2014-03-05 21:30:27 +0100 |
| commit | 62d5d69b49b6fea9905e36e67cc6c4fc5a17d75f (patch) | |
| tree | ca6b7be8a194806ff3049e24a649968a033cb38b /drivers/gpu/drm/i915/i915_drv.c | |
| parent | 48b031e30d46b11fdf7a8075f02f5f9eef728f4d (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ä <[email protected]>
Signed-off-by: Mika Kuoppala <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
| -rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 2 |
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; } |