drm/xe/xe2hpg: Add Wa_14021821874
authorTejas Upadhyay <tejas.upadhyay@intel.com>
Mon, 12 Aug 2024 13:41:17 +0000 (19:11 +0530)
committerMatt Roper <matthew.d.roper@intel.com>
Mon, 12 Aug 2024 23:47:55 +0000 (16:47 -0700)
Wa_14021821874 applies to xe2_hpg

V2(Himal):
  - Use space after define

Cc: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240812134117.813670-1-tejas.upadhyay@intel.com
drivers/gpu/drm/xe/regs/xe_gt_regs.h
drivers/gpu/drm/xe/xe_wa.c

index 2c8c4d4218dbe5bebc209e9180c3e01cf6dbbb22..5f33dee35f8a07cd7709dcd58fe16b846afd3aca 100644 (file)
 #define   DIS_FIX_EOT1_FLUSH                   REG_BIT(9)
 
 #define TDL_TSL_CHICKEN                                XE_REG_MCR(0xe4c4, XE_REG_OPTION_MASKED)
+#define   STK_ID_RESTRICT                      REG_BIT(12)
 #define   SLM_WMTP_RESTORE                     REG_BIT(11)
 
 #define ROW_CHICKEN                            XE_REG_MCR(0xe4f0, XE_REG_OPTION_MASKED)
index 564e32e44e3b0b2cde3965538fccf8391d9a9847..28b7f95b6c2f8d4c30d59c76bfdffed3c3e97da5 100644 (file)
@@ -542,6 +542,10 @@ static const struct xe_rtp_entry_sr engine_was[] = {
          XE_RTP_RULES(GRAPHICS_VERSION(2001), ENGINE_CLASS(RENDER)),
          XE_RTP_ACTIONS(SET(HALF_SLICE_CHICKEN7, CLEAR_OPTIMIZATION_DISABLE))
        },
+       { XE_RTP_NAME("14021821874"),
+         XE_RTP_RULES(GRAPHICS_VERSION(2001), FUNC(xe_rtp_match_first_render_or_compute)),
+         XE_RTP_ACTIONS(SET(TDL_TSL_CHICKEN, STK_ID_RESTRICT))
+       },
 
        /* Xe2_LPM */