Skip to content

Commit 0e5a7ff

Browse files
committed
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 <[email protected]>
1 parent 208151b commit 0e5a7ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/parisc/kernel/pdt.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#include <linux/kthread.h>
1919
#include <linux/initrd.h>
2020
#include <linux/pgtable.h>
21+
#include <linux/swap.h>
22+
#include <linux/swapops.h>
2123

2224
#include <asm/pdc.h>
2325
#include <asm/pdcpat.h>
@@ -230,6 +232,7 @@ void __init pdc_pdt_init(void)
230232

231233
/* mark memory page bad */
232234
memblock_reserve(pdt_entry[i] & PAGE_MASK, PAGE_SIZE);
235+
num_poisoned_pages_inc();
233236
}
234237
}
235238

0 commit comments

Comments
 (0)