drm/i915/dg2: Add Wa_15010599737
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 8 Jul 2022 21:58:03 +0000 (14:58 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 12 Jul 2022 15:58:19 +0000 (08:58 -0700)
This workaround may need to be extended to other platforms soon, but for
now it's marked as DG2-specific.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220708215804.2889246-1-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gt/intel_gt_regs.h
drivers/gpu/drm/i915/gt/intel_workarounds.c

index e6bb24dc7b998c54aae9c1346e7b779c6badc49b..60d6eb5f245b72fda24257e097a1ef9133dec6ad 100644 (file)
 #define GEN9_WM_CHICKEN3                       _MMIO(0x5588)
 #define   GEN9_FACTOR_IN_CLR_VAL_HIZ           (1 << 9)
 
+#define CHICKEN_RASTER_1                       _MMIO(0x6204)
+#define   DIS_SF_ROUND_NEAREST_EVEN            REG_BIT(8)
+
 #define VFLSKPD                                        _MMIO(0x62a8)
 #define   DIS_OVER_FETCH_CACHE                 REG_BIT(1)
 #define   DIS_MULT_MISS_RD_SQUASH              REG_BIT(0)
index dcc1ee392c0d11cf209f1669ffc0f3f7cc720c4b..e8111fce56d033e56925207da95a608720f6e37a 100644 (file)
@@ -689,6 +689,9 @@ static void dg2_ctx_workarounds_init(struct intel_engine_cs *engine,
        if (IS_DG2_GRAPHICS_STEP(engine->i915, G10, STEP_B0, STEP_FOREVER) ||
                IS_DG2_G11(engine->i915) || IS_DG2_G12(engine->i915))
                wa_masked_field_set(wal, VF_PREEMPTION, PREEMPTION_VERTEX_COUNT, 0x4000);
+
+       /* Wa_15010599737:dg2 */
+       wa_masked_en(wal, CHICKEN_RASTER_1, DIS_SF_ROUND_NEAREST_EVEN);
 }
 
 static void fakewa_disable_nestedbb_mode(struct intel_engine_cs *engine,