Skip to content

Commit ae0e5e6

Browse files
shekhar-chauhanmattrope
authored andcommitted
drm/i915: Add Wa_18028616096
Drop UGM per set fragment threshold to 3 BSpec: 54833 Signed-off-by: Shekhar Chauhan <[email protected]> Reviewed-by: Matt Roper <[email protected]> [mattrope: moved above xehpsdv block for consistency] Signed-off-by: Matt Roper <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 2fc37c0 commit ae0e5e6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,6 +1232,7 @@
12321232
#define DISABLE_D8_D16_COASLESCE REG_BIT(30)
12331233
#define FORCE_1_SUB_MESSAGE_PER_FRAGMENT REG_BIT(15)
12341234
#define LSC_CHICKEN_BIT_0_UDW MCR_REG(0xe7c8 + 4)
1235+
#define UGM_FRAGMENT_THRESHOLD_TO_3 REG_BIT(58 - 32)
12351236
#define DIS_CHAIN_2XSIMD8 REG_BIT(55 - 32)
12361237
#define FORCE_SLM_FENCE_SCOPE_TO_TILE REG_BIT(42 - 32)
12371238
#define FORCE_UGM_FENCE_SCOPE_TO_TILE REG_BIT(41 - 32)

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2941,6 +2941,11 @@ general_render_compute_wa_init(struct intel_engine_cs *engine, struct i915_wa_li
29412941
true);
29422942
}
29432943

2944+
if (IS_DG2_G10(i915) || IS_DG2_G12(i915)) {
2945+
/* Wa_18028616096 */
2946+
wa_mcr_write_or(wal, LSC_CHICKEN_BIT_0_UDW, UGM_FRAGMENT_THRESHOLD_TO_3);
2947+
}
2948+
29442949
if (IS_XEHPSDV(i915)) {
29452950
/* Wa_1409954639 */
29462951
wa_mcr_masked_en(wal,

0 commit comments

Comments
 (0)