Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119396
b: refs/heads/master
c: 461cba2
h: refs/heads/master
v: v3
  • Loading branch information
Peng Li authored and Dave Airlie committed Nov 26, 2008
1 parent bf952dc commit 098d37c
Show file tree
Hide file tree
Showing 3 changed files with 8 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: 52440211dcdc52c0b757f8b34d122e11b12cdd50
refs/heads/master: 461cba2d294fe83297edf8a6556912812903dce1
1 change: 1 addition & 0 deletions trunk/drivers/gpu/drm/i915/i915_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ typedef struct drm_i915_private {
u32 saveDSPBCNTR;
u32 saveDSPARB;
u32 saveRENDERSTANDBY;
u32 saveHWS;
u32 savePIPEACONF;
u32 savePIPEBCONF;
u32 savePIPEASRC;
Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ int i915_save_state(struct drm_device *dev)
if (IS_I965G(dev) && IS_MOBILE(dev))
dev_priv->saveRENDERSTANDBY = I915_READ(MCHBAR_RENDER_STANDBY);

/* Hardware status page */
dev_priv->saveHWS = I915_READ(HWS_PGA);

/* Display arbitration control */
dev_priv->saveDSPARB = I915_READ(DSPARB);

Expand Down Expand Up @@ -373,6 +376,9 @@ int i915_restore_state(struct drm_device *dev)
if (IS_I965G(dev) && IS_MOBILE(dev))
I915_WRITE(MCHBAR_RENDER_STANDBY, dev_priv->saveRENDERSTANDBY);

/* Hardware status page */
I915_WRITE(HWS_PGA, dev_priv->saveHWS);

/* Display arbitration */
I915_WRITE(DSPARB, dev_priv->saveDSPARB);

Expand Down

0 comments on commit 098d37c

Please sign in to comment.