Skip to content

Commit e4ac526

Browse files
saiteja13427mattrope
authored andcommitted
drm/xe/xe2hpg: Introduce performance tuning changes for Xe2_HPG
Add performance tuning changes for Xe2_HPG Bspec: 72161 Signed-off-by: Sai Teja Pottumuttu <[email protected]> Reviewed-by: Gustavo Sousa <[email protected]> Signed-off-by: Matt Roper <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent dbcbfc7 commit e4ac526

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

drivers/gpu/drm/xe/regs/xe_gt_regs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108

109109
#define FF_MODE XE_REG_MCR(0x6210)
110110
#define DIS_TE_AUTOSTRIP REG_BIT(31)
111+
#define VS_HIT_MAX_VALUE_MASK REG_GENMASK(25, 20)
111112
#define DIS_MESH_PARTIAL_AUTOSTRIP REG_BIT(16)
112113
#define DIS_MESH_AUTOSTRIP REG_BIT(15)
113114

drivers/gpu/drm/xe/xe_tuning.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ static const struct xe_rtp_entry_sr lrc_tunings[] = {
9393
REG_FIELD_PREP(L3_PWM_TIMER_INIT_VAL_MASK, 0x7f)))
9494
},
9595

96+
/* Xe2_HPG */
97+
98+
{ XE_RTP_NAME("Tuning: vs hit max value"),
99+
XE_RTP_RULES(GRAPHICS_VERSION(2001), ENGINE_CLASS(RENDER)),
100+
XE_RTP_ACTIONS(FIELD_SET(FF_MODE, VS_HIT_MAX_VALUE_MASK,
101+
REG_FIELD_PREP(VS_HIT_MAX_VALUE_MASK, 0x3f)))
102+
},
103+
96104
{}
97105
};
98106

0 commit comments

Comments
 (0)