Skip to content

Commit 7328d9c

Browse files
Christoph Hellwigjgunthorpe
authored andcommitted
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 <[email protected]> Reviewed-by: Ira Weiny <[email protected]> Reviewed-by: Dan Williams <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 8a164fe commit 7328d9c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

drivers/gpu/drm/nouveau/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ config DRM_NOUVEAU_BACKLIGHT
8585
config DRM_NOUVEAU_SVM
8686
bool "(EXPERIMENTAL) Enable SVM (Shared Virtual Memory) support"
8787
depends on ARCH_HAS_HMM
88+
depends on DEVICE_PRIVATE
8889
depends on DRM_NOUVEAU
8990
depends on STAGING
9091
select HMM_MIRROR
91-
select DEVICE_PRIVATE
9292
default n
9393
help
9494
Say Y here if you want to enable experimental support for

mm/Kconfig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,13 +677,13 @@ config ARCH_HAS_HMM_MIRROR
677677

678678
config ARCH_HAS_HMM
679679
bool
680-
default y
681680
depends on (X86_64 || PPC64)
682681
depends on ZONE_DEVICE
683682
depends on MMU && 64BIT
684683
depends on MEMORY_HOTPLUG
685684
depends on MEMORY_HOTREMOVE
686685
depends on SPARSEMEM_VMEMMAP
686+
default y
687687

688688
config MIGRATE_VMA_HELPER
689689
bool
@@ -709,8 +709,7 @@ config HMM_MIRROR
709709

710710
config DEVICE_PRIVATE
711711
bool "Unaddressable device memory (GPU memory, ...)"
712-
depends on ARCH_HAS_HMM
713-
select HMM
712+
depends on ZONE_DEVICE
714713
select DEV_PAGEMAP_OPS
715714

716715
help

0 commit comments

Comments
 (0)