]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Add xe_guc_pagefault layer
authorMatthew Brost <matthew.brost@intel.com>
Fri, 31 Oct 2025 16:54:15 +0000 (09:54 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Tue, 4 Nov 2025 17:04:29 +0000 (09:04 -0800)
commitf289f7807119128d4f9d59f34ac557549c7562e5
treec791162a80dbda921c8809ae6546d8d5d3d18d82
parentfb544b8445080c6488a58c01022550adc0873283
drm/xe: Add xe_guc_pagefault layer

Add xe_guc_pagefault layer (producer) which parses G2H fault messages
messages into struct xe_pagefault, forwards them to the page fault layer
(consumer) for servicing, and provides a vfunc to acknowledge faults to
the GuC upon completion. Replace the old (and incorrect) GT page fault
layer with this new layer throughout the driver.

As part of this change, the ACC handling code has been removed, as it is
dead code that is currently unused.

v2:
 - Include engine instance (Stuart)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Tested-by: Francois Dugast <francois.dugast@intel.com>
Link: https://patch.msgid.link/20251031165416.2871503-7-matthew.brost@intel.com
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/xe_gt.c
drivers/gpu/drm/xe/xe_guc_ct.c
drivers/gpu/drm/xe/xe_guc_pagefault.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_pagefault.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_svm.c
drivers/gpu/drm/xe/xe_vm.c