Skip to content

Commit 92029e0

Browse files
committed
drm/xe/ptl: Apply Wa_14023061436
Enable WMTP for the BTD kernel to address Wa14023061436 by setting the proper TDL Chicken Bit. v2: Apply it on engine_was[] as this register is not part of LRC(Matt) Apply it for first_render_or_compute in case this gets extended to compute only platforms(Matt). Cc: Gustavo Sousa <[email protected]> Cc: Matt Roper <[email protected]> Reviewed-by: Matt Roper <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Nirmoy Das <[email protected]>
1 parent 480fb98 commit 92029e0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,9 @@
500500
#define LSC_L1_FLUSH_CTL_3D_DATAPORT_FLUSH_EVENTS_MASK REG_GENMASK(13, 11)
501501
#define DIS_ATOMIC_CHAINING_TYPED_WRITES REG_BIT(3)
502502

503+
#define TDL_CHICKEN XE_REG_MCR(0xe5f4, XE_REG_OPTION_MASKED)
504+
#define QID_WAIT_FOR_THREAD_NOT_RUN_DISABLE REG_BIT(12)
505+
503506
#define LSC_CHICKEN_BIT_0 XE_REG_MCR(0xe7c8)
504507
#define DISABLE_D8_D16_COASLESCE REG_BIT(30)
505508
#define WR_REQ_CHAINING_DIS REG_BIT(26)

drivers/gpu/drm/xe/xe_wa.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,11 @@ static const struct xe_rtp_entry_sr engine_was[] = {
613613
XE_RTP_ACTIONS(FIELD_SET(SAMPLER_MODE, SMP_WAIT_FETCH_MERGING_COUNTER,
614614
SMP_FORCE_128B_OVERFETCH))
615615
},
616+
{ XE_RTP_NAME("14023061436"),
617+
XE_RTP_RULES(GRAPHICS_VERSION_RANGE(3000, 3001),
618+
FUNC(xe_rtp_match_first_render_or_compute)),
619+
XE_RTP_ACTIONS(SET(TDL_CHICKEN, QID_WAIT_FOR_THREAD_NOT_RUN_DISABLE))
620+
},
616621

617622
{}
618623
};

0 commit comments

Comments
 (0)