Skip to content

Commit d6fb4f0

Browse files
Maarten LankhorstThomas Hellström
authored andcommitted
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: 794f549 ("drm/xe: Strict migration policy for atomic SVM faults") Cc: [email protected] Cc: Matthew Brost <[email protected]> Cc: Himal Prasad Ghimiray <[email protected]> Reviewed-by: Himal Prasad Ghimiray <[email protected]> Signed-off-by: Maarten Lankhorst <[email protected]> Link: https://lore.kernel.org/r/[email protected] (cherry picked from commit 531bef2) Signed-off-by: Thomas Hellström <[email protected]>
1 parent 19272b3 commit d6fb4f0

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
@@ -764,7 +764,7 @@ static bool xe_svm_range_needs_migrate_to_vram(struct xe_svm_range *range,
764764
return false;
765765
}
766766

767-
if (range_size <= SZ_64K && !supports_4K_migration(vm->xe)) {
767+
if (range_size < SZ_64K && !supports_4K_migration(vm->xe)) {
768768
drm_dbg(&vm->xe->drm, "Platform doesn't support SZ_4K range migration\n");
769769
return false;
770770
}

0 commit comments

Comments
 (0)