Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95B68C34056 for ; Wed, 19 Feb 2020 20:33:51 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7062124654 for ; Wed, 19 Feb 2020 20:33:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7062124654 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0918C6EC9A; Wed, 19 Feb 2020 20:33:51 +0000 (UTC) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5E3806EC9A for ; Wed, 19 Feb 2020 20:33:49 +0000 (UTC) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Feb 2020 12:33:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,461,1574150400"; d="scan'208";a="349014571" Received: from mdroper-desk1.fm.intel.com (HELO mdroper-desk1.amr.corp.intel.com) ([10.1.27.64]) by fmsmga001.fm.intel.com with SMTP; 19 Feb 2020 12:33:48 -0800 Date: Wed, 19 Feb 2020 12:33:48 -0800 From: Matt Roper To: Anusha Srivatsa Message-ID: <20200219203348.GE2733348@mdroper-desk1.amr.corp.intel.com> References: <20200219035902.26679-1-anusha.srivatsa@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200219035902.26679-1-anusha.srivatsa@intel.com> Subject: Re: [Intel-gfx] [PATCH] drm/i915: Extend Wa_1606931601 for all steppings. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gfx@lists.freedesktop.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Tue, Feb 18, 2020 at 07:59:02PM -0800, Anusha Srivatsa wrote: > Previously known by the WA number - Wa_1607090982, extend > the WA (Disable Early Read and Src Swap (bit 14) by > setting the chicken register.) to all steppings. This description is a bit hard to follow; maybe something like this would be more clear? """ drm/i915: Extend Wa_1606931601 for all steppings According to the bspec, Wa_1606931601 applies to all TGL steppings so we need to move it out of the the A0-only block of rcs_engine_wa_init(). Note that this workaround has also been referred to by an alternate name Wa_1607090982 in some previous patches. """ > > The WA is implemented in - > 3873fd1a43c7 ("drm/i915: Use engine wa list for Wa_1607090982") This sentence can be dropped in favor of the formal "Fixes:" line below. > > Bspec: 46045,52890 > Please add a Fixes: 3873fd1a43c7 ("drm/i915: Use engine wa list for Wa_1607090982") line here to make sure that maintainer tools will properly apply/backport this fix to all the appropriate trees. > Cc: Mika Kuoppala > Signed-off-by: Anusha Srivatsa Aside from the above this looks good, so Reviewed-by: Matt Roper with an updated commit message. Matt > --- > drivers/gpu/drm/i915/gt/intel_workarounds.c | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) > > diff --git a/drivers/gpu/drm/i915/gt/intel_workarounds.c b/drivers/gpu/drm/i915/gt/intel_workarounds.c > index 887e0dc701f7..7cc8a7fc53c7 100644 > --- a/drivers/gpu/drm/i915/gt/intel_workarounds.c > +++ b/drivers/gpu/drm/i915/gt/intel_workarounds.c > @@ -1329,6 +1329,13 @@ rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal) > { > struct drm_i915_private *i915 = engine->i915; > > + if (IS_TIGERLAKE(i915)) { > + /* Wa_1606931601:tgl */ > + wa_masked_en(wal, > + GEN7_ROW_CHICKEN2, > + GEN12_DISABLE_EARLY_READ); > + } > + > if (IS_TGL_REVID(i915, TGL_REVID_A0, TGL_REVID_A0)) { > /* Wa_1606700617:tgl */ > wa_masked_en(wal, > @@ -1360,11 +1367,6 @@ rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal) > wa_write_or(wal, > GEN7_FF_THREAD_MODE, > GEN12_FF_TESSELATION_DOP_GATE_DISABLE); > - > - /* Wa_1606931601:tgl */ > - wa_masked_en(wal, > - GEN7_ROW_CHICKEN2, > - GEN12_DISABLE_EARLY_READ); > } > > if (IS_GEN(i915, 11)) { > -- > 2.25.0 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation (916) 356-2795 _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx