]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: Add Wa_1406306137:icl,ehl
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 11 Mar 2020 16:22:58 +0000 (09:22 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Fri, 13 Mar 2020 16:02:21 +0000 (09:02 -0700)
v2:
 - Move to context workarounds.  ROW_CHICKEN4 is part of the context
   image on gen11 (although it isn't on gen12).

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200311162300.1838847-5-matthew.d.roper@intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
drivers/gpu/drm/i915/gt/intel_workarounds.c
drivers/gpu/drm/i915/i915_reg.h

index 3bbd892942798d6701d98199db3c1d71c1db8cf8..2318b55b97222e809af26c50381d210fb2133667 100644 (file)
@@ -581,6 +581,9 @@ static void icl_ctx_workarounds_init(struct intel_engine_cs *engine,
        wa_write_masked_or(wal, IVB_FBC_RT_BASE_UPPER,
                           0, /* write-only register; skip validation */
                           0xFFFFFFFF);
+
+       /* Wa_1406306137:icl,ehl */
+       wa_masked_en(wal, GEN9_ROW_CHICKEN4, GEN11_DIS_PICK_2ND_EU);
 }
 
 static void tgl_ctx_workarounds_init(struct intel_engine_cs *engine,
index b6b52b735120d1e0ba660ce1a9bbfdc28d868220..309cb7d96b353aaccbe1b6e15bd2c68267260625 100644 (file)
@@ -9151,6 +9151,7 @@ enum {
 
 #define GEN9_ROW_CHICKEN4              _MMIO(0xe48c)
 #define   GEN12_DISABLE_TDL_PUSH       REG_BIT(9)
+#define   GEN11_DIS_PICK_2ND_EU                REG_BIT(7)
 
 #define HSW_ROW_CHICKEN3               _MMIO(0xe49c)
 #define  HSW_ROW_CHICKEN3_L3_GLOBAL_ATOMICS_DISABLE    (1 << 6)