]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.14/mm-hmm-select-mmu-notifier-when-selecting-hmm.patch
Merge branch 'master' of gitolite.kernel.org:/pub/scm/linux/kernel/git/stable/stable...
[thirdparty/kernel/stable-queue.git] / queue-4.14 / mm-hmm-select-mmu-notifier-when-selecting-hmm.patch
1 From c0d9e0bfe88c10f2d08d670d05e0919320df5133 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= <jglisse@redhat.com>
3 Date: Mon, 13 May 2019 17:19:45 -0700
4 Subject: mm/hmm: select mmu notifier when selecting HMM
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 [ Upstream commit 734fb89968900b5c5f8edd5038bd4cdeab8c61d2 ]
10
11 To avoid random config build issue, select mmu notifier when HMM is
12 selected. In any cases when HMM get selected it will be by users that
13 will also wants the mmu notifier.
14
15 Link: http://lkml.kernel.org/r/20190403193318.16478-2-jglisse@redhat.com
16 Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
17 Acked-by: Balbir Singh <bsingharora@gmail.com>
18 Cc: Ralph Campbell <rcampbell@nvidia.com>
19 Cc: John Hubbard <jhubbard@nvidia.com>
20 Cc: Dan Williams <dan.j.williams@intel.com>
21 Cc: Arnd Bergmann <arnd@arndb.de>
22 Cc: Dan Carpenter <dan.carpenter@oracle.com>
23 Cc: Ira Weiny <ira.weiny@intel.com>
24 Cc: Matthew Wilcox <willy@infradead.org>
25 Cc: Souptick Joarder <jrdr.linux@gmail.com>
26 Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
27 Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
28 Signed-off-by: Sasha Levin <sashal@kernel.org>
29 ---
30 mm/Kconfig | 2 +-
31 1 file changed, 1 insertion(+), 1 deletion(-)
32
33 diff --git a/mm/Kconfig b/mm/Kconfig
34 index 59efbd3337e0..cc4d633947bf 100644
35 --- a/mm/Kconfig
36 +++ b/mm/Kconfig
37 @@ -708,12 +708,12 @@ config MIGRATE_VMA_HELPER
38
39 config HMM
40 bool
41 + select MMU_NOTIFIER
42 select MIGRATE_VMA_HELPER
43
44 config HMM_MIRROR
45 bool "HMM mirror CPU page table into a device page table"
46 depends on ARCH_HAS_HMM
47 - select MMU_NOTIFIER
48 select HMM
49 help
50 Select HMM_MIRROR if you want to mirror range of the CPU page table of a
51 --
52 2.20.1
53