]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/xe: Update PT layer with better error handling
authorMatthew Brost <matthew.brost@intel.com>
Thu, 4 Jul 2024 04:16:51 +0000 (21:16 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 4 Jul 2024 05:28:06 +0000 (22:28 -0700)
commita708f6501c692551e3d4ea618c44021f436730d9
treed1eb385b356602990c3a8c93e16e43894c159ff0
parent282e6f846d8c3fcf36293f68f38d814645c3b852
drm/xe: Update PT layer with better error handling

Update PT layer so if a memory allocation for a PTE fails the error can
be propagated to the user without requiring the VM to be killed.

v5:
 - change return value invalidation_fence_init to void (Matthew Auld)
v7:
 - Invert i,j usage in two places (Matthew Auld)
 - s/0/NULL (Matthew Auld)
 - Don't ignore return value of xe_pt_new_shared (Matthew Auld)
 - Don't check for NULL in xe_pt_entry (Matthew Auld)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240704041652.272920-7-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_pt.c