diff options
author | Jesse Barnes | 2011-01-05 21:01:25 +0100 |
---|---|---|
committer | Chris Wilson | 2011-01-11 21:43:59 +0100 |
commit | 1daed3fb8324d517a1f9da43f1a1d3619d1b0ddc (patch) | |
tree | 26a619fb505bdd8bea7b9b175eb062557061b041 /drivers/gpu/drm/i915/i915_drv.c | |
parent | drm/i915: re-enable rc6 support for Ironlake+ (diff) | |
download | kernel-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.c | 3 |
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; |