[POWERPC] Fix PMU + soft interrupt disable bug
authorAnton Blanchard <anton@samba.org>
Mon, 17 Mar 2008 04:27:09 +0000 (15:27 +1100)
committerPaul Mackerras <paulus@samba.org>
Wed, 19 Mar 2008 23:14:55 +0000 (10:14 +1100)
commit44387e9ff25267c78a99229aca55ed750e9174c7
tree84485e031d4a97898e3a80b5dc1c5a09b2e6e222
parentc2372eb9bcafdd149b26987a8c25bbed92fd2775
[POWERPC] Fix PMU + soft interrupt disable bug

Since the PMU is an NMI now, it can come at any time we are only soft
disabled.  We must hard disable around the two places we allow the kernel
stack SLB and r1 to go out of sync.  Otherwise the PMU exception can
force a kernel stack SLB into another slot, which can lead to it
getting evicted, which can lead to a nasty unrecoverable SLB miss
in the exception entry code.

Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/process.c
arch/powerpc/mm/slb.c