]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - queue-5.1/mm-hmm-select-mmu-notifier-when-selecting-hmm.patch
4.19-stable patches
[thirdparty/kernel/stable-queue.git] / queue-5.1 / mm-hmm-select-mmu-notifier-when-selecting-hmm.patch
CommitLineData
d50b8c78
SL
1From c26b4efa4f01f4f32c8fc28c56743e87e65daf77 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= <jglisse@redhat.com>
3Date: Mon, 13 May 2019 17:19:45 -0700
4Subject: mm/hmm: select mmu notifier when selecting HMM
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9[ Upstream commit 734fb89968900b5c5f8edd5038bd4cdeab8c61d2 ]
10
11To avoid random config build issue, select mmu notifier when HMM is
12selected. In any cases when HMM get selected it will be by users that
13will also wants the mmu notifier.
14
15Link: http://lkml.kernel.org/r/20190403193318.16478-2-jglisse@redhat.com
16Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
17Acked-by: Balbir Singh <bsingharora@gmail.com>
18Cc: Ralph Campbell <rcampbell@nvidia.com>
19Cc: John Hubbard <jhubbard@nvidia.com>
20Cc: Dan Williams <dan.j.williams@intel.com>
21Cc: Arnd Bergmann <arnd@arndb.de>
22Cc: Dan Carpenter <dan.carpenter@oracle.com>
23Cc: Ira Weiny <ira.weiny@intel.com>
24Cc: Matthew Wilcox <willy@infradead.org>
25Cc: Souptick Joarder <jrdr.linux@gmail.com>
26Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
27Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
28Signed-off-by: Sasha Levin <sashal@kernel.org>
29---
30 mm/Kconfig | 2 +-
31 1 file changed, 1 insertion(+), 1 deletion(-)
32
33diff --git a/mm/Kconfig b/mm/Kconfig
34index 25c71eb8a7db..2e6d24d783f7 100644
35--- a/mm/Kconfig
36+++ b/mm/Kconfig
37@@ -694,12 +694,12 @@ config DEV_PAGEMAP_OPS
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--
522.20.1
53