]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe/xe3p_lpg: Drop unnecessary tuning settings
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 6 Feb 2026 18:36:04 +0000 (15:36 -0300)
committerGustavo Sousa <gustavo.sousa@intel.com>
Tue, 10 Feb 2026 13:09:11 +0000 (10:09 -0300)
From Xe3p onward, the desired settings are now the hardware's
default values and the driver does not need to program them explicitly.

Since 35.xx seems to be the starting point for "Xe3p" version numbers;
we'll adjust the bounds of the old programming to stop at 34.99.  Even
though there's no platform with version 35.00 at the moment, this is
simplest in case one does show up in the future.

Bspec: 72161, 59928, 59930
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Matt Atwood <matthew.s.atwood@intel.com>
Link: https://patch.msgid.link/20260206-nvl-p-upstreaming-v3-8-636e1ad32688@intel.com
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
drivers/gpu/drm/xe/xe_tuning.c

index a97872b3214b10894d5ec85ab4b3e603ef234bed..694385ae75f188b2ed2e79da0db66c4213b2c56b 100644 (file)
@@ -32,12 +32,12 @@ static const struct xe_rtp_entry_sr gt_tunings[] = {
        /* Xe2 */
 
        { XE_RTP_NAME("Tuning: L3 cache"),
-         XE_RTP_RULES(GRAPHICS_VERSION_RANGE(2001, XE_RTP_END_VERSION_UNDEFINED)),
+         XE_RTP_RULES(GRAPHICS_VERSION_RANGE(2001, 3499)),
          XE_RTP_ACTIONS(FIELD_SET(XEHP_L3SQCREG5, L3_PWM_TIMER_INIT_VAL_MASK,
                                   REG_FIELD_PREP(L3_PWM_TIMER_INIT_VAL_MASK, 0x7f)))
        },
        { XE_RTP_NAME("Tuning: L3 cache - media"),
-         XE_RTP_RULES(MEDIA_VERSION_RANGE(2000, XE_RTP_END_VERSION_UNDEFINED)),
+         XE_RTP_RULES(MEDIA_VERSION_RANGE(2000, 3499)),
          XE_RTP_ACTIONS(FIELD_SET(XE2LPM_L3SQCREG5, L3_PWM_TIMER_INIT_VAL_MASK,
                                   REG_FIELD_PREP(L3_PWM_TIMER_INIT_VAL_MASK, 0x7f)))
        },
@@ -53,7 +53,7 @@ static const struct xe_rtp_entry_sr gt_tunings[] = {
                         SET(XE2LPM_CCCHKNREG1, L3CMPCTRL))
        },
        { XE_RTP_NAME("Tuning: Enable compressible partial write overfetch in L3"),
-         XE_RTP_RULES(GRAPHICS_VERSION_RANGE(2001, XE_RTP_END_VERSION_UNDEFINED)),
+         XE_RTP_RULES(GRAPHICS_VERSION_RANGE(2001, 3499)),
          XE_RTP_ACTIONS(SET(L3SQCREG3, COMPPWOVERFETCHEN))
        },
        { XE_RTP_NAME("Tuning: Enable compressible partial write overfetch in L3 - media"),