drm/xe/svm: Avoid duplicate eviction on get_pages() failure
authorHimal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Mon, 26 May 2025 16:39:07 +0000 (22:09 +0530)
committerHimal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Wed, 28 May 2025 10:14:34 +0000 (15:44 +0530)
commit22eba3be8e1dc27de4aec3374bc9018dc8713670
treeb5ea5452065c1716c7dfcbacb39e2001732246c0
parent39578fa40420fb11dbe4f42225a347e945d8fd0e
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: e0ff0d7cf928 ("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>
drivers/gpu/drm/xe/xe_svm.c