All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oscar Mateo <oscar.mateo@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH 07/14] drm/i915/icl: WaCL2SFHalfMaxAlloc
Date: Thu,  5 Apr 2018 15:29:01 -0700	[thread overview]
Message-ID: <1522967348-27293-7-git-send-email-oscar.mateo@intel.com> (raw)
In-Reply-To: <1522967348-27293-1-git-send-email-oscar.mateo@intel.com>

This workarounds an issue with insufficient storage for the CL2 and SF units.

v2: Renamed to Wa_1405766107

Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
---
 drivers/gpu/drm/i915/i915_reg.h | 4 ++++
 drivers/gpu/drm/i915/intel_pm.c | 7 +++++++
 2 files changed, 11 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index ca12316..b2663de 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -8212,6 +8212,10 @@ enum {
 #define   GEN11_HASH_CTRL_BIT0			(1 << 0)
 #define   GEN11_HASH_CTRL_BIT4			(1 << 12)
 
+#define GEN11_LSN_UNSLCVC				_MMIO(0xB43C)
+#define   GEN11_LSN_UNSLCVC_GAFS_HALF_CL2_MACALLOC	(1 << 9)
+#define   GEN11_LSN_UNSLCVC_GAFS_HALF_SF_MAXALLOC	(1 << 7)
+
 /* IVYBRIDGE DPF */
 #define GEN7_L3CDERRST1(slice)		_MMIO(0xB008 + (slice) * 0x200) /* L3CD Error Status 1 */
 #define   GEN7_L3CDERRST1_ROW_MASK	(0x7ff<<14)
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 84d9910..3843c28 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -8541,6 +8541,13 @@ static void icl_init_clock_gating(struct drm_i915_private *dev_priv)
 	I915_WRITE(GEN11_GACB_PERF_CTRL,
 		   ((I915_READ(GEN11_GACB_PERF_CTRL) & ~GEN11_HASH_CTRL_MASK) |
 		    GEN11_HASH_CTRL_BIT0 | GEN11_HASH_CTRL_BIT4));
+
+	/* Wa_1405766107:icl
+	 * Formerly known as WaCL2SFHalfMaxAlloc
+	 */
+	I915_WRITE(GEN11_LSN_UNSLCVC, (I915_READ(GEN11_LSN_UNSLCVC) |
+				       GEN11_LSN_UNSLCVC_GAFS_HALF_SF_MAXALLOC |
+				       GEN11_LSN_UNSLCVC_GAFS_HALF_CL2_MACALLOC));
 }
 
 static void cnl_init_clock_gating(struct drm_i915_private *dev_priv)
-- 
1.9.1

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

  parent reply	other threads:[~2018-04-05 22:29 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-05 22:28 [PATCH 01/14] drm/i915/icl: Introduce initial Icelake Workarounds Oscar Mateo
2018-04-05 22:28 ` [PATCH 02/14] drm/i915/icl: WaGAPZPriorityScheme Oscar Mateo
2018-04-05 22:28 ` [PATCH 03/14] drm/i915/icl: WaModifyGamTlbPartitioning Oscar Mateo
2018-04-05 22:28 ` [PATCH 04/14] drm/i915/icl: WaL3BankAddressHashing Oscar Mateo
2018-04-05 22:28 ` [PATCH 05/14] drm/i915/icl: WaDisableCleanEvicts Oscar Mateo
2018-04-05 22:29 ` [PATCH 06/14] drm/i915/icl: WaDisableImprovedTdlClkGating Oscar Mateo
2018-04-05 22:29 ` Oscar Mateo [this message]
2018-04-05 22:29 ` [PATCH 08/14] drm/i915/icl: WaDisCtxReload Oscar Mateo
2018-04-05 22:29 ` [PATCH 09/14] drm/i915/icl: WaSendPushConstantsFromMMIO Oscar Mateo
2018-04-05 22:29 ` [PATCH 10/14] drm/i915/icl: WaAllowUMDToModifyHalfSliceChicken2 Oscar Mateo
2018-04-05 22:29 ` [PATCH 11/14] drm/i915/icl: WaAllowUMDToModifyHalfSliceChicken7 Oscar Mateo
2018-04-05 22:29 ` [PATCH 12/14] drm/i915/icl: WaAllowUmdWriteTRTTRootTable Oscar Mateo
2018-04-05 22:29 ` [PATCH 13/14] drm/i915/icl: WaEnableStateCacheRedirectToCS Oscar Mateo
2018-04-05 22:29 ` [PATCH 14/14] drm/i915/icl: Enable Sampler DFR Oscar Mateo
2018-04-05 22:56 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [01/14] drm/i915/icl: Introduce initial Icelake Workarounds Patchwork
2018-04-05 23:10 ` ✗ Fi.CI.BAT: " 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=1522967348-27293-7-git-send-email-oscar.mateo@intel.com \
    --to=oscar.mateo@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.