From: Daniel Vetter Subject: Re: [PATCH 1/3] drm/i915: Add ECOBITS_SNB_BIT Date: Tue, 9 Apr 2013 19:01:49 +0200 Message-ID: <20130409170149.GB27612@phenom.ffwll.local> References: <1365077622-4605-1-git-send-email-ville.syrjala@linux.intel.com> <1365524598.2352.0.camel@intelbox> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-ee0-f50.google.com (mail-ee0-f50.google.com [74.125.83.50]) by gabe.freedesktop.org (Postfix) with ESMTP id 1EDA7E5BF0 for ; Tue, 9 Apr 2013 09:58:49 -0700 (PDT) Received: by mail-ee0-f50.google.com with SMTP id e53so3090129eek.9 for ; Tue, 09 Apr 2013 09:58:49 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1365524598.2352.0.camel@intelbox> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Imre Deak Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, Apr 09, 2013 at 07:23:18PM +0300, Imre Deak wrote: > On Thu, 2013-04-04 at 15:13 +0300, ville.syrjala@linux.intel.com wrote: > > From: Ville Syrj=E4l=E4 > > = > > GAC_ECO_BITS has a bit similar to GAM_ECOCHK's ECOCHK_SNB_BIT. Add > > the define, and enable it on SNB. > > = > > Signed-off-by: Ville Syrj=E4l=E4 > = > On the series: > Reviewed-by: Imre Deak Queued for -next, thanks for the patches. -Daniel > = > > --- > > drivers/gpu/drm/i915/i915_gem_gtt.c | 3 ++- > > drivers/gpu/drm/i915/i915_reg.h | 1 + > > 2 files changed, 3 insertions(+), 1 deletion(-) > > = > > diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915= /i915_gem_gtt.c > > index 24a23b3..593137b 100644 > > --- a/drivers/gpu/drm/i915/i915_gem_gtt.c > > +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c > > @@ -312,7 +312,8 @@ void i915_gem_init_ppgtt(struct drm_device *dev) > > uint32_t ecochk, gab_ctl, ecobits; > > = > > ecobits =3D I915_READ(GAC_ECO_BITS); > > - I915_WRITE(GAC_ECO_BITS, ecobits | ECOBITS_PPGTT_CACHE64B); > > + I915_WRITE(GAC_ECO_BITS, ecobits | ECOBITS_SNB_BIT | > > + ECOBITS_PPGTT_CACHE64B); > > = > > gab_ctl =3D I915_READ(GAB_CTL); > > I915_WRITE(GAB_CTL, gab_ctl | GAB_CTL_CONT_AFTER_PAGEFAULT); > > diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i91= 5_reg.h > > index 058686c..4b8fd4d 100644 > > --- a/drivers/gpu/drm/i915/i915_reg.h > > +++ b/drivers/gpu/drm/i915/i915_reg.h > > @@ -127,6 +127,7 @@ > > #define ECOCHK_PPGTT_CACHE4B (0x0<<3) > > = > > #define GAC_ECO_BITS 0x14090 > > +#define ECOBITS_SNB_BIT (1<<13) > > #define ECOBITS_PPGTT_CACHE64B (3<<8) > > #define ECOBITS_PPGTT_CACHE4B (0<<8) > > = > = > = > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch