Commit 795dc0e
committed
mm/migrate: Add migrate_device_pfns
JIRA: https://issues.redhat.com/browse/RHEL-113204
commit a14fa8e
Author: Matthew Brost <matthew.brost@intel.com>
Date: Wed Mar 5 17:26:27 2025 -0800
mm/migrate: Add migrate_device_pfns
Add migrate_device_pfns which prepares an array of pre-populated device
pages for migration. This is needed for eviction of known set of
non-contiguous devices pages to cpu pages which is a common case for SVM
in DRM drivers using TTM.
v2:
- s/migrate_device_vma_range/migrate_device_prepopulated_range
- Drop extra mmu invalidation (Vetter)
v3:
- s/migrate_device_prepopulated_range/migrate_device_pfns (Alistar)
- Use helper to lock device pages (Alistar)
- Update commit message with why this is required (Alistar)
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Alistair Popple <apopple@nvidia.com>
Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250306012657.3505757-3-matthew.brost@intel.com
Signed-off-by: José Expósito <jexposit@redhat.com>1 parent 6530343 commit 795dc0e
2 files changed
+38
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
870 | 870 | | |
871 | 871 | | |
872 | 872 | | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
873 | 889 | | |
874 | 890 | | |
875 | 891 | | |
| |||
894 | 910 | | |
895 | 911 | | |
896 | 912 | | |
897 | | - | |
898 | | - | |
| 913 | + | |
| 914 | + | |
899 | 915 | | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | | - | |
904 | | - | |
| 916 | + | |
905 | 917 | | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | | - | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
911 | 921 | | |
912 | | - | |
913 | | - | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
914 | 936 | | |
915 | 937 | | |
916 | 938 | | |
917 | 939 | | |
918 | 940 | | |
919 | | - | |
| 941 | + | |
920 | 942 | | |
921 | 943 | | |
922 | 944 | | |
| |||
0 commit comments