summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/exceptions-64s.S
diff options
context:
space:
mode:
authorPaul Mackerras2011-12-05 20:35:32 +0100
committerBenjamin Herrenschmidt2011-12-08 04:22:53 +0100
commitcba313da5c8ddbe6bba74c9f2b8f6d9e0bc0e723 (patch)
treed98c1ca63240f2f13dbaac9769d08da9803d2647 /arch/powerpc/kernel/exceptions-64s.S
parentpowerpc/pseries: Increase minimum RMO size from 64MB to 256MB (diff)
downloadkernel-qcow2-linux-cba313da5c8ddbe6bba74c9f2b8f6d9e0bc0e723.tar.gz
kernel-qcow2-linux-cba313da5c8ddbe6bba74c9f2b8f6d9e0bc0e723.tar.xz
kernel-qcow2-linux-cba313da5c8ddbe6bba74c9f2b8f6d9e0bc0e723.zip
powerpc/powernv: Fix problems in onlining CPUs
At present, on the powernv platform, if you off-line a CPU that was online, and then try to on-line it again, the kernel generates a warning message "OPAL Error -1 starting CPU n". Furthermore, if the CPU is a secondary thread that was used by KVM while it was off-line, the CPU fails to come online. The first problem is fixed by only calling OPAL to start the CPU the first time it is on-lined, as indicated by the cpu_start field of its PACA being zero. The second problem is fixed by restoring the cpu_start field to 1 instead of 0 when using the CPU within KVM. Signed-off-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/exceptions-64s.S')
-rw-r--r--arch/powerpc/kernel/exceptions-64s.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S
index cf9c69b9189c..d4be7bb3dbdf 100644
--- a/arch/powerpc/kernel/exceptions-64s.S
+++ b/arch/powerpc/kernel/exceptions-64s.S
@@ -65,7 +65,7 @@ BEGIN_FTR_SECTION
lbz r0,PACAPROCSTART(r13)
cmpwi r0,0x80
bne 1f
- li r0,0
+ li r0,1
stb r0,PACAPROCSTART(r13)
b kvm_start_guest
1: