Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] drm/xe: Add prefetch pagefault support for Xe3p
@ 2026-01-12  6:17 Varun Gupta
  2026-01-12  6:17 ` [PATCH 1/2] drm/xe: Coalesce pagefault error handling Varun Gupta
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Varun Gupta @ 2026-01-12  6:17 UTC (permalink / raw)
  To: intel-xe; +Cc: himal.prasad.ghimiray, matthew.brost, matthew.d.roper

Xe3p hardware prefetches memory ranges and notifies software via an
additional bit (bit 11) in the page fault descriptor that the fault
was caused by prefetch.

Patch 1 refactors the error handling to print the fault only when handling
fails, consolidating the logging with the response status.

Patch 2 implements the prefetch support by extracting the prefetch bit from
the fault descriptor and echoing it in the response on unsuccessful handling.
This prevents CAT errors for prefetch faults. Stats are incremented for
prefetch errors without verbose logging to avoid spamming the log.

Based on original patches by Brian Welty and Priyanka Dandamudi, and
originally implemented by Lucas De Marchi.

v2: Changed comment wording from "repairs" to "handling" per Matt Roper's
feedback.

Tested with xe_prefetch_fault IGT test.

Varun Gupta (2):
  drm/xe: Coalesce pagefault error handling
  drm/xe: Add prefetch fault support for Xe3p

 drivers/gpu/drm/xe/xe_gt_stats.c        |  1 +
 drivers/gpu/drm/xe/xe_gt_stats_types.h  |  1 +
 drivers/gpu/drm/xe/xe_guc_fwif.h        |  5 +++--
 drivers/gpu/drm/xe/xe_guc_pagefault.c   |  2 ++
 drivers/gpu/drm/xe/xe_pagefault.c       | 16 ++++++++++++++--
 drivers/gpu/drm/xe/xe_pagefault_types.h |  8 +++++++-
 6 files changed, 28 insertions(+), 5 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-01-12 18:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-12  6:17 [PATCH 0/2] drm/xe: Add prefetch pagefault support for Xe3p Varun Gupta
2026-01-12  6:17 ` [PATCH 1/2] drm/xe: Coalesce pagefault error handling Varun Gupta
2026-01-12 18:17   ` Matt Roper
2026-01-12  6:17 ` [PATCH 2/2] drm/xe: Add prefetch fault support for Xe3p Varun Gupta
2026-01-12  6:24 ` ✗ CI.checkpatch: warning for drm/xe: Add prefetch pagefault " Patchwork
2026-01-12  6:25 ` ✓ CI.KUnit: success " Patchwork
2026-01-12  6:57 ` ✓ Xe.CI.BAT: " Patchwork
2026-01-12  8:04 ` ✗ Xe.CI.Full: failure " Patchwork

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