]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.19.51/mm-hmm-select-mmu-notifier-when-selecting-hmm.patch
Linux 4.19.51
[thirdparty/kernel/stable-queue.git] / releases / 4.19.51 / mm-hmm-select-mmu-notifier-when-selecting-hmm.patch
CommitLineData
37554d48
SL
1From 067e089cd56e95e803f0f7d03018fa8384232a01 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 de64ea658716..b457e94ae618 100644
35--- a/mm/Kconfig
36+++ b/mm/Kconfig
37@@ -700,12 +700,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