Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/pat: Use XE_WA in xe_pat_init_early
@ 2025-07-07 22:21 Ashutosh Dixit
  2025-07-07 23:01 ` ✓ CI.KUnit: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Ashutosh Dixit @ 2025-07-07 22:21 UTC (permalink / raw)
  To: intel-xe; +Cc: Matthew Auld

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@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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-07-08 14:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-07 22:21 [PATCH] drm/xe/pat: Use XE_WA in xe_pat_init_early Ashutosh Dixit
2025-07-07 23:01 ` ✓ CI.KUnit: success for " Patchwork
2025-07-07 23:51 ` ✗ Xe.CI.BAT: failure " Patchwork
2025-07-08  2:48 ` ✗ Xe.CI.Full: " Patchwork
2025-07-08  3:48 ` [PATCH] " Lucas De Marchi
2025-07-08 14:26   ` Dixit, Ashutosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox