]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: Implement WaDisableEarlyEOT.
authorRafael Antognolli <rafael.antognolli@intel.com>
Sat, 16 Dec 2017 00:11:17 +0000 (16:11 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2017 21:43:26 +0000 (13:43 -0800)
There seems to be another clock gating issue which the workaround is
described as:

   "WA: Set 0xE4F0[1] = 1 to disable Early EOT of thread."

Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171216001117.14232-2-rafael.antognolli@intel.com
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_engine_cs.c

index 759c60095cbeb45b5d2943ab3bb458f7d4277987..268bbd0eaaa4439fc4d2c361d53932bc14cb5035 100644 (file)
@@ -8146,6 +8146,7 @@ enum {
 #define   PARTIAL_INSTRUCTION_SHOOTDOWN_DISABLE        (1<<8)
 #define   STALL_DOP_GATING_DISABLE             (1<<5)
 #define   THROTTLE_12_5                                (7<<2)
+#define   DISABLE_EARLY_EOT                    (1<<1)
 
 #define GEN7_ROW_CHICKEN2              _MMIO(0xe4f4)
 #define GEN7_ROW_CHICKEN2_GT2          _MMIO(0xf4f4)
index b4807497e92dcc196a4affc98a27932420685d60..9856e24c7c43c25be141a630deed80d0a8f5fbde 100644 (file)
@@ -1272,6 +1272,9 @@ static int cnl_init_workarounds(struct intel_engine_cs *engine)
        if (ret)
                return ret;
 
+       /* WaDisableEarlyEOT:cnl */
+       WA_SET_BIT_MASKED(GEN8_ROW_CHICKEN, DISABLE_EARLY_EOT);
+
        return 0;
 }