Skip to contentSkip to conversation

parisc: PDT: Add full support for memory failure via Page Deallocation Table (PDT)

PATCH New Helge Deller 1 participant 1 message Aug 4, 2017 PA-RISC architecture

lore
Share & tools
lore

Helge Deller

author maintainer
#0 lore raw

PATCH 1/1 parisc: PDT: Add full support for memory failure via Page Deallocation Table (PDT)

parisc: PDT: Add full support for memory failure via Page Deallocation Table (PDT)

This patch adds full support to read PDT info on all machine types. At bootup the PDT is read and bad memory excluded from usage via memblock_reserve().

Later in the boot process a kernel thread is started (kpdtd) which regularily checks firmare for new reported bad memory and tries to soft offline pages in case of correctable errors and to kill processes and exclude such memory in case of uncorrectable errors via memory_failure().

arch/parisc/Kconfig +1 -0
index dda1f55..7d2faf7 100644
@@ -9,6 +9,7 @@ config PARISC
 	select ARCH_WANT_FRAME_POINTERS
 	select ARCH_HAS_ELF_RANDOMIZE
 	select ARCH_HAS_STRICT_KERNEL_RWX
+	select ARCH_SUPPORTS_MEMORY_FAILURE
 	select RTC_CLASS
 	select RTC_DRV_GENERIC
 	select INIT_ALL_POSSIBLE
arch/parisc/kernel/pdt.c +239 -41

354 lines not on this page · raw message