All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/xe3: Apply Wa_16029380221 to media
@ 2026-05-29  9:53 Nitin Gote
  2026-05-29  9:24 ` ✓ CI.KUnit: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Nitin Gote @ 2026-05-29  9:53 UTC (permalink / raw)
  To: intel-xe; +Cc: nitin.r.gote, Matt Roper

Apply Wa_16029380221 to Xe3p_LPM.

The Xe3p_LPM media page walker is hard-wired NonCoherent and cannot
observe CPU:WB cached page table data. Force page tables to CPU:WC
by clearing has_cached_pt when MEDIA_VERSION(3500) is detected.

Cc: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Nitin Gote <nitin.r.gote@intel.com>
---
 drivers/gpu/drm/xe/xe_device.c     | 9 +++++++++
 drivers/gpu/drm/xe/xe_wa_oob.rules | 1 +
 2 files changed, 10 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index d224861b6f6f..8a6f494e11d5 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -948,6 +948,15 @@ int xe_device_probe(struct xe_device *xe)
 			return err;
 	}
 
+	/*
+	 * Wa_16029380221: Xe3p_LPM media page walker is hard-wired
+	 * NonCoherent, so page tables must use CPU:WC (uncached) to
+	 * be visible to the media engine regardless of stepping.
+	 */
+	for_each_gt(gt, xe, id)
+		if (XE_GT_WA(gt, 16029380221))
+			xe->info.has_cached_pt = false;
+
 	for_each_tile(tile, xe, id) {
 		err = xe_ggtt_init_early(tile->mem.ggtt);
 		if (err)
diff --git a/drivers/gpu/drm/xe/xe_wa_oob.rules b/drivers/gpu/drm/xe/xe_wa_oob.rules
index f8a185103b80..9027365f0043 100644
--- a/drivers/gpu/drm/xe/xe_wa_oob.rules
+++ b/drivers/gpu/drm/xe/xe_wa_oob.rules
@@ -65,3 +65,4 @@
 
 14025883347	MEDIA_VERSION_RANGE(1301, 3503)
 		GRAPHICS_VERSION_RANGE(2004, 3005)
+16029380221	MEDIA_VERSION(3500)
-- 
2.50.1


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

end of thread, other threads:[~2026-06-04 14:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-29  9:53 [PATCH] drm/xe/xe3: Apply Wa_16029380221 to media Nitin Gote
2026-05-29  9:24 ` ✓ CI.KUnit: success for " Patchwork
2026-05-29 10:05 ` ✓ Xe.CI.BAT: " Patchwork
2026-05-29 12:45 ` [PATCH] " Gustavo Sousa
2026-06-04 14:22   ` Gote, Nitin R
2026-05-29 13:09 ` ✗ Xe.CI.FULL: failure for " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.