drm/i915: Don't save/restore hardware status page address register
authorZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 2 Mar 2011 05:52:37 +0000 (13:52 +0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 Mar 2011 11:26:13 +0000 (11:26 +0000)
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>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_suspend.c

index fd41b86864e91ab9e54c7fa1d6e3f3221dd04492..9f3650c9882a2b674e0bc7f2b7a766d1d2ef6d4f 100644 (file)
@@ -383,7 +383,6 @@ typedef struct drm_i915_private {
        u32 saveDSPACNTR;
        u32 saveDSPBCNTR;
        u32 saveDSPARB;
-       u32 saveHWS;
        u32 savePIPEACONF;
        u32 savePIPEBCONF;
        u32 savePIPEASRC;
index da474153a0a228626cef23e08b5d3c9566642dee..7e992a8e90982929eb78ca03be42b5223439d1d4 100644 (file)
@@ -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 */
@@ -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 */