[PATCH 1/1] drm/xe/svm: For atomic operations, continue with page fault handling

Himal Prasad Ghimiray himal.prasad.ghimiray at intel.com
Tue May 27 16:33:40 UTC 2025


Ranges might already be valid but lack AE flags in the PTE. Therefore,
continue with rebind of ranges for atomic operations.

Cc: Matthew Brost <matthew.brost at intel.com>
Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray at intel.com>
---
 drivers/gpu/drm/xe/xe_svm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_svm.c b/drivers/gpu/drm/xe/xe_svm.c
index 4432685936ed..d42d5df28115 100644
--- a/drivers/gpu/drm/xe/xe_svm.c
+++ b/drivers/gpu/drm/xe/xe_svm.c
@@ -884,7 +884,7 @@ int xe_svm_handle_pagefault(struct xe_vm *vm, struct xe_vma *vma,
 	if (ctx.devmem_only && !range->base.flags.migrate_devmem)
 		return -EACCES;
 
-	if (xe_svm_range_is_valid(range, tile, ctx.devmem_only))
+	if (xe_svm_range_is_valid(range, tile, ctx.devmem_only) && !atomic)
 		return 0;
 
 	range_debug(range, "PAGE FAULT");
-- 
2.34.1



More information about the Intel-xe mailing list