Skip to content

udmabuf: Add support for page migration out of movable zone or CMA

Vivek Kasireddy dri-devel linux-mm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm/gup: Export check_and_migrate_movable_pages()include/linux/mm.h mm/gup.c+7 -41 reply
2/3udmabuf: Add support for page migration out of movable zone or CMAdrivers/dma-buf/udmabuf.c+100 -60 replies
3/3selftests/dma-buf/udmabuf: Add tests to verify data after page migrationtools/testing/selftests/drivers/dma-buf/udmabuf.c+147 -40 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchMike Kravetz
1/3
2/3
3/3Based-on-patch-by

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

Read the v1 thread

Cover letter [PATCH v1 0/3] udmabuf: Add support for page migration out of movable zone or CMA

This patch series adds support for migrating pages associated with a udmabuf out of the movable zone or CMA to avoid breaking features such as memory hotunplug.

The first patch exports check_and_migrate_movable_pages() function out of GUP so that the udmabuf driver can leverage it for page migration that is done as part of the second patch. The last patch adds two new udmabuf selftests to verify data coherency after page migration.

Cc David Hildenbrand <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Mike Kravetz <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Peter Xu <[email protected]>
Cc Jason Gunthorpe <[email protected]>
Cc Gerd Hoffmann <[email protected]>
Cc Dongwon Kim <[email protected]>
Cc Junxiao Chang <[email protected]>

Vivek Kasireddy (3):
mm/gup: Export check_and_migrate_movable_pages()
udmabuf: Add support for page migration out of movable zone or CMA selftests/dma-buf/udmabuf: Add tests to verify data after page
migration

 drivers/dma-buf/udmabuf.c                     | 106 +++++++++++-
 include/linux/mm.h                            |   2 +
 mm/gup.c                                      |   9 +-
 .../selftests/drivers/dma-buf/udmabuf.c       | 151 +++++++++++++++++-
 4 files changed, 254 insertions(+), 14 deletions(-)
Signature · 1 line
2.39.2