Skip to content

Commit a631500

Browse files
tursulinjlahtine-intel
authored andcommitted
drm/i915/icl: Add WaDisableBankHangMode
Disable GPU hang by default on unrecoverable ECC cache errors. v2: * Rebase. v3: * Use intel_uncore_read. (Chris) Fixes: cc38cae ("drm/i915/icl: Introduce initial Icelake Workarounds") Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Acked-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20190520110442.403-2-tvrtko.ursulin@linux.intel.com (cherry picked from commit cbe3e1d) Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
1 parent cd6c84d commit a631500

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎drivers/gpu/drm/i915/i915_reg.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7620,6 +7620,9 @@ enum {
76207620
#define GEN8_SBE_DISABLE_REPLAY_BUF_OPTIMIZATION (1 << 8)
76217621
#define GEN8_CSC2_SBE_VUE_CACHE_CONSERVATIVE (1 << 0)
76227622

7623+
#define GEN8_L3CNTLREG _MMIO(0x7034)
7624+
#define GEN8_ERRDETBCTRL (1 << 9)
7625+
76237626
#define GEN11_COMMON_SLICE_CHICKEN3 _MMIO(0x7304)
76247627
#define GEN11_BLEND_EMB_FIX_DISABLE_IN_RCC (1 << 11)
76257628

‎drivers/gpu/drm/i915/intel_workarounds.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,12 @@ static void icl_ctx_workarounds_init(struct intel_engine_cs *engine)
518518
struct drm_i915_private *i915 = engine->i915;
519519
struct i915_wa_list *wal = &engine->ctx_wa_list;
520520

521+
/* WaDisableBankHangMode:icl */
522+
wa_write(wal,
523+
GEN8_L3CNTLREG,
524+
intel_uncore_read(engine->uncore, GEN8_L3CNTLREG) |
525+
GEN8_ERRDETBCTRL);
526+
521527
/* Wa_1604370585:icl (pre-prod)
522528
* Formerly known as WaPushConstantDereferenceHoldDisable
523529
*/

0 commit comments

Comments
 (0)