Skip to content

HMM updates for 5.1

[email protected] linux-fsdevel linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 87 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10mm/hmm: use reference counting for HMM structinclude/linux/hmm.h mm/hmm.c+120 -607 replies
2/10mm/hmm: do not erase snapshot when a range is invalidatedmm/hmm.c+0 -61 reply
3/10mm/hmm: improve and rename hmm_vma_get_pfns() to hmm_range_snapshot()include/linux/hmm.h mm/hmm.c+12 -152 replies
4/10mm/hmm: improve and rename hmm_vma_fault() to hmm_range_fault()include/linux/hmm.h mm/hmm.c+53 -530 replies
5/10mm/hmm: improve driver API to work and wait over a rangeinclude/linux/hmm.h mm/hmm.c+430 -3040 replies
6/10mm/hmm: add default fault flags to avoid the need to pre-fill pfns arrays.include/linux/hmm.h mm/hmm.c+19 -00 replies
7/10mm/hmm: add an helper function that fault pages and map them to a deviceinclude/linux/hmm.h mm/hmm.c+161 -09 replies
8/10mm/hmm: support hugetlbfs (snap shoting, faulting and DMA mapping)include/linux/hmm.h mm/hmm.c+147 -230 replies
9/10mm/hmm: allow to mirror vma of a file on a DAX backed filesystemmm/hmm.c+112 -2135 replies
10/10mm/hmm: add helpers for driver to safely take the mmap_seminclude/linux/hmm.h+47 -34 replies

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJohn HubbardRalph Campbell
SeriesR-b
1/10
2/10R-b
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

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 00/10] HMM updates for 5.1

From: Jérôme Glisse <[email protected]>

This patchset improves the HMM driver API and add support for hugetlbfs and DAX mirroring. The improvement motivation was to make the ODP to HMM conversion easier [1]. Because we have nouveau bits schedule for 5.1 and to avoid any multi-tree synchronization this patchset adds few lines of inline function that wrap the existing HMM driver API to the improved API. The nouveau driver was tested before and after this patchset and it builds and works on both case so there is no merging issue [2]. The nouveau bit are queue up for 5.1 so this is why i added those inline.

If this get merge in 5.1 the plans is to merge the HMM to ODP in 5.2 or 5.3 if testing shows any issues (so far no issues has been found with limited testing but Mellanox will be running heavier testing for longer time).

To avoid spamming mm i would like to not cc mm on ODP or nouveau patches, however if people prefer to see those on mm mailing list then i can keep it cced.

This is also what i intend to use as a base for AMD and Intel patches (v2 with more thing of some rfc which were already posted in the past).

[1] https://cgit.freedesktop.org/~glisse/linux/log/?h=odp-hmm
[2] https://cgit.freedesktop.org/~glisse/linux/log/?h=hmm-for-5.1

Cc Andrew Morton <[email protected]>
Cc Felix Kuehling <[email protected]>
Cc Christian König <[email protected]>
Cc Ralph Campbell <[email protected]>
Cc John Hubbard <[email protected]>
Cc Jason Gunthorpe <[email protected]>
Cc Dan Williams <[email protected]>

Jérôme Glisse (10):
mm/hmm: use reference counting for HMM struct
mm/hmm: do not erase snapshot when a range is invalidated mm/hmm: improve and rename hmm_vma_get_pfns() to hmm_range_snapshot() mm/hmm: improve and rename hmm_vma_fault() to hmm_range_fault() mm/hmm: improve driver API to work and wait over a range mm/hmm: add default fault flags to avoid the need to pre-fill pfns
arrays.
mm/hmm: add an helper function that fault pages and map them to a
device
mm/hmm: support hugetlbfs (snap shoting, faulting and DMA mapping) mm/hmm: allow to mirror vma of a file on a DAX backed filesystem mm/hmm: add helpers for driver to safely take the mmap_sem

 include/linux/hmm.h |  290 ++++++++++--
 mm/hmm.c            | 1060 +++++++++++++++++++++++++++++--------------
 2 files changed, 983 insertions(+), 367 deletions(-)
Signature · 1 line
2.17.2