drm/i915: Remove save/restore of physical HWS_PGA register
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 16 Nov 2012 11:43:21 +0000 (11:43 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 21 Nov 2012 16:45:02 +0000 (17:45 +0100)
Now that we always restore the HWS registers (both physical and GTT
virtual addresses) when re-initialising the rings, we can eliminate the
superfluous save/restore of the register across suspend and resume.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_suspend.c

index dfb63fb48e2423e6161476a36fcc9a37b9448fd4..b25df10b0b5c7731998954adbecb6ed2f6ca37f1 100644 (file)
@@ -402,7 +402,6 @@ struct i915_suspend_saved_registers {
        u32 saveDSPACNTR;
        u32 saveDSPBCNTR;
        u32 saveDSPARB;
-       u32 saveHWS;
        u32 savePIPEACONF;
        u32 savePIPEBCONF;
        u32 savePIPEASRC;
index a818eba7cb66852a747fd5e7d45f1bebb8f3d0fc..63d4d30c39de3ebff432161965f9b7221db44786 100644 (file)
@@ -811,10 +811,6 @@ int i915_save_state(struct drm_device *dev)
 
        mutex_lock(&dev->struct_mutex);
 
-       /* Hardware status page */
-       if (!drm_core_check_feature(dev, DRIVER_MODESET))
-               dev_priv->regfile.saveHWS = I915_READ(HWS_PGA);
-
        i915_save_display(dev);
 
        if (!drm_core_check_feature(dev, DRIVER_MODESET)) {
@@ -865,10 +861,6 @@ int i915_restore_state(struct drm_device *dev)
 
        mutex_lock(&dev->struct_mutex);
 
-       /* Hardware status page */
-       if (!drm_core_check_feature(dev, DRIVER_MODESET))
-               I915_WRITE(HWS_PGA, dev_priv->regfile.saveHWS);
-
        i915_restore_display(dev);
 
        if (!drm_core_check_feature(dev, DRIVER_MODESET)) {