From patchwork Mon Oct 31 13:15:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wayne Boyer X-Patchwork-Id: 13025884 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 69E00C38A02 for ; Mon, 31 Oct 2022 13:14:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9DFA610E2AE; Mon, 31 Oct 2022 13:14:51 +0000 (UTC) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id 419A110E294; Mon, 31 Oct 2022 13:14:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667222089; x=1698758089; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=bOYyvu37r93/EG7L+GbiMD7vVm7Z4A8ySPIgr3cIehM=; b=iXVTGEwlG/yzF/eSELzzIcpTC1vnwScWE0hLsG5ujvJCiDSNV0VhOaHs VhlGb7emuHgibblVYkVhsaPxYz/kjayqxsifIje43Tf6axO3y6p39Bl95 SdsJ9tteopjWN6wfxHakx1xt0fcB5PX0rj34XtmMIkHMIifvxsvVCUMoj dsfKAp2fXSKIQHvrzf/+68cWI8fZdyz2v6brYvHBjIiHCJfQOF5W3C7wk S3NkVRS9vHT0Sjmm1QZ1FounntHo1teCuy95TOgfgsbcEatvamxgFcAm8 flMkEDgDa0+F7VkJBrTaEswoMZrOyJ6XZnmJQUgLhQOmx4Vvj02Mt+bsY g==; X-IronPort-AV: E=McAfee;i="6500,9779,10516"; a="292186873" X-IronPort-AV: E=Sophos;i="5.95,228,1661842800"; d="scan'208";a="292186873" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2022 06:14:48 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10516"; a="808548703" X-IronPort-AV: E=Sophos;i="5.95,228,1661842800"; d="scan'208";a="808548703" Received: from wboyer-ubuntu01.jf.intel.com ([10.54.75.13]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2022 06:14:48 -0700 From: Wayne Boyer To: intel-gfx@lists.freedesktop.org Date: Mon, 31 Oct 2022 06:15:09 -0700 Message-Id: <20221031131509.3411195-1-wayne.boyer@intel.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH] drm/i915/dg2: Introduce Wa_18017747507 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: dri-devel@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" WA 18017747507 applies to all DG2 skus. BSpec: 56035, 46121, 68173 Signed-off-by: Wayne Boyer Reviewed-by: Matt Roper --- drivers/gpu/drm/i915/gt/intel_gt_regs.h | 3 +++ drivers/gpu/drm/i915/gt/intel_workarounds.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/gpu/drm/i915/gt/intel_gt_regs.h b/drivers/gpu/drm/i915/gt/intel_gt_regs.h index f4624262dc81..27b2641e1a53 100644 --- a/drivers/gpu/drm/i915/gt/intel_gt_regs.h +++ b/drivers/gpu/drm/i915/gt/intel_gt_regs.h @@ -501,6 +501,9 @@ #define VF_PREEMPTION _MMIO(0x83a4) #define PREEMPTION_VERTEX_COUNT REG_GENMASK(15, 0) +#define VFG_PREEMPTION_CHICKEN _MMIO(0x83b4) +#define POLYGON_TRIFAN_LINELOOP_DISABLE REG_BIT(4) + #define GEN8_RC6_CTX_INFO _MMIO(0x8504) #define XEHP_SQCM MCR_REG(0x8724) diff --git a/drivers/gpu/drm/i915/gt/intel_workarounds.c b/drivers/gpu/drm/i915/gt/intel_workarounds.c index 2a35e7e66625..3cdf5c24dbc5 100644 --- a/drivers/gpu/drm/i915/gt/intel_workarounds.c +++ b/drivers/gpu/drm/i915/gt/intel_workarounds.c @@ -2975,6 +2975,9 @@ general_render_compute_wa_init(struct intel_engine_cs *engine, struct i915_wa_li * Wa_22015475538:dg2 */ wa_mcr_write_or(wal, LSC_CHICKEN_BIT_0_UDW, DIS_CHAIN_2XSIMD8); + + /* Wa_18017747507:dg2 */ + wa_masked_en(wal, VFG_PREEMPTION_CHICKEN, POLYGON_TRIFAN_LINELOOP_DISABLE); } }