powerpc/mce: Hookup derror (load/store) UE errors
authorBalbir Singh <bsingharora@gmail.com>
Fri, 29 Sep 2017 04:26:53 +0000 (14:26 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 16 Oct 2017 12:12:01 +0000 (23:12 +1100)
commitba41e1e1ccb9771ce41a3b8e2121f95486e76ac9
treea6ca6c4b6e2cd1ce5eabf605b9ec2884fbf912de
parent81b61fa7a065e639d097b09c303e3212e4264fac
powerpc/mce: Hookup derror (load/store) UE errors

Extract physical_address for UE errors by walking the page
tables for the mm and address at the NIP, to extract the
instruction. Then use the instruction to find the effective
address via analyse_instr().

We might have page table walking races, but we expect them to
be rare, the physical address extraction is best effort. The idea
is to then hook up this infrastructure to memory failure eventually.

Signed-off-by: Balbir Singh <bsingharora@gmail.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/exception-64s.h
arch/powerpc/include/asm/mce.h
arch/powerpc/kernel/exceptions-64s.S
arch/powerpc/kernel/mce.c
arch/powerpc/kernel/mce_power.c