]> www.infradead.org Git - users/hch/configfs.git/commitdiff
drm/xe/xe2hpg: Introduce performance tuning changes for Xe2_HPG
authorSai Teja Pottumuttu <sai.teja.pottumuttu@intel.com>
Wed, 24 Jul 2024 12:15:21 +0000 (17:45 +0530)
committerMatt Roper <matthew.d.roper@intel.com>
Mon, 29 Jul 2024 20:35:59 +0000 (13:35 -0700)
Add performance tuning changes for Xe2_HPG

Bspec: 72161
Signed-off-by: Sai Teja Pottumuttu <sai.teja.pottumuttu@intel.com>
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240724121521.2347524-1-sai.teja.pottumuttu@intel.com
drivers/gpu/drm/xe/regs/xe_gt_regs.h
drivers/gpu/drm/xe/xe_tuning.c

index 8a94a94d226780744e41026de61321067afc8b78..3b87f95f9ecfe5e2a5a29e0cd17d426b3772f71e 100644 (file)
 
 #define FF_MODE                                        XE_REG_MCR(0x6210)
 #define   DIS_TE_AUTOSTRIP                     REG_BIT(31)
+#define   VS_HIT_MAX_VALUE_MASK                        REG_GENMASK(25, 20)
 #define   DIS_MESH_PARTIAL_AUTOSTRIP           REG_BIT(16)
 #define   DIS_MESH_AUTOSTRIP                   REG_BIT(15)
 
index d4e6fa918942be2f1cce4b3d3880abadc7f5d3ee..77d4eec0118d442c23953dc83f9927d10c955fa4 100644 (file)
@@ -93,6 +93,14 @@ static const struct xe_rtp_entry_sr lrc_tunings[] = {
                                   REG_FIELD_PREP(L3_PWM_TIMER_INIT_VAL_MASK, 0x7f)))
        },
 
+       /* Xe2_HPG */
+
+       { XE_RTP_NAME("Tuning: vs hit max value"),
+         XE_RTP_RULES(GRAPHICS_VERSION(2001), ENGINE_CLASS(RENDER)),
+         XE_RTP_ACTIONS(FIELD_SET(FF_MODE, VS_HIT_MAX_VALUE_MASK,
+                                  REG_FIELD_PREP(VS_HIT_MAX_VALUE_MASK, 0x3f)))
+       },
+
        {}
 };