diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-03-13 11:05:02 +0000 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-13 12:26:13 +0100 |
commit | 28d85cd367a3f5b4d891ebe9aaaa88a5c73a3a96 (patch) | |
tree | be83e2d705bf3fb1a6067c70afa54005cc32e5ac /drivers/gpu/drm/i915/i915_drv.c | |
parent | 3ddffb7b8a7e296af4ff22b953836ac6bc484b76 (diff) | |
download | op-kernel-dev-28d85cd367a3f5b4d891ebe9aaaa88a5c73a3a96.zip op-kernel-dev-28d85cd367a3f5b4d891ebe9aaaa88a5c73a3a96.tar.gz |
drm/i915: Reset forcewake before suspend
Now that we regularly defer the forcewake dance to a timer func, it is
likely to fire after we disable the device during suspend. This
generates an oops as we detect inconsistency in the hardware state. So
before suspend, we want to complete the outstanding dance and generally
sanitize the registers before handing back to the BIOS.
Signed-off-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 658fe24..5a0d34c 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c @@ -467,6 +467,7 @@ static int i915_drm_freeze(struct drm_device *dev) i915_save_state(dev); intel_opregion_fini(dev); + intel_uncore_fini(dev); console_lock(); intel_fbdev_set_suspend(dev, FBINFO_STATE_SUSPENDED); |