From: Ben Widawsky Subject: Re: [PATCH 5/5] drm/i915: Implement more Broadwell workarounds. Date: Mon, 27 Jan 2014 17:04:26 -0800 Message-ID: <20140128010426.GC18251@bwidawsk.net> References: <1390861218-11616-1-git-send-email-kenneth@whitecape.org> <1390861218-11616-5-git-send-email-kenneth@whitecape.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail.bwidawsk.net (bwidawsk.net [166.78.191.112]) by gabe.freedesktop.org (Postfix) with ESMTP id C73A8105A11 for ; Mon, 27 Jan 2014 17:04:35 -0800 (PST) Content-Disposition: inline In-Reply-To: <1390861218-11616-5-git-send-email-kenneth@whitecape.org> 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: Kenneth Graunke Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Mon, Jan 27, 2014 at 02:20:18PM -0800, Kenneth Graunke wrote: > These should only be necessary on pre-production hardware. > > Signed-off-by: Kenneth Graunke > --- > drivers/gpu/drm/i915/i915_reg.h | 1 + > drivers/gpu/drm/i915/intel_pm.c | 12 ++++++++++++ > 2 files changed, 13 insertions(+) > > diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h > index 418e055..3ad5483 100644 > --- a/drivers/gpu/drm/i915/i915_reg.h > +++ b/drivers/gpu/drm/i915/i915_reg.h > @@ -5008,6 +5008,7 @@ > #define GEN7_PSD_SINGLE_PORT_DISPATCH_ENABLE (1<<3) > > #define GEN8_ROW_CHICKEN 0xe4f0 > +#define INSTRUCTION_SHOOTDOWN_DISABLE (1<<9) > #define PARTIAL_INSTRUCTION_SHOOTDOWN_DISABLE (1<<8) > #define STALL_DOP_GATING_DISABLE (1<<5) > > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c > index 801d439..3cec13f 100644 > --- a/drivers/gpu/drm/i915/intel_pm.c > +++ b/drivers/gpu/drm/i915/intel_pm.c > @@ -4717,6 +4717,18 @@ static void gen8_init_clock_gating(struct drm_device *dev) > I915_WRITE(GEN8_ROW_CHICKEN, > _MASKED_BIT_ENABLE(PARTIAL_INSTRUCTION_SHOOTDOWN_DISABLE)); > > + /* WaDisableInstructionShootdown:bdw - pre-production only */ > + I915_WRITE(GEN8_ROW_CHICKEN, > + _MASKED_BIT_ENABLE(INSTRUCTION_SHOOTDOWN_DISABLE)); > + > + /* WaDisableThreadStallDopClockGating:bdw - pre-production only */ > + I915_WRITE(GEN8_ROW_CHICKEN, > + _MASKED_BIT_ENABLE(STALL_DOP_GATING_DISABLE)); bspec leads me to believe this one is not pre-production only. > + > + /* WaDisableRowChickenDopClockGating:bdw - pre-production only */ > + I915_WRITE(GEN7_ROW_CHICKEN2, > + _MASKED_BIT_ENABLE(DOP_CLOCK_GATING_DISABLE)); > + > /* > * This GEN8_CENTROID_PIXEL_OPT_DIS W/A is only needed for > * pre-production hardware Other than the two minor nitpicks, lgtm in patch 1, and here: Reviewed-by: Ben Widawsky -- Ben Widawsky, Intel Open Source Technology Center