Browse Source

powerpc/powernv: Add config option for hwpoisoning.

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>
Mahesh Salgaonkar 11 năm trước cách đây
mục cha
commit
f2296a3d29
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      arch/powerpc/Kconfig

+ 6 - 0
arch/powerpc/Kconfig

@@ -379,6 +379,12 @@ config ARCH_HAS_WALK_MEMORY
 config ARCH_ENABLE_MEMORY_HOTREMOVE
 config ARCH_ENABLE_MEMORY_HOTREMOVE
 	def_bool y
 	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
 config KEXEC
 	bool "kexec system call"
 	bool "kexec system call"
 	depends on (PPC_BOOK3S || FSL_BOOKE || (44x && !SMP))
 	depends on (PPC_BOOK3S || FSL_BOOKE || (44x && !SMP))