Skip to content

Commit 4f12237

Browse files
Tvrtko Ursulinlucasdemarchi
Tvrtko Ursulin
authored andcommitted
drm/xe/xelp: L3 recommended hashing mask
According to the i915 codebase xe missed to set the recommended performance tuning for L3 hashing which is applicable to all legacy XeLP platforms. Lets add it. v2: * Rename prefixes to XELP_. * Tweak version end point. v3: * Add bspec tag. * Tweak version range. v4: * Move from LRC to engine tunings list. v5: * Drop L3 Cache Control comment. Bspec: 31870 Signed-off-by: Tvrtko Ursulin <[email protected]> References: c46c5fb ("drm/i915/gen12: Apply recommended L3 hashing mask") Cc: Lucas De Marchi <[email protected]> Cc: Matt Roper <[email protected]> Reviewed-by: Matt Roper <[email protected]> Reviewed-by: Lucas De Marchi <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Lucas De Marchi <[email protected]>
1 parent 96f1826 commit 4f12237

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,12 @@
364364
#define FORCEWAKE_MEDIA_VEBOX(n) XE_REG(0xa560 + (n) * 4)
365365
#define FORCEWAKE_GSC XE_REG(0xa618)
366366

367+
#define XELP_GARBCNTL XE_REG(0xb004)
368+
#define XELP_BUS_HASH_CTL_BIT_EXC REG_BIT(7)
369+
367370
#define XEHPC_LNCFMISCCFGREG0 XE_REG_MCR(0xb01c, XE_REG_OPTION_MASKED)
368371
#define XEHPC_OVRLSCCC REG_BIT(0)
369372

370-
/* L3 Cache Control */
371373
#define LNCFCMOCS_REG_COUNT 32
372374
#define XELP_LNCFCMOCS(i) XE_REG(0xb020 + (i) * 4)
373375
#define XEHP_LNCFCMOCS(i) XE_REG_MCR(0xb020 + (i) * 4)

drivers/gpu/drm/xe/xe_tuning.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ static const struct xe_rtp_entry_sr gt_tunings[] = {
8888
};
8989

9090
static const struct xe_rtp_entry_sr engine_tunings[] = {
91+
{ XE_RTP_NAME("Tuning: L3 Hashing Mask"),
92+
XE_RTP_RULES(GRAPHICS_VERSION_RANGE(1200, 1210),
93+
FUNC(xe_rtp_match_first_render_or_compute)),
94+
XE_RTP_ACTIONS(CLR(XELP_GARBCNTL, XELP_BUS_HASH_CTL_BIT_EXC))
95+
},
9196
{ XE_RTP_NAME("Tuning: Set Indirect State Override"),
9297
XE_RTP_RULES(GRAPHICS_VERSION_RANGE(1200, 1274),
9398
ENGINE_CLASS(RENDER)),

0 commit comments

Comments
 (0)