Skip to content

Commit ce38cb8

Browse files
msatwoodrodrigovivi
authored andcommitted
drm/i915/dg2: Introduce Wa_18018764978
Wa_18018764978 applies to specific steppings of DG2 (G10 C0+, G11 and G12 A0+). Clean up style in function at the same time. Bspec: 66622 Signed-off-by: Matt Atwood <[email protected]> Reviewed-by: Gustavo Sousa <[email protected]> Signed-off-by: Matt Roper <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 468a4e6) Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent 93eea62 commit ce38cb8

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

drivers/gpu/drm/i915/gt/intel_gt_regs.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,9 @@
457457
#define GEN8_L3CNTLREG _MMIO(0x7034)
458458
#define GEN8_ERRDETBCTRL (1 << 9)
459459

460+
#define PSS_MODE2 _MMIO(0x703c)
461+
#define SCOREBOARD_STALL_FLUSH_CONTROL REG_BIT(5)
462+
460463
#define GEN7_SC_INSTDONE _MMIO(0x7100)
461464
#define GEN12_SC_INSTDONE_EXTRA _MMIO(0x7104)
462465
#define GEN12_SC_INSTDONE_EXTRA2 _MMIO(0x7108)

drivers/gpu/drm/i915/gt/intel_workarounds.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,9 +771,14 @@ static void dg2_ctx_workarounds_init(struct intel_engine_cs *engine,
771771

772772
/* Wa_14014947963:dg2 */
773773
if (IS_DG2_GRAPHICS_STEP(engine->i915, G10, STEP_B0, STEP_FOREVER) ||
774-
IS_DG2_G11(engine->i915) || IS_DG2_G12(engine->i915))
774+
IS_DG2_G11(engine->i915) || IS_DG2_G12(engine->i915))
775775
wa_masked_field_set(wal, VF_PREEMPTION, PREEMPTION_VERTEX_COUNT, 0x4000);
776776

777+
/* Wa_18018764978:dg2 */
778+
if (IS_DG2_GRAPHICS_STEP(engine->i915, G10, STEP_C0, STEP_FOREVER) ||
779+
IS_DG2_G11(engine->i915) || IS_DG2_G12(engine->i915))
780+
wa_masked_en(wal, PSS_MODE2, SCOREBOARD_STALL_FLUSH_CONTROL);
781+
777782
/* Wa_15010599737:dg2 */
778783
wa_mcr_masked_en(wal, CHICKEN_RASTER_1, DIS_SF_ROUND_NEAREST_EVEN);
779784
}

0 commit comments

Comments
 (0)