]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix the corrupt r3 error during MCE handling.
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Wed, 10 Jul 2013 13:02:56 +0000 (18:32 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 24 Jul 2013 04:18:45 +0000 (14:18 +1000)
commit4b9446bbbf0b10b0f97bb1f468848503dab1a658
tree955475f8ffa64d9dc804935e2922d5aaa9c6ce5d
parent5e8415365deacd00e98f960ae059802112cd3f03
powerpc: Fix the corrupt r3 error during MCE handling.

During Machine Check interrupt on pseries platform, R3 generally points to
memory region inside RTAS (FWNMI) area. We see r3 corruption because when RTAS
delivers the machine check exception it passes the address inside FWNMI area
with the top most bit set. This patch fixes this issue by masking top two bit
in machine check exception handler.

Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/ras.c