drm/xe/arl: Add Arrow Lake H support
Subsystems (2)
cover drm/xe/arl: Add Arrow Lake H support
These patches includes the new PCI ids and support of workarounds for ARL-H platform.
Graphics version 12.74 (which is technically called "Xe_LPG+") should be handled the same as versions Xe_LPG 12.70/12.71 by the KMD.
Matt Roper (3):
drm/xe/xelpg: Recognize graphics version 12.74 as Xe_LPG drm/xe/xelpg: Extend some workarounds to graphics version 12.74 drm/xe/arl: Add Arrow Lake H support
drivers/gpu/drm/xe/tests/xe_wa_test.c | 1 + drivers/gpu/drm/xe/xe_pci.c | 1 + drivers/gpu/drm/xe/xe_tuning.c | 4 ++-- drivers/gpu/drm/xe/xe_wa.c | 8 ++++---- include/drm/xe_pciids.h | 3 +++ 5 files changed, 11 insertions(+), 6 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/3 drm/xe/xelpg: Recognize graphics version 12.74 as Xe_LPG
From: Matt Roper <[email protected]>
Graphics version 12.74 (which is technically called "Xe_LPG+") should be handled the same as versions Xe_LPG 12.70/12.71 by the KMD. Only the workaround lists (handled in the next patch) will be a bit different.
Bspec: 55420
--- drivers/gpu/drm/xe/xe_pci.c | 1 + drivers/gpu/drm/xe/xe_tuning.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/xe/xe_pci.c +1 -0
@@ -343,6 +343,7 @@ __diag_pop();static const struct gmdid_map graphics_ip_map[] = { {1270 , &graphics_xelpg }, {1271 , &graphics_xelpg }, + {1274 , &graphics_xelpg },/* Xe_LPG+ */ {2004 , &graphics_xe2 }, };
drivers/gpu/drm/xe/xe_tuning.c +2 -2
@@ -50,7 +50,7 @@ static const struct xe_rtp_entry_sr gt_tunings[] = {static const struct xe_rtp_entry_sr engine_tunings[] = { {XE_RTP_NAME ("Tuning: Set Indirect State Override" ), -XE_RTP_RULES (GRAPHICS_VERSION_RANGE (1200 ,1271 ), +XE_RTP_RULES (GRAPHICS_VERSION_RANGE (1200 ,1274 ),ENGINE_CLASS (RENDER )),XE_RTP_ACTIONS (SET (SAMPLER_MODE ,INDIRECT_STATE_BASE_ADDR_OVERRIDE )) },
@@ -88,7 +88,7 @@ static const struct xe_rtp_entry_sr lrc_tunings[] = {/* Xe_LPG */ {XE_RTP_NAME ("Tuning: L3 cache" ), -XE_RTP_RULES (GRAPHICS_VERSION_RANGE (1270 ,1271 ),ENGINE_CLASS (RENDER )), +XE_RTP_RULES (GRAPHICS_VERSION_RANGE (1270 ,1274 ),ENGINE_CLASS (RENDER )),XE_RTP_ACTIONS (FIELD_SET (XEHP_L3SQCREG5 ,L3_PWM_TIMER_INIT_VAL_MASK ,REG_FIELD_PREP (L3_PWM_TIMER_INIT_VAL_MASK ,0x7f ))) },
Signature · 1 line
2.34.1
PATCH 2/3 drm/xe/xelpg: Extend some workarounds to graphics version 12.74
In reply to Dnyaneshwar BhadaneFrom: Matt Roper <[email protected]>
A handful of Xe_LPG workarounds are also relevant to graphics version 12.74 as well. Extend the graphics version range for these workarounds accordingly.
--- drivers/gpu/drm/xe/tests/xe_wa_test.c | 1 + drivers/gpu/drm/xe/xe_wa.c | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-)
drivers/gpu/drm/xe/tests/xe_wa_test.c +1 -0
@@ -71,6 +71,7 @@ static const struct platform_test_case cases[] = {SUBPLATFORM_CASE (DG2 ,G12 ,A1 ),GMDID_CASE (METEORLAKE ,1270 ,A0 ,1300 ,A0 ),GMDID_CASE (METEORLAKE ,1271 ,A0 ,1300 ,A0 ), +GMDID_CASE (METEORLAKE ,1274 ,A0 ,1300 ,A0 ),GMDID_CASE (LUNARLAKE ,2004 ,A0 ,2000 ,A0 ), GMDID_CASE(LUNARLAKE, 2004, B0, 2000, A0), };
drivers/gpu/drm/xe/xe_wa.c +4 -4
@@ -173,11 +173,11 @@ static const struct xe_rtp_entry_sr gt_was[] = {XE_RTP_ACTIONS (CLR (MISCCPCTL ,DOP_CLOCK_GATE_RENDER_ENABLE )) }, { XE_RTP_NAME("14018575942"), -XE_RTP_RULES (GRAPHICS_VERSION_RANGE (1270 ,1271 )), +XE_RTP_RULES (GRAPHICS_VERSION_RANGE (1270 ,1274 )),XE_RTP_ACTIONS (SET (COMP_MOD_CTRL ,FORCE_MISS_FTLB )) }, { XE_RTP_NAME("22016670082"), -XE_RTP_RULES (GRAPHICS_VERSION_RANGE (1270 ,1271 )), +XE_RTP_RULES (GRAPHICS_VERSION_RANGE (1270 ,1274 )),XE_RTP_ACTIONS (SET (SQCNT1 ,ENFORCE_RAR )) },
@@ -397,7 +397,7 @@ static const struct xe_rtp_entry_sr engine_was[] = {/* Xe_LPG */ {XE_RTP_NAME ("14017856879" ), -XE_RTP_RULES (GRAPHICS_VERSION_RANGE (1270 ,1271 ), +XE_RTP_RULES (GRAPHICS_VERSION_RANGE (1270 ,1274 ),FUNC (xe_rtp_match_first_render_or_compute)),XE_RTP_ACTIONS (SET (ROW_CHICKEN3 ,DIS_FIX_EOT1_FLUSH )) },
@@ -537,7 +537,7 @@ static const struct xe_rtp_entry_sr lrc_was[] = {/* Xe_LPG */ {XE_RTP_NAME ("18019271663" ), -XE_RTP_RULES (GRAPHICS_VERSION_RANGE (1270 ,1271 )), +XE_RTP_RULES (GRAPHICS_VERSION_RANGE (1270 ,1274 )),XE_RTP_ACTIONS (SET (CACHE_MODE_1 ,MSAA_OPTIMIZATION_REDUC_DISABLE )) }, { XE_RTP_NAME("14019877138"),
Signature · 1 line
2.34.1
PATCH 3/3 drm/xe/arl: Add Arrow Lake H support
In reply to Dnyaneshwar BhadaneFrom: Matt Roper <[email protected]>
ARL-H uses the same media and display IP as MTL, and a version 12.74 graphics IP (referred to as Xe_LPG+). From a driver point of view, we should be able to just treat the whole platform as MTL and rely on GRAPHICS_VERx100 checks to handle any spots where ARL's Xe_LPG+ needs different handling from MTL's Xe_LPG (i.e., workarounds).
Bspec: 55420
--- include/drm/xe_pciids.h | 3 +++ 1 file changed, 3 insertions(+)
include/drm/xe_pciids.h +3 -0
@@ -179,7 +179,10 @@ MACRO__(0x7D45, ## __VA_ARGS__), \ MACRO__(0x7D55, ## __VA_ARGS__), \ MACRO__(0x7D60, ## __VA_ARGS__), \ + MACRO__(0x7D41, ## __VA_ARGS__), \ + MACRO__(0x7D51, ## __VA_ARGS__), \ MACRO__(0x7D67, ## __VA_ARGS__), \ + MACRO__(0x7DD1, ## __VA_ARGS__), \ MACRO__(0x7DD5, ## __VA_ARGS__)#define XE_LNL_IDS (MACRO__ , ...) \
Signature · 1 line
2.34.1
Patchwork
CI✗ CI.Patch_applied: failure for drm/xe/arl: Add Arrow Lake H support
In reply to Dnyaneshwar Bhadane== Series Details ==
== Series Details ==
Series: drm/xe/arl: Add Arrow Lake H support
URL : https://patchwork.freedesktop.org/series/130484/
State : failure
== Summary ==
=== Applying kernel patches on branch 'drm-tip' with base: ===
Base commit: 0fbbc7c5d35d drm-tip: 2024y-02m-28d-07h-09m-25s UTC integration manifest === git am output follows ===
error: patch failed: include/drm/xe_pciids.h:179
error: include/drm/xe_pciids.h: patch does not apply
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Applying: drm/xe/xelpg: Recognize graphics version 12.74 as Xe_LPG
Applying: drm/xe/xelpg: Extend some workarounds to graphics version 12.74
Applying: drm/xe/arl: Add Arrow Lake H support
Patch failed at 0003 drm/xe/arl: Add Arrow Lake H support
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".