Commit 15239099 authored by Daniel Vetter's avatar Daniel Vetter
Browse files

drm/i915: enable irqs earlier when resuming

We need it to restore the ilk rc6 context, since the gpu wait no
requires interrupts. But in general having interrupts around should
help in code sanity, since more and more stuff is interrupt driven.

This regression has been introduced in

commit 3e960501
Author: Chris Wilson <>
Date:   Tue Nov 27 16:22:54 2012 +0000

    drm/i915: Rearrange code to only have a single method for waiting upon the ring

Like in the driver load code we need to make sure that hotplug
interrupts don't cause havoc with our modeset state, hence block them
with the existing infrastructure. Again we ignore races where we might
loose hotplug interrupts ...

Note that the driver load part of the regression has already been
fixed in

commit 52d7eced
Author: Daniel Vetter <>
Date:   Sat Dec 1 21:03:22 2012 +0100

    drm/i915: reorder setup sequence to have irqs for output setup

v2: Add a note to the commit message about which patch fixed the
driver load part of the regression. Stable kernels need to backport
both patches.

Cc: (for 3.8 only, plese backport

Cc: Chris Wilson <>
Cc: Mika Kuoppala <>
Reported-and-Tested-by: default avatarIlya Tumaykin <>
Reviewed-by: Chris wilson <> (v1)
Signed-off-by: default avatarDaniel Vetter <>
parent 0920a487
......@@ -495,6 +495,7 @@ static int i915_drm_freeze(struct drm_device *dev)
dev_priv->enable_hotplug_processing = false;
......@@ -568,10 +569,20 @@ static int __i915_drm_thaw(struct drm_device *dev)
error = i915_gem_init_hw(dev);
/* We need working interrupts for modeset enabling ... */
intel_modeset_setup_hw_state(dev, false);
* ... but also need to make sure that hotplug processing
* doesn't cause havoc. Like in the driver load code we don't
* bother with the tiny race here where we might loose hotplug
* notifications.
* */
dev_priv->enable_hotplug_processing = true;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment