Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254012
b: refs/heads/master
c: 483f179
h: refs/heads/master
v: v3
  • Loading branch information
Ben Widawsky authored and Keith Packard committed Jun 22, 2011
1 parent 656ea8c commit 547cb81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e92d03bff9a0d0bcbb812c9b1290ca96c9338d45
refs/heads/master: 483f1798998ede75b2575cc1813c3d89ba64a34e
5 changes: 5 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ void i915_save_display(struct drm_device *dev)
}

/* VGA state */
mutex_lock(&dev->struct_mutex);
dev_priv->saveVGA0 = I915_READ(VGA0);
dev_priv->saveVGA1 = I915_READ(VGA1);
dev_priv->saveVGA_PD = I915_READ(VGA_PD);
Expand All @@ -687,6 +688,7 @@ void i915_save_display(struct drm_device *dev)
dev_priv->saveVGACNTRL = I915_READ(VGACNTRL);

i915_save_vga(dev);
mutex_unlock(&dev->struct_mutex);
}

void i915_restore_display(struct drm_device *dev)
Expand Down Expand Up @@ -780,13 +782,16 @@ void i915_restore_display(struct drm_device *dev)
I915_WRITE(CPU_VGACNTRL, dev_priv->saveVGACNTRL);
else
I915_WRITE(VGACNTRL, dev_priv->saveVGACNTRL);

mutex_lock(&dev->struct_mutex);
I915_WRITE(VGA0, dev_priv->saveVGA0);
I915_WRITE(VGA1, dev_priv->saveVGA1);
I915_WRITE(VGA_PD, dev_priv->saveVGA_PD);
POSTING_READ(VGA_PD);
udelay(150);

i915_restore_vga(dev);
mutex_unlock(&dev->struct_mutex);
}

int i915_save_state(struct drm_device *dev)
Expand Down

0 comments on commit 547cb81

Please sign in to comment.