summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.c
diff options
context:
space:
mode:
authorJesse Barnes2011-01-05 21:01:25 +0100
committerChris Wilson2011-01-11 21:43:59 +0100
commit1daed3fb8324d517a1f9da43f1a1d3619d1b0ddc (patch)
tree26a619fb505bdd8bea7b9b175eb062557061b041 /drivers/gpu/drm/i915/i915_drv.c
parentdrm/i915: re-enable rc6 support for Ironlake+ (diff)
downloadkernel-qcow2-linux-1daed3fb8324d517a1f9da43f1a1d3619d1b0ddc.tar.gz
kernel-qcow2-linux-1daed3fb8324d517a1f9da43f1a1d3619d1b0ddc.tar.xz
kernel-qcow2-linux-1daed3fb8324d517a1f9da43f1a1d3619d1b0ddc.zip
drm/i915: fix rc6 enabling around suspend/resume
Enabling RC6 implies setting a graphics context. Make sure we do that only after the ring has been enabled, otherwise our ring commands will hang. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 2913496e8716..02fce7fbcd8a 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -357,6 +357,9 @@ static int i915_drm_thaw(struct drm_device *dev)
drm_helper_resume_force_mode(dev);
}
+ /* Clock gating state */
+ intel_enable_clock_gating(dev);
+
intel_opregion_init(dev);
dev_priv->modeset_on_lid = 0;