From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Subject: Re: [PATCH 9/9] drm/i915: set FORCE_ARB_IDLE_PLANES workaround Date: Mon, 20 May 2013 16:37:18 +0300 Message-ID: <20130520133718.GC14974@intel.com> References: <1367612625-4823-1-git-send-email-przanoni@gmail.com> <1367612625-4823-10-git-send-email-przanoni@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga14.intel.com (mga14.intel.com [143.182.124.37]) by gabe.freedesktop.org (Postfix) with ESMTP id 87DAAE5D2B for ; Mon, 20 May 2013 06:37:22 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1367612625-4823-10-git-send-email-przanoni@gmail.com> 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: Paulo Zanoni Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org On Fri, May 03, 2013 at 05:23:45PM -0300, Paulo Zanoni wrote: > From: Paulo Zanoni > = > Commit 1544d9d57396d5c0c6b7644ed5ae1f4d6caad07a added a workaround > inside haswell_init_clock_gating and mentioned it is "a workaround for > early silicon revisions and should be removed later". This workaround > is documented in bit 31 of PRI_CTL. I asked Arthur and he mentioned > that setting FORCE_ARB_IDLE_PLANES replaces that workaround for the > newer machines. So use the new one. > = > Also notice that there's still another workaround for PRI_CTL that > involves WM_DBG, but it's not the one we're reverting. And notice that > we were previously setting WM_DBG_DISALLOW_MULTIPIPE_LP which disables > the LP watermarks when more than one pipe is used, and we really don't > want this because we need the LP watermarks if we want to reach deeper > PC states. > = > Signed-off-by: Paulo Zanoni Reviewed-by: Ville Syrj=E4l=E4 > --- > drivers/gpu/drm/i915/i915_reg.h | 3 +++ > drivers/gpu/drm/i915/intel_pm.c | 10 ++-------- > 2 files changed, 5 insertions(+), 8 deletions(-) > = > diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_= reg.h > index aec569f..5879f23 100644 > --- a/drivers/gpu/drm/i915/i915_reg.h > +++ b/drivers/gpu/drm/i915/i915_reg.h > @@ -3697,6 +3697,9 @@ > # define CHICKEN3_DGMG_REQ_OUT_FIX_DISABLE (1 << 5) > # define CHICKEN3_DGMG_DONE_FIX_DISABLE (1 << 2) > = > +#define CHICKEN_PAR1_1 0x42080 > +#define FORCE_ARB_IDLE_PLANES (1 << 14) > + > #define DISP_ARB_CTL 0x45000 > #define DISP_TILE_SURFACE_SWIZZLING (1<<13) > #define DISP_FBC_WM_DIS (1<<15) > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel= _pm.c > index b56de92..2297476 100644 > --- a/drivers/gpu/drm/i915/intel_pm.c > +++ b/drivers/gpu/drm/i915/intel_pm.c > @@ -4042,14 +4042,8 @@ static void haswell_init_clock_gating(struct drm_d= evice *dev) > /* WaSwitchSolVfFArbitrationPriority */ > I915_WRITE(GAM_ECOCHK, I915_READ(GAM_ECOCHK) | HSW_ECOCHK_ARB_PRIO_SOL); > = > - /* XXX: This is a workaround for early silicon revisions and should be > - * removed later. > - */ > - I915_WRITE(WM_DBG, > - I915_READ(WM_DBG) | > - WM_DBG_DISALLOW_MULTIPLE_LP | > - WM_DBG_DISALLOW_SPRITE | > - WM_DBG_DISALLOW_MAXFIFO); > + I915_WRITE(CHICKEN_PAR1_1, > + I915_READ(CHICKEN_PAR1_1) | FORCE_ARB_IDLE_PLANES); > = > lpt_init_clock_gating(dev); > } > -- = > 1.7.10.4 > = > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- = Ville Syrj=E4l=E4 Intel OTC