All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH 13/23] drm/i915/kbl: Add WaDisableDynamicCreditSharing
Date: Thu, 26 May 2016 18:29:36 +0300	[thread overview]
Message-ID: <1464276586-17939-14-git-send-email-mika.kuoppala@intel.com> (raw)
In-Reply-To: <1464276586-17939-1-git-send-email-mika.kuoppala@intel.com>

Bspec states that we need to turn off dynamic credit
sharing on kbl revid a0 and b0. This happens by writing bit 28
on 0x4ab8.

References: HSD#2225601, HSD#2226938, HSD#2225763
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
---
 drivers/gpu/drm/i915/i915_reg.h         | 2 ++
 drivers/gpu/drm/i915/intel_ringbuffer.c | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 14e0ec818ea4..e0441da08201 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -1672,6 +1672,8 @@ enum skl_disp_power_wells {
 
 #define GEN7_TLB_RD_ADDR	_MMIO(0x4700)
 
+#define GAMT_CHKN_BIT_REG	_MMIO(0x4ab8)
+
 #if 0
 #define PRB0_TAIL	_MMIO(0x2030)
 #define PRB0_HEAD	_MMIO(0x2034)
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index 64922ae9bd69..402e0feb4cca 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -1188,6 +1188,10 @@ static int kbl_init_workarounds(struct intel_engine_cs *engine)
 	if (ret)
 		return ret;
 
+	/* WaDisableDynamicCreditSharing:kbl */
+	if (IS_KBL_REVID(dev_priv, 0, KBL_REVID_B0))
+		WA_SET_BIT(GAMT_CHKN_BIT_REG, (1 << 28));
+
 	/* WaDisableFenceDestinationToSLM:kbl (pre-prod) */
 	if (IS_KBL_REVID(dev_priv, KBL_REVID_A0, KBL_REVID_A0))
 		WA_SET_BIT_MASKED(HDC_CHICKEN0,
-- 
2.5.0

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

  parent reply	other threads:[~2016-05-26 15:29 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-26 15:29 [PATCH 00/23] kbl and gen9 workarounds Mika Kuoppala
2016-05-26 15:29 ` [PATCH 01/23] drm/i915/kbl: Init " Mika Kuoppala
2016-05-26 15:29 ` [PATCH 02/23] drm/i915/kbl: Add REVID macro Mika Kuoppala
2016-05-26 15:29 ` [PATCH 03/23] drm/i915/kbl: Add WaSkipStolenMemoryFirstPage for A0 Mika Kuoppala
2016-05-26 15:29 ` [PATCH 04/23] drm/i915/gen9: Always apply WaForceContextSaveRestoreNonCoherent Mika Kuoppala
2016-05-26 15:29 ` [PATCH 05/23] drm/i915: Mimic skl with WaForceEnableNonCoherent Mika Kuoppala
2016-05-26 15:29 ` [PATCH 06/23] drm/i915/kbl: Add WaEnableGapsTsvCreditFix Mika Kuoppala
2016-05-27  8:14   ` Arun Siluvery
2016-05-26 15:29 ` [PATCH 07/23] drm/i915/kbl: Add WaDisableFenceDestinationToSLM for A0 Mika Kuoppala
2016-05-26 15:29 ` [PATCH 08/23] drm/i915/kbl: Add WaDisableSDEUnitClockGating Mika Kuoppala
2016-05-26 15:29 ` [PATCH 09/23] drm/i915/edp: Add WaKVMNotificationOnConfigChange:bdw, skl Mika Kuoppala
2016-05-27  8:18   ` Mika Kuoppala
2016-05-26 15:29 ` [PATCH 10/23] drm/i915/kbl: Add WaDisableLSQCROPERFforOCL Mika Kuoppala
2016-05-26 15:29 ` [PATCH 11/23] drm/i915/gen9: Enable must set chicken bits in config0 reg Mika Kuoppala
2016-05-26 15:29 ` [PATCH 12/23] drm/i915/kbl: Add WaDisableGamClockGating Mika Kuoppala
2016-05-26 15:29 ` Mika Kuoppala [this message]
2016-05-26 15:29 ` [PATCH 14/23] drm/i915: Add WaInsertDummyPushConstP for bxt and kbl Mika Kuoppala
2016-05-26 15:29 ` [PATCH 15/23] drm/i915/gen9: Add WaDisableSkipCaching Mika Kuoppala
2016-05-26 15:29 ` [PATCH 16/23] drm/i915/skl: Add WAC6entrylatency Mika Kuoppala
2016-05-26 15:29 ` [PATCH 17/23] drm/i915/kbl: Add WaForGAMHang Mika Kuoppala
2016-05-26 15:29 ` [PATCH 18/23] drm/i915: Add WaDisableGafsUnitClkGating for skl and kbl Mika Kuoppala
2016-05-26 15:29 ` [PATCH 19/23] drm/i915/kbl: Add WaDisableSbeCacheDispatchPortSharing Mika Kuoppala
2016-05-26 15:29 ` [PATCH 20/23] drm/i915/gen9: Set wa for display underrun issues with Y & Yf Tiling Mika Kuoppala
2016-05-26 16:53   ` [PATCH 20/23] drm/i915/gen9: Add WaEnableChickenDCPR Mika Kuoppala
2016-05-26 15:29 ` [PATCH 21/23] drm/i915/gen9: Set fbc watermarks disabled Mika Kuoppala
2016-05-26 15:53   ` Ville Syrjälä
2016-05-26 16:06     ` Ville Syrjälä
2016-05-26 16:54   ` [PATCH 21/23] drm/i915/gen9: Add WaFbcTurnOffFbcWatermark Mika Kuoppala
2016-05-26 15:29 ` [PATCH 22/23] drm/i915/gen9: Prevent fbc corruption/system hangs with high bw Mika Kuoppala
2016-05-26 16:54   ` [PATCH 22/23] drm/i915/gen9: Add WaFbcWakeMemOn Mika Kuoppala
2016-05-26 15:29 ` [PATCH 23/23] drm/i195/fbc: Enable wa to prevent fbc corruption with skl and kbl Mika Kuoppala
2016-05-26 16:55   ` [PATCH 23/23] drm/i195/fbc: Add WaFbcNukeOnHostModify Mika Kuoppala
2016-05-26 16:37 ` ✗ Ro.CI.BAT: warning for kbl and gen9 workarounds Patchwork
2016-05-26 17:37 ` ✗ Ro.CI.BAT: warning for kbl and gen9 workarounds (rev5) Patchwork
2016-06-06  7:51 ` [PATCH 00/23] kbl and gen9 workarounds Jani Nikula

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=1464276586-17939-14-git-send-email-mika.kuoppala@intel.com \
    --to=mika.kuoppala@linux.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.