Skip to content

Commit 22eba3b

Browse files
committed
drm/xe/svm: Avoid duplicate eviction on get_pages() failure
xe_svm_range_get_pages() already calls drm_gpusvm_range_evict() internally when it fails with -EOPNOTSUPP. Remove the eviction call in the caller to prevent duplicate handling. Fixes: e0ff0d7 ("drm/xe/svm: Refactor usage of drm_gpusvm* function in xe_svm") Cc: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Link: https://lore.kernel.org/r/20250526163907.1011529-1-himal.prasad.ghimiray@intel.com Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
1 parent 39578fa commit 22eba3b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/gpu/drm/xe/xe_svm.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -914,11 +914,6 @@ int xe_svm_handle_pagefault(struct xe_vm *vm, struct xe_vma *vma,
914914
if (err == -EOPNOTSUPP || err == -EFAULT || err == -EPERM) {
915915
ctx.timeslice_ms <<= 1; /* Double timeslice if we have to retry */
916916
if (migrate_try_count > 0 || !ctx.devmem_only) {
917-
if (err == -EOPNOTSUPP) {
918-
range_debug(range, "PAGE FAULT - EVICT PAGES");
919-
drm_gpusvm_range_evict(&vm->svm.gpusvm,
920-
&range->base);
921-
}
922917
drm_dbg(&vm->xe->drm,
923918
"Get pages failed, falling back to retrying, asid=%u, gpusvm=%p, errno=%pe\n",
924919
vm->usm.asid, &vm->svm.gpusvm, ERR_PTR(err));

0 commit comments

Comments
 (0)