Skip to content

Commit 7cd05ef

Browse files
guludomattrope
authored andcommitted
drm/xe/xe2hpm: Add initial set of workarounds
Define the initial set of workarounds for Xe2_HPM. Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com> Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@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/20240408170545.3769566-12-balasubramani.vivekanandan@intel.com
1 parent e391ab6 commit 7cd05ef

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@
280280
#define FORCEWAKE_GT XE_REG(0xa188)
281281

282282
#define PG_ENABLE XE_REG(0xa210)
283+
#define VD2_MFXVDENC_POWERGATE_ENABLE REG_BIT(8)
284+
#define VD2_HCP_POWERGATE_ENABLE REG_BIT(7)
285+
#define VD0_MFXVDENC_POWERGATE_ENABLE REG_BIT(4)
286+
#define VD0_HCP_POWERGATE_ENABLE REG_BIT(3)
283287

284288
#define CTC_MODE XE_REG(0xa26c)
285289
#define CTC_SHIFT_PARAMETER_MASK REG_GENMASK(2, 1)

drivers/gpu/drm/xe/xe_wa.c

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,28 @@ static const struct xe_rtp_entry_sr gt_was[] = {
228228
XE_RTP_ENTRY_FLAG(FOREACH_ENGINE),
229229
},
230230

231+
/* Xe2_HPM */
232+
233+
{ XE_RTP_NAME("16021867713"),
234+
XE_RTP_RULES(MEDIA_VERSION(1301),
235+
ENGINE_CLASS(VIDEO_DECODE)),
236+
XE_RTP_ACTIONS(SET(VDBOX_CGCTL3F1C(0), MFXPIPE_CLKGATE_DIS)),
237+
XE_RTP_ENTRY_FLAG(FOREACH_ENGINE),
238+
},
239+
{ XE_RTP_NAME("14020316580"),
240+
XE_RTP_RULES(MEDIA_VERSION(1301)),
241+
XE_RTP_ACTIONS(CLR(PG_ENABLE,
242+
VD0_HCP_POWERGATE_ENABLE |
243+
VD0_MFXVDENC_POWERGATE_ENABLE |
244+
VD2_HCP_POWERGATE_ENABLE |
245+
VD2_MFXVDENC_POWERGATE_ENABLE)),
246+
},
247+
{ XE_RTP_NAME("14019449301"),
248+
XE_RTP_RULES(MEDIA_VERSION(1301), ENGINE_CLASS(VIDEO_DECODE)),
249+
XE_RTP_ACTIONS(SET(VDBOX_CGCTL3F08(0), CG3DDISHRS_CLKGATE_DIS)),
250+
XE_RTP_ENTRY_FLAG(FOREACH_ENGINE),
251+
},
252+
231253
{}
232254
};
233255

@@ -513,6 +535,16 @@ static const struct xe_rtp_entry_sr engine_was[] = {
513535
XE_RTP_ACTIONS(SET(LSC_CHICKEN_BIT_0, WR_REQ_CHAINING_DIS))
514536
},
515537

538+
/* Xe2_HPM */
539+
540+
{ XE_RTP_NAME("16021639441"),
541+
XE_RTP_RULES(MEDIA_VERSION(1301)),
542+
XE_RTP_ACTIONS(SET(CSFE_CHICKEN1(0),
543+
GHWSP_CSB_REPORT_DIS |
544+
PPHWSP_CSB_AND_TIMESTAMP_REPORT_DIS,
545+
XE_RTP_ACTION_FLAG(ENGINE_BASE)))
546+
},
547+
516548
{}
517549
};
518550

0 commit comments

Comments
 (0)