Skip to content

Commit

Permalink
drm/i915: cancel the hangcheck before runtime suspend
Browse files Browse the repository at this point in the history
The hangcheck function requires the hardware to be working, and if
we're suspending we're going to put the HW in D3 state.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Paulo Zanoni authored and Daniel Vetter committed Dec 14, 2013
1 parent ab57fff commit 16a3d6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/i915/i915_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,7 @@ static int i915_runtime_suspend(struct device *device)

DRM_DEBUG_KMS("Suspending device\n");

del_timer_sync(&dev_priv->gpu_error.hangcheck_timer);
dev_priv->pm.suspended = true;
intel_opregion_notify_adapter(dev, PCI_D3cold);

Expand Down

0 comments on commit 16a3d6e

Please sign in to comment.