]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Handle mixed mappings and existing VRAM on atomic faults
authorMatthew Brost <matthew.brost@intel.com>
Thu, 9 Oct 2025 13:06:29 +0000 (06:06 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Fri, 10 Oct 2025 15:18:11 +0000 (08:18 -0700)
commit75188605c56d10c1bd3b1cd94f4872f349c3a9c8
tree25b96da07196ee0436a8ccf56a1514ef25f20372
parent381f1ed15159c4b3f00dd37cc70924dedebeb111
drm/xe: Handle mixed mappings and existing VRAM on atomic faults

Moving to VRAM will fail if mixed mappings are present or if the page is
already located in VRAM. Atomic faults that require a move to VRAM
currently retry without attempting to evict mixed mappings or locate
existing VRAM mappings.

This patch fixes the issue by attempting to evict mixed mappings or find
existing VRAM pages when a move to VRAM fails during atomic fault
handling.

Fixes: a9ac0fa455b0 ("drm/xe: Strict migration policy for atomic SVM faults")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://lore.kernel.org/r/20251009130629.3531962-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_svm.c