]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/icl: Wa_1607087056
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Tue, 15 Oct 2019 15:44:11 +0000 (18:44 +0300)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 15 Oct 2019 17:12:40 +0000 (18:12 +0100)
Avoid possible hang in tsg,vfe units by keeping
l3 clocks runnings.

Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191015154411.9984-1-mika.kuoppala@linux.intel.com
drivers/gpu/drm/i915/gt/intel_workarounds.c
drivers/gpu/drm/i915/i915_reg.h

index ba65e50189780457ebf5690e887007157ce1cefe..81d299b27fbcc1787cb22a140c14c6a130d6ea6c 100644 (file)
@@ -892,6 +892,11 @@ icl_gt_workarounds_init(struct drm_i915_private *i915, struct i915_wa_list *wal)
        wa_write_or(wal,
                    GAMT_CHKN_BIT_REG,
                    GAMT_CHKN_DISABLE_L3_COH_PIPE);
+
+       /* Wa_1607087056:icl */
+       wa_write_or(wal,
+                   SLICE_UNIT_LEVEL_CLKGATE,
+                   L3_CLKGATE_DIS | L3_CR2X_CLKGATE_DIS);
 }
 
 static void
index 7dd126cc3ac339f5d51224495ae8b11ed3afd8ff..821159c4cd3253be676aae3293b1ff134c984c51 100644 (file)
@@ -4050,6 +4050,8 @@ enum {
 #define  SARBUNIT_CLKGATE_DIS          (1 << 5)
 #define  RCCUNIT_CLKGATE_DIS           (1 << 7)
 #define  MSCUNIT_CLKGATE_DIS           (1 << 10)
+#define  L3_CLKGATE_DIS                        REG_BIT(16)
+#define  L3_CR2X_CLKGATE_DIS           REG_BIT(17)
 
 #define SUBSLICE_UNIT_LEVEL_CLKGATE    _MMIO(0x9524)
 #define  GWUNIT_CLKGATE_DIS            (1 << 16)