diff options
author | Christoph Hellwig <hch@lst.de> | 2019-06-26 08:27:22 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-07-02 13:32:45 -0400 |
commit | 7328d9cc1b9fdc52105901072e9a4a1234e29b11 (patch) | |
tree | 6f59165486746f506f4c5d18954eddd3361289df | |
parent | 8a164fef9c4ccf6ff7757170397222860e40d192 (diff) |
mm: sort out the DEVICE_PRIVATE Kconfig mess
The ZONE_DEVICE support doesn't depend on anything HMM related, just on
various bits of arch support as indicated by the architecture. Also
don't select the option from nouveau as it isn't present in many setups,
and depend on it instead.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/Kconfig | 2 | ||||
-rw-r--r-- | mm/Kconfig | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/Kconfig b/drivers/gpu/drm/nouveau/Kconfig index dba2613f7180..6303d203ab1d 100644 --- a/drivers/gpu/drm/nouveau/Kconfig +++ b/drivers/gpu/drm/nouveau/Kconfig | |||
@@ -85,10 +85,10 @@ config DRM_NOUVEAU_BACKLIGHT | |||
85 | config DRM_NOUVEAU_SVM | 85 | config DRM_NOUVEAU_SVM |
86 | bool "(EXPERIMENTAL) Enable SVM (Shared Virtual Memory) support" | 86 | bool "(EXPERIMENTAL) Enable SVM (Shared Virtual Memory) support" |
87 | depends on ARCH_HAS_HMM | 87 | depends on ARCH_HAS_HMM |
88 | depends on DEVICE_PRIVATE | ||
88 | depends on DRM_NOUVEAU | 89 | depends on DRM_NOUVEAU |
89 | depends on STAGING | 90 | depends on STAGING |
90 | select HMM_MIRROR | 91 | select HMM_MIRROR |
91 | select DEVICE_PRIVATE | ||
92 | default n | 92 | default n |
93 | help | 93 | help |
94 | Say Y here if you want to enable experimental support for | 94 | Say Y here if you want to enable experimental support for |
diff --git a/mm/Kconfig b/mm/Kconfig index 6f35b85b3052..eecf037a54b3 100644 --- a/mm/Kconfig +++ b/mm/Kconfig | |||
@@ -677,13 +677,13 @@ config ARCH_HAS_HMM_MIRROR | |||
677 | 677 | ||
678 | config ARCH_HAS_HMM | 678 | config ARCH_HAS_HMM |
679 | bool | 679 | bool |
680 | default y | ||
681 | depends on (X86_64 || PPC64) | 680 | depends on (X86_64 || PPC64) |
682 | depends on ZONE_DEVICE | 681 | depends on ZONE_DEVICE |
683 | depends on MMU && 64BIT | 682 | depends on MMU && 64BIT |
684 | depends on MEMORY_HOTPLUG | 683 | depends on MEMORY_HOTPLUG |
685 | depends on MEMORY_HOTREMOVE | 684 | depends on MEMORY_HOTREMOVE |
686 | depends on SPARSEMEM_VMEMMAP | 685 | depends on SPARSEMEM_VMEMMAP |
686 | default y | ||
687 | 687 | ||
688 | config MIGRATE_VMA_HELPER | 688 | config MIGRATE_VMA_HELPER |
689 | bool | 689 | bool |
@@ -709,8 +709,7 @@ config HMM_MIRROR | |||
709 | 709 | ||
710 | config DEVICE_PRIVATE | 710 | config DEVICE_PRIVATE |
711 | bool "Unaddressable device memory (GPU memory, ...)" | 711 | bool "Unaddressable device memory (GPU memory, ...)" |
712 | depends on ARCH_HAS_HMM | 712 | depends on ZONE_DEVICE |
713 | select HMM | ||
714 | select DEV_PAGEMAP_OPS | 713 | select DEV_PAGEMAP_OPS |
715 | 714 | ||
716 | help | 715 | help |