Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228799
b: refs/heads/master
c: d1c3b17
h: refs/heads/master
i:
  228797: b26a77b
  228795: 84849e6
  228791: 3aefbd5
  228783: 119f6ce
  228767: 96888c2
  228735: 224f15a
v: v3
  • Loading branch information
Chris Wilson committed Dec 9, 2010
1 parent bb20e9d commit e48b784
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 4a19d02e0a8cd8799e5d150d8eb74861e1a4cdec
refs/heads/master: d1c3b177b9940541e89015a726ac279caf1a21f3
7 changes: 6 additions & 1 deletion trunk/drivers/gpu/drm/i915/i915_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,13 +304,18 @@ static int i915_drm_thaw(struct drm_device *dev)
struct drm_i915_private *dev_priv = dev->dev_private;
int error = 0;

if (drm_core_check_feature(dev, DRIVER_MODESET)) {
mutex_lock(&dev->struct_mutex);
i915_gem_restore_gtt_mappings(dev);
mutex_unlock(&dev->struct_mutex);
}

i915_restore_state(dev);
intel_opregion_setup(dev);

/* KMS EnterVT equivalent */
if (drm_core_check_feature(dev, DRIVER_MODESET)) {
mutex_lock(&dev->struct_mutex);
i915_gem_restore_gtt_mappings(dev);
dev_priv->mm.suspended = 0;

error = i915_gem_init_ringbuffer(dev);
Expand Down

0 comments on commit e48b784

Please sign in to comment.