powerpc/pseries: hwpoison the pages upon hitting UE
authorGanesh Goudar <ganeshgr@linux.ibm.com>
Mon, 15 Apr 2019 10:05:44 +0000 (15:35 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Apr 2019 12:02:35 +0000 (22:02 +1000)
commit7f177f9810ada8ec2e8b378eddbe2d91fda79c9b
treee0c9192e60fb0fdc3f864563e0485c42dfb3a1df
parent4df2cb633b5b22ba152511f1a55e718efca6c0d9
powerpc/pseries: hwpoison the pages upon hitting UE

Add support to hwpoison the pages upon hitting machine check
exception.

This patch queues the address where UE is hit to percpu array
and schedules work to plumb it into memory poison infrastructure.

Reviewed-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Ganesh Goudar <ganeshgr@linux.ibm.com>
[mpe: Combine #ifdefs, drop PPC_BIT8(), and empty inline stub]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/mce.h
arch/powerpc/kernel/mce_power.c
arch/powerpc/platforms/pseries/ras.c