Skip to content

mm/hmm/nouveau: add THP migration to migrate_vma_*

Ralph Campbell linux-fsdevel linux-kselftest linux-mm linux-nvdimm lkml nouveau nvdimm 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/26 patches 18 repliesIn review
  2. v3 posting 1/21 patch 1 replyApplied 1/1
  3. v27 patches 4 repliesSuperseded

Changes in v3 from the cover letter

Sent the patch ("mm/thp: fix __split_huge_pmd_locked() for migration PMD") as a separate patch from this series.

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6mm/thp: add prep_transhuge_device_private_page()include/linux/huge_mm.h mm/huge_memory.c+14 -04 replies
2/6mm/migrate: move migrate_vma_collect_skip()mm/migrate.c+15 -152 replies
3/6mm: support THP migration to device private memoryinclude/linux/huge_mm.h include/linux/memremap.h include/linux/migrate.h +6 more+486 -11010 replies
4/6mm/thp: add THP allocation helperinclude/linux/gfp.h mm/huge_memory.c+24 -02 replies
5/6mm/hmm/test: add self tests for THP migrationlib/test_hmm.c lib/test_hmm_uapi.h tools/testing/selftests/vm/hmm-tests.c+775 -690 replies
6/6nouveau: support THP migration to private memorydrivers/gpu/drm/nouveau/nouveau_dmem.c drivers/gpu/drm/nouveau/nouveau_svm.c drivers/gpu/drm/nouveau/nouveau_svm.h+215 -880 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/6
2/6R-b R-b
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/6] mm/hmm/nouveau: add THP migration to migrate_vma_*

This series adds support for transparent huge page migration to migrate_vma_*() and adds nouveau SVM and HMM selftests as consumers. Earlier versions were posted previously [1] and [2].

The patches apply cleanly to the linux-mm 5.10.0-rc2 tree. There are a lot of other THP patches being posted. I don't think there are any semantic conflicts but there may be some merge conflicts depending on the order Andrew applies these.

Changes in v3:
Sent the patch ("mm/thp: fix __split_huge_pmd_locked() for migration PMD") as a separate patch from this series.

Rebased to linux-mm 5.10.0-rc2.

Changes in v2:
Added splitting a THP midway in the migration process:
i.e., in migrate_vma_pages().

[1] https://lore.kernel.org/linux-mm/[email protected]
[2] https://lore.kernel.org/linux-mm/[email protected]

Ralph Campbell (6):
mm/thp: add prep_transhuge_device_private_page() mm/migrate: move migrate_vma_collect_skip()
mm: support THP migration to device private memory mm/thp: add THP allocation helper mm/hmm/test: add self tests for THP migration
nouveau: support THP migration to private memory

 drivers/gpu/drm/nouveau/nouveau_dmem.c | 289 +++++++++++-----
 drivers/gpu/drm/nouveau/nouveau_svm.c  |  11 +-
 drivers/gpu/drm/nouveau/nouveau_svm.h  |   3 +-
 include/linux/gfp.h                    |  10 +
 include/linux/huge_mm.h                |  12 +
 include/linux/memremap.h               |   9 +
 include/linux/migrate.h                |   2 +
 lib/test_hmm.c                         | 437 +++++++++++++++++++++----
 lib/test_hmm_uapi.h                    |   3 +
 mm/huge_memory.c                       | 147 +++++++--
 mm/memcontrol.c                        |  25 +-
 mm/memory.c                            |  10 +-
 mm/memremap.c                          |   4 +-
 mm/migrate.c                           | 429 +++++++++++++++++++-----
 mm/rmap.c                              |   2 +-
 tools/testing/selftests/vm/hmm-tests.c | 404 +++++++++++++++++++++++
 16 files changed, 1522 insertions(+), 275 deletions(-)
Signature · 1 line
2.20.1