Skip to content

HMM updates, improvements and fixes

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7mm/hmm: fix utf8 ...include/linux/hmm.h mm/hmm.c+2 -20 replies
2/7mm/rmap: map_pte() was not handling private ZONE_DEVICE page properlymm/page_vma_mapped.c+9 -02 replies
3/7mm/hmm: fix race between hmm_mirror_unregister() and mmu_notifier callbackmm/hmm.c+21 -151 reply
3/7mm/rmap: map_pte() was not handling private ZONE_DEVICE page properly v2mm/page_vma_mapped.c+8 -13 replies
4/7mm/hmm: properly handle migration pmdmm/hmm.c+39 -69 replies
4/7mm/hmm: properly handle migration pmd v2mm/hmm.c+36 -60 replies
5/7mm/hmm: use a structure for update callback parametersinclude/linux/hmm.h mm/hmm.c+31 -212 replies
6/7mm/hmm: invalidate device page table at start of invalidationinclude/linux/hmm.h mm/hmm.c+15 -80 replies
7/7mm/hmm: proper support for blockable mmu_notifierinclude/linux/hmm.h mm/hmm.c+37 -140 replies

Reviews trailers per patch

2 of 9 patches have a Reviewed-by or Acked-by.

PatchJohn HubbardJérôme GlisseBalbir Singh
1/7
2/7
3/7R-b R-b R-b A-b R-b
3/7R-b R-b R-b A-b R-b
4/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/7] HMM updates, improvements and fixes

From: JA(C)rA'me Glisse <[email protected]>

Few fixes that only affect HMM users. Improve the synchronization call back so that we match was other mmu_notifier listener do and add proper support to the new blockable flags in the process.

For curious folks here are branches to leverage HMM in various existing device drivers:

https://cgit.freedesktop.org/~glisse/linux/log/?h=hmm-nouveau-v01
https://cgit.freedesktop.org/~glisse/linux/log/?h=hmm-radeon-v00
https://cgit.freedesktop.org/~glisse/linux/log/?h=hmm-intel-v00

More to come (amd gpu, Mellanox, ...)

I expect more of the preparatory work for nouveau will be merge in 4.20 (like we have been doing since 4.16) and i will wait until this patchset is upstream before pushing the patches that actualy make use of HMM (to avoid complex tree inter-dependency).

JA(C)rA'me Glisse (5):
mm/hmm: fix utf8 ...
mm/hmm: properly handle migration pmd
mm/hmm: use a structure for update callback parameters mm/hmm: invalidate device page table at start of invalidation mm/hmm: proper support for blockable mmu_notifier

Ralph Campbell (2):
mm/rmap: map_pte() was not handling private ZONE_DEVICE page properly mm/hmm: fix race between hmm_mirror_unregister() and mmu_notifier
callback

 include/linux/hmm.h  |  37 +++++++----
 mm/hmm.c             | 150 ++++++++++++++++++++++++++++++-------------
 mm/page_vma_mapped.c |   9 +++
 3 files changed, 142 insertions(+), 54 deletions(-)
Signature · 1 line
2.17.1