[Intel-gfx] [PATCH 4/8] drm/i915: remove CACHE_MODE_0 save/restore
Zhenyu Wang
zhenyuw at linux.intel.com
Tue Mar 22 02:20:20 CET 2011
On 2011.03.21 10:40:51 -0700, Jesse Barnes wrote:
> On Mon, 21 Mar 2011 17:27:15 +0800
> Zhenyu Wang <zhenyuw at linux.intel.com> wrote:
>
> > we don't use it anywhere.
> >
> > Signed-off-by: Zhenyu Wang <zhenyuw at linux.intel.com>
> > ---
> > drivers/gpu/drm/i915/i915_suspend.c | 6 ------
> > 1 files changed, 0 insertions(+), 6 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/i915_suspend.c b/drivers/gpu/drm/i915/i915_suspend.c
> > index 7f00f8b..11e61a3 100644
> > --- a/drivers/gpu/drm/i915/i915_suspend.c
> > +++ b/drivers/gpu/drm/i915/i915_suspend.c
> > @@ -819,9 +819,6 @@ int i915_save_state(struct drm_device *dev)
> > if (IS_GEN6(dev))
> > gen6_disable_rps(dev);
> >
> > - /* Cache mode state */
> > - dev_priv->saveCACHE_MODE_0 = I915_READ(CACHE_MODE_0);
> > -
> > /* Memory Arbitration state */
> > dev_priv->saveMI_ARB_STATE = I915_READ(MI_ARB_STATE);
> >
> > @@ -867,9 +864,6 @@ int i915_restore_state(struct drm_device *dev)
> > if (IS_GEN6(dev))
> > gen6_enable_rps(dev_priv);
> >
> > - /* Cache mode state */
> > - I915_WRITE (CACHE_MODE_0, dev_priv->saveCACHE_MODE_0 | 0xffff0000);
> > -
> > /* Memory arbitration state */
> > I915_WRITE (MI_ARB_STATE, dev_priv->saveMI_ARB_STATE | 0xffff0000);
>
> I'd be fine with this if we actually set CACHE_MODE_0 to a reasonable
> value somewhere else. But right now we rely on the BIOS settings and
> for the BIOS to reprogram it at resume, which may or may not be
> reliable.
>
I think if we don't touch it in driver we might just keep as it,
but your concern seems reasonable as well... I'll test to see if this
really impacts on suspend issue.
--
Open Source Technology Center, Intel ltd.
$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20110322/897d6d81/attachment.sig>
More information about the Intel-gfx
mailing list