All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yunwei Zhang <yunwei.zhang@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH v2 2/3] drm/i915/icl: Enable WaProgramMgsrForCorrectSliceSpecificMmioReads
Date: Fri, 18 May 2018 11:13:13 -0700	[thread overview]
Message-ID: <1526667193-9471-1-git-send-email-yunwei.zhang@intel.com> (raw)
In-Reply-To: <1526331868-14768-2-git-send-email-yunwei.zhang@intel.com>

WaProgramMgsrForCorrectSliceSpecificMmioReads applies for Icelake as
well.

References: HSD#1405586840, BSID#0575

Cc: Oscar Mateo <oscar.mateo@intel.com>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Signed-off-by: Yunwei Zhang <yunwei.zhang@intel.com>
---
 drivers/gpu/drm/i915/intel_engine_cs.c   | 2 +-
 drivers/gpu/drm/i915/intel_workarounds.c | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_engine_cs.c b/drivers/gpu/drm/i915/intel_engine_cs.c
index 511975f..9ce4dd6 100644
--- a/drivers/gpu/drm/i915/intel_engine_cs.c
+++ b/drivers/gpu/drm/i915/intel_engine_cs.c
@@ -829,7 +829,7 @@ u32 intel_calculate_s_ss_select(struct drm_i915_private *dev_priv)
 
 	mcr_s_ss_mask = GEN8_MCR_SLICE_MASK | GEN8_MCR_SUBSLICE_MASK;
 
-	if (INTEL_GEN(dev_priv) == 10)
+	if (INTEL_GEN(dev_priv) >= 10)
 		mcr_s_ss_select = GEN8_MCR_SLICE(slice) |
 				  GEN8_MCR_SUBSLICE(subslice);
 	else
diff --git a/drivers/gpu/drm/i915/intel_workarounds.c b/drivers/gpu/drm/i915/intel_workarounds.c
index d814368..bbf3de5 100644
--- a/drivers/gpu/drm/i915/intel_workarounds.c
+++ b/drivers/gpu/drm/i915/intel_workarounds.c
@@ -686,7 +686,7 @@ static void wa_init_mcr(struct drm_i915_private *dev_priv)
 		mcr_slice_subslice_mask = GEN8_MCR_SLICE_MASK |
 					  GEN8_MCR_SUBSLICE_MASK;
 	/*
-	 * WaProgramMgsrForCorrectSliceSpecificMmioReads:cnl
+	 * WaProgramMgsrForCorrectSliceSpecificMmioReads:cnl,icl
 	 * Before any MMIO read into slice/subslice specific registers, MCR
 	 * packet control register needs to be programmed to point to any
 	 * enabled s/ss pair. Otherwise, incorrect values will be returned.
@@ -724,6 +724,9 @@ static void cnl_gt_workarounds_apply(struct drm_i915_private *dev_priv)
 
 static void icl_gt_workarounds_apply(struct drm_i915_private *dev_priv)
 {
+	/* WaProgramMgsrForCorrectSliceSpecificMmioReads: icl */
+	wa_init_mcr(dev_priv);
+
 	/* This is not an Wa. Enable for better image quality */
 	I915_WRITE(_3D_CHICKEN3,
 		   _MASKED_BIT_ENABLE(_3D_CHICKEN3_AA_LINE_QUALITY_FIX_ENABLE));
-- 
2.7.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2018-05-18 18:21 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-14 21:04 [PATCH 1/3] drm/i915/cnl: Implement WaProgramMgsrForCorrectSliceSpecificMmioReads Yunwei Zhang
2018-05-14 21:04 ` [PATCH 2/3] drm/i915/icl: Enable WaProgramMgsrForCorrectSliceSpecificMmioReads Yunwei Zhang
2018-05-18 18:13   ` Yunwei Zhang [this message]
2018-05-18 21:56     ` [PATCH v2 " Oscar Mateo Lozano
2018-05-18 22:05     ` [PATCH v3 " Yunwei Zhang
2018-05-18 22:40       ` [PATCH v4 " Yunwei Zhang
2018-05-18 23:22         ` Oscar Mateo Lozano
2018-05-14 21:04 ` [PATCH 3/3] drm/i915: Implement WaProgramMgsrForL3BankSpecificMmioReads Yunwei Zhang
2018-05-18 18:13   ` [PATCH v2 " Yunwei Zhang
2018-05-18 22:41     ` [PATCH v3 " Yunwei Zhang
2018-05-18 23:23       ` Oscar Mateo Lozano
2018-05-24 10:05         ` Mika Kuoppala
2018-05-14 22:38 ` ✗ Fi.CI.SPARSE: warning for series starting with [1/3] drm/i915/cnl: Implement WaProgramMgsrForCorrectSliceSpecificMmioReads Patchwork
2018-05-14 22:55 ` ✓ Fi.CI.BAT: success " Patchwork
2018-05-15  5:40 ` ✗ Fi.CI.IGT: failure " Patchwork
2018-05-18 18:12 ` [PATCH v2 1/3] " Yunwei Zhang
2018-05-18 21:59   ` Oscar Mateo Lozano
2018-05-18 22:04   ` [PATCH v3 " Yunwei Zhang
2018-05-18 22:39     ` [PATCH v4 " Yunwei Zhang
2018-05-18 23:22       ` Oscar Mateo Lozano
2018-05-18 18:43 ` ✗ Fi.CI.SPARSE: warning for series starting with [v2,1/3] drm/i915/cnl: Implement WaProgramMgsrForCorrectSliceSpecificMmioReads (rev4) Patchwork
2018-05-18 18:57 ` ✓ Fi.CI.BAT: success " Patchwork
2018-05-18 22:32 ` ✗ Fi.CI.SPARSE: warning for series starting with [v3,1/3] drm/i915/cnl: Implement WaProgramMgsrForCorrectSliceSpecificMmioReads (rev6) Patchwork
2018-05-18 22:46 ` ✓ Fi.CI.BAT: success " Patchwork
2018-05-18 23:04 ` ✗ Fi.CI.SPARSE: warning for series starting with [v4,1/3] drm/i915/cnl: Implement WaProgramMgsrForCorrectSliceSpecificMmioReads (rev9) Patchwork
2018-05-18 23:20 ` ✓ Fi.CI.BAT: success " Patchwork
2018-05-19 10:11 ` ✓ Fi.CI.IGT: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1526667193-9471-1-git-send-email-yunwei.zhang@intel.com \
    --to=yunwei.zhang@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.