]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i915/dg2: Add Wa_1509727124
authorHarish Chegondi <harish.chegondi@intel.com>
Mon, 1 Aug 2022 21:38:39 +0000 (14:38 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 2 Aug 2022 15:07:02 +0000 (08:07 -0700)
Bspec: 46052
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Harish Chegondi <harish.chegondi@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220801213839.8549-1-harish.chegondi@intel.com
drivers/gpu/drm/i915/gt/intel_gt_regs.h
drivers/gpu/drm/i915/gt/intel_workarounds.c

index 60d6eb5f245b72fda24257e097a1ef9133dec6ad..b3b49f6d6d1c23e07b37762ee4ea188842630753 100644 (file)
 
 #define GEN10_SAMPLER_MODE                     _MMIO(0xe18c)
 #define   ENABLE_SMALLPL                       REG_BIT(15)
+#define   SC_DISABLE_POWER_OPTIMIZATION_EBB    REG_BIT(9)
 #define   GEN11_SAMPLER_ENABLE_HEADLESS_MSG    REG_BIT(5)
 
 #define GEN9_HALF_SLICE_CHICKEN7               _MMIO(0xe194)
index e8111fce56d033e56925207da95a608720f6e37a..59cf28baa47202f1e272d6d7bf106ec2b058a9b3 100644 (file)
@@ -2119,6 +2119,13 @@ rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal)
                wa_write_or(wal, LSC_CHICKEN_BIT_0_UDW, DIS_CHAIN_2XSIMD8);
        }
 
+       if (IS_DG2_GRAPHICS_STEP(i915, G10, STEP_B0, STEP_FOREVER) ||
+           IS_DG2_G11(i915) || IS_DG2_G12(i915)) {
+               /* Wa_1509727124:dg2 */
+               wa_masked_en(wal, GEN10_SAMPLER_MODE,
+                            SC_DISABLE_POWER_OPTIMIZATION_EBB);
+       }
+
        if (IS_DG2_GRAPHICS_STEP(i915, G10, STEP_A0, STEP_B0) ||
            IS_DG2_GRAPHICS_STEP(i915, G11, STEP_A0, STEP_B0)) {
                /* Wa_14012419201:dg2 */