powerpc/powernv: Add config option for hwpoisoning.
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Fri, 15 Nov 2013 04:20:50 +0000 (09:50 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 9 Dec 2013 00:40:31 +0000 (11:40 +1100)
Add config option to enable generic memory hwpoisoning infrastructure for
ppc64.

Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/Kconfig

index b44b52c0a8f07d2854d5a21ca6fb2ecf409409c1..ba4730b0e2a4ed23c6362775c6f6437fe7be4580 100644 (file)
@@ -379,6 +379,12 @@ config ARCH_HAS_WALK_MEMORY
 config ARCH_ENABLE_MEMORY_HOTREMOVE
        def_bool y
 
+config PPC64_SUPPORTS_MEMORY_FAILURE
+       bool "Add support for memory hwpoison"
+       depends on PPC_BOOK3S_64
+       default "y" if PPC_POWERNV
+       select ARCH_SUPPORTS_MEMORY_FAILURE
+
 config KEXEC
        bool "kexec system call"
        depends on (PPC_BOOK3S || FSL_BOOKE || (44x && !SMP))