Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360918
b: refs/heads/master
c: 1523909
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Vetter committed Mar 5, 2013
1 parent 64f1400 commit 2a6f6fd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0920a48719f1ceefc909387a64f97563848c7854
refs/heads/master: 15239099d7a7a9ecdc1ccb5b187ae4cda5488ff9
13 changes: 12 additions & 1 deletion trunk/drivers/gpu/drm/i915/i915_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ static int i915_drm_freeze(struct drm_device *dev)
intel_modeset_disable(dev);

drm_irq_uninstall(dev);
dev_priv->enable_hotplug_processing = false;
}

i915_save_state(dev);
Expand Down Expand Up @@ -568,10 +569,20 @@ static int __i915_drm_thaw(struct drm_device *dev)
error = i915_gem_init_hw(dev);
mutex_unlock(&dev->struct_mutex);

/* We need working interrupts for modeset enabling ... */
drm_irq_install(dev);

intel_modeset_init_hw(dev);
intel_modeset_setup_hw_state(dev, false);
drm_irq_install(dev);

/*
* ... 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.
* */
intel_hpd_init(dev);
dev_priv->enable_hotplug_processing = true;
}

intel_opregion_init(dev);
Expand Down

0 comments on commit 2a6f6fd

Please sign in to comment.