Thread (13 messages) flat view 13 messages, 2 authors, 2016-05-03

[RFC 2/7] powerpc/mm: Enable support for ZONE_DEVICE on PPC_BOOK3S_64 platforms

From: Anshuman Khandual <hidden>
Date: 2016-05-03 06:30:25
Subsystem: linux for powerpc (32-bit and 64-bit), memory management, memory management - core, the rest · Maintainers: Madhavan Srinivasan, Andrew Morton, David Hildenbrand, Linus Torvalds

This enables support for the new ZONE_DEVCICE on PPC_BOOK3S_64 platforms
which now accommodates device memory during memory hotplug operation.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Anshuman Khandual <redacted>
---
 arch/powerpc/Kconfig | 4 ++++
 mm/Kconfig           | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 7cd32c0..9ac5c6f 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -1084,6 +1084,10 @@ endif
 config	ARCH_RANDOM
 	def_bool n
 
+config ZONE_DEVICE
+	bool
+	default y if PPC_BOOK3S_64
+
 source "net/Kconfig"
 
 source "drivers/Kconfig"
diff --git a/mm/Kconfig b/mm/Kconfig
index 989f8f3..8ecd869 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -654,7 +654,7 @@ config ZONE_DEVICE
 	depends on MEMORY_HOTPLUG
 	depends on MEMORY_HOTREMOVE
 	depends on SPARSEMEM_VMEMMAP
-	depends on X86_64 #arch_add_memory() comprehends device memory
+	depends on (X86_64 || PPC_BOOK3S_64) #arch_add_memory() comprehends device memory
 
 	help
 	  Device memory hotplug support allows for establishing pmem,
-- 
1.8.3.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help