]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Add prefetch fault support for Xe3p
authorVarun Gupta <varun.gupta@intel.com>
Mon, 23 Feb 2026 06:19:06 +0000 (11:49 +0530)
committerMatthew Brost <matthew.brost@intel.com>
Mon, 23 Feb 2026 20:31:32 +0000 (12:31 -0800)
commitf5ab554a6a4a1303dc6b7485ecc84d6523ca54c7
tree371e83c68a9f21fdfe2d6154304724d748838842
parentc129f8ebca1750bde614a101c3cd03945d27646a
drm/xe: Add prefetch fault support for Xe3p

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.

Extract the prefetch bit from the fault descriptor and echo it in the
response (bit 6) only when the page fault handling fails. This allows
the HW to suppress CAT errors for unsuccessful prefetch faults.

For prefetch faults that fail, increment stats counter without verbose
logging to avoid spamming the log. The prefetch flag is packed into
BIT(7) of the access_type field to avoid growing the consumer struct.

Based on original patches by Brian Welty <brian.welty@intel.com> and
Priyanka Dandamudi <priyanka.dandamudi@intel.com>.

Bspec: 59311
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Priyanka Dandamudi <priyanka.dandamudi@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Varun Gupta <varun.gupta@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260223061906.1420883-3-varun.gupta@intel.com
drivers/gpu/drm/xe/xe_guc_fwif.h
drivers/gpu/drm/xe/xe_guc_pagefault.c
drivers/gpu/drm/xe/xe_pagefault.c
drivers/gpu/drm/xe/xe_pagefault_types.h