]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb50620f6f34925cf4ffd7ad7e1e64549b18ac6d2
treea6ca6c4b6e2cd1ce5eabf605b9ec2884fbf912de
parentfeee81a9238e55b789547ec39744af182fbaa36f
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