[PATCH] drm/xe/pat: Use XE_WA in xe_pat_init_early

Ashutosh Dixit ashutosh.dixit at intel.com
Mon Jul 7 22:21:11 UTC 2025


Add the missing XE_WA in xe_pat_init_early.

Fixes: 01570b446939 ("drm/xe/bmg: implement Wa_16023588340")
Signed-off-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
---
 drivers/gpu/drm/xe/xe_pat.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_pat.c b/drivers/gpu/drm/xe/xe_pat.c
index 2e7cb99ae87aa..d36da052f8a43 100644
--- a/drivers/gpu/drm/xe/xe_pat.c
+++ b/drivers/gpu/drm/xe/xe_pat.c
@@ -384,8 +384,7 @@ void xe_pat_init_early(struct xe_device *xe)
 		if (IS_DGFX(xe))
 			xe->pat.pat_pta = &xe2_pat_pta;
 
-		/* Wa_16023588340. XXX: Should use XE_WA */
-		if (GRAPHICS_VERx100(xe) == 2001)
+		if (XE_WA(xe_root_mmio_gt(xe), 16023588340))
 			xe->pat.n_entries = 28; /* Disable CLOS3 */
 		else
 			xe->pat.n_entries = ARRAY_SIZE(xe2_pat_table);
-- 
2.48.1



More information about the Intel-xe mailing list