Skip to content

Commit 531bef2

Browse files
author
Maarten Lankhorst
committed
drm/xe/svm: Fix regression disallowing 64K SVM migration
When changing the condition from >= SZ_64K, it was changed to <= SZ_64K. This disallows migration of 64K, which is the exact minimum allowed. Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/5057 Fixes: a9ac0fa ("drm/xe: Strict migration policy for atomic SVM faults") Cc: stable@vger.kernel.org Cc: Matthew Brost <matthew.brost@intel.com> Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com> Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com> Signed-off-by: Maarten Lankhorst <dev@lankhorst.se> Link: https://lore.kernel.org/r/20250521090102.2965100-1-dev@lankhorst.se
1 parent c12c729 commit 531bef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xe/xe_svm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ bool xe_svm_range_needs_migrate_to_vram(struct xe_svm_range *range, struct xe_vm
820820
return false;
821821
}
822822

823-
if (preferred_region_is_vram && range_size <= SZ_64K && !supports_4K_migration(vm->xe)) {
823+
if (preferred_region_is_vram && range_size < SZ_64K && !supports_4K_migration(vm->xe)) {
824824
drm_dbg(&vm->xe->drm, "Platform doesn't support SZ_4K range migration\n");
825825
return false;
826826
}

0 commit comments

Comments
 (0)