Skip to content

Commit

Permalink
drm/i915: Don't save/restore hardware status page address register
Browse files Browse the repository at this point in the history
It's cleaned before saving and re-initialized after restoring.
So don't need to save/restore it. And also new chip has new address
for hardware status page register, don't write to old address.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Zhenyu Wang authored and Chris Wilson committed Mar 2, 2011
1 parent 4cbf74c commit a7a75c8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion drivers/gpu/drm/i915/i915_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ typedef struct drm_i915_private {
u32 saveDSPACNTR;
u32 saveDSPBCNTR;
u32 saveDSPARB;
u32 saveHWS;
u32 savePIPEACONF;
u32 savePIPEBCONF;
u32 savePIPEASRC;
Expand Down
6 changes: 0 additions & 6 deletions drivers/gpu/drm/i915/i915_suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,9 +796,6 @@ 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 @@ -845,9 +842,6 @@ 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 a7a75c8

Please sign in to comment.