From: Helge Deller Date: Fri, 24 Jul 2020 17:17:52 +0000 (+0200) Subject: parisc: Report bad pages as HardwareCorrupted X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0e5a7ff6e36ad58933d076ddcac36ff14d014692;p=linux.git parisc: Report bad pages as HardwareCorrupted The /proc/meminfo file reports physically broken memory pages in the HardwareCorrupted field. When the parisc kernel boots report physically bad pages which were recorded in the page deallocation table (PDT) as HardwareCorrupted too. Signed-off-by: Helge Deller --- diff --git a/arch/parisc/kernel/pdt.c b/arch/parisc/kernel/pdt.c index 6e8550fefad6a..fcc761b0e11b9 100644 --- a/arch/parisc/kernel/pdt.c +++ b/arch/parisc/kernel/pdt.c @@ -18,6 +18,8 @@ #include #include #include +#include +#include #include #include @@ -230,6 +232,7 @@ void __init pdc_pdt_init(void) /* mark memory page bad */ memblock_reserve(pdt_entry[i] & PAGE_MASK, PAGE_SIZE); + num_poisoned_pages_inc(); } }