Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] drm/xe: Add prefetch pagefault support for Xe3p
@ 2026-01-27 11:57 Varun Gupta
  2026-01-27 11:57 ` [PATCH v2 1/2] drm/xe: Rename xe_pagefault_print to xe_pagefault_error_account Varun Gupta
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Varun Gupta @ 2026-01-27 11:57 UTC (permalink / raw)
  To: intel-xe
  Cc: matthew.brost, matthew.d.roper, priyanka.dandamudi,
	himal.prasad.ghimiray

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 renames xe_pagefault_print to xe_pagefault_error_account and
adds an err parameter to prepare for prefetch error handling.

Patch 2 implements the prefetch support by extracting the prefetch bit
from the fault descriptor and echoing it in the response (bit 6) only
when handling fails. This prevents CAT errors for prefetch faults.
Stats are incremented for prefetch errors without verbose logging to
avoid log spam.

Based on original patches by Brian Welty and Priyanka Dandamudi.

v2: Clarified first commit message to describe only the changes made
    in that commit.
    Changed comment wording from "repairs" to "handling" for clarity.
    (Matt Roper)

Varun Gupta (2):
  drm/xe: Rename xe_pagefault_print to xe_pagefault_error_account
  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] 9+ messages in thread

end of thread, other threads:[~2026-01-28 10:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-27 11:57 [PATCH v2 0/2] drm/xe: Add prefetch pagefault support for Xe3p Varun Gupta
2026-01-27 11:57 ` [PATCH v2 1/2] drm/xe: Rename xe_pagefault_print to xe_pagefault_error_account Varun Gupta
2026-01-27 20:32   ` Matthew Brost
2026-01-27 11:57 ` [PATCH v2 2/2] drm/xe: Add prefetch fault support for Xe3p Varun Gupta
2026-01-27 20:31   ` Matthew Brost
2026-01-27 20:47     ` Matthew Brost
2026-01-28  9:53 ` ✗ CI.checkpatch: warning for drm/xe: Add prefetch pagefault support for Xe3p (rev2) Patchwork
2026-01-28  9:55 ` ✓ CI.KUnit: success " Patchwork
2026-01-28 10:43 ` ✓ Xe.CI.BAT: " Patchwork

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