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)
commitee1dd1e3dc774cf257012215d996e8e7e370c162
tree955475f8ffa64d9dc804935e2922d5aaa9c6ce5d
parent5d7ead0039b0c9500825b46997896352810efb0b
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