summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorJérôme Glisse <jglisse@redhat.com>2019-05-13 20:22:37 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2019-05-14 12:47:50 -0400
commit2c8fc3dcf2dc5cc06c30b63deada4237cd5bf8af (patch)
tree9a65691444cc8c59fa59a227c59f2d991adb8a43 /mm
parentf46b79120e94f92843a83db1d9ece482ee735d3a (diff)
mm/hmm: add ARCH_HAS_HMM_MIRROR ARCH_HAS_HMM_DEVICE Kconfig
Add 2 new Kconfig variables that are not used by anyone. I check that various make ARCH=somearch allmodconfig do work and do not complain. This new Kconfig needs to be added first so that device drivers that depend on HMM can be updated. Once drivers are updated then I can update the HMM Kconfig to depend on this new Kconfig in a followup patch. This is about solving Kconfig for HMM given that device driver are going through their own tree we want to avoid changing them from the mm tree. So plan is: 1 - Kernel release N add the new Kconfig to mm/Kconfig (this patch) 2 - Kernel release N+1 update driver to depend on new Kconfig ie stop using ARCH_HASH_HMM and start using ARCH_HAS_HMM_MIRROR and ARCH_HAS_HMM_DEVICE (one or the other or both depending on the driver) 3 - Kernel release N+2 remove ARCH_HASH_HMM and do final Kconfig update in mm/Kconfig Link: http://lkml.kernel.org/r/20190417211141.17580-1-jglisse@redhat.com Signed-off-by: Jérôme Glisse <jglisse@redhat.com> Cc: Guenter Roeck <linux@roeck-us.net> Cc: Leon Romanovsky <leonro@mellanox.com> Cc: Jason Gunthorpe <jgg@mellanox.com> Cc: Ralph Campbell <rcampbell@nvidia.com> Cc: John Hubbard <jhubbard@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/Kconfig16
1 files changed, 16 insertions, 0 deletions
diff --git a/mm/Kconfig b/mm/Kconfig
index 4c2e6b63c064..71e697e693df 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -670,6 +670,22 @@ config ZONE_DEVICE
670 670
671 If FS_DAX is enabled, then say Y. 671 If FS_DAX is enabled, then say Y.
672 672
673config ARCH_HAS_HMM_MIRROR
674 bool
675 default y
676 depends on (X86_64 || PPC64)
677 depends on MMU && 64BIT
678
679config ARCH_HAS_HMM_DEVICE
680 bool
681 default y
682 depends on (X86_64 || PPC64)
683 depends on MEMORY_HOTPLUG
684 depends on MEMORY_HOTREMOVE
685 depends on SPARSEMEM_VMEMMAP
686 depends on ARCH_HAS_ZONE_DEVICE
687 select XARRAY_MULTI
688
673config ARCH_HAS_HMM 689config ARCH_HAS_HMM
674 bool 690 bool
675 default y 691 default y