Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242322
b: refs/heads/master
c: f0c8602
h: refs/heads/master
v: v3
  • Loading branch information
Chris Wilson committed Mar 24, 2011
1 parent 193cc8b commit fa5fa3a
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: f6e47884e7f588094bf7b824c839a9ee33f2aa55
refs/heads/master: f0c860246472248a534656d6cdbed5a36d1feb2e
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 @@ -383,6 +383,7 @@ typedef struct drm_i915_private {
u32 saveDSPACNTR;
u32 saveDSPBCNTR;
u32 saveDSPARB;
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 @@ -796,6 +796,9 @@ int i915_save_state(struct drm_device *dev)

pci_read_config_byte(dev->pdev, LBB, &dev_priv->saveLBB);

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

i915_save_display(dev);

/* Interrupt state */
Expand Down Expand Up @@ -842,6 +845,9 @@ int i915_restore_state(struct drm_device *dev)

pci_write_config_byte(dev->pdev, LBB, dev_priv->saveLBB);

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

i915_restore_display(dev);

/* Interrupt state */
Expand Down

0 comments on commit fa5fa3a

Please sign in to comment.