]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - arch/powerpc/kernel/idle_book3s.S
powerpc/powernv: Set NAPSTATELOST after recovering paca on P9 DD1
authorGautham R. Shenoy <ego@linux.vnet.ibm.com>
Fri, 12 May 2017 09:22:06 +0000 (14:52 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 16 May 2017 03:03:21 +0000 (13:03 +1000)
commitbbb075ddf7d58762040ca413ad82e9974713def3
tree3150ca417716fbd6692a8d04a97effe3a6f99c91
parentcde97f8492ac4425c4d0647a308e15e78cb4c218
powerpc/powernv: Set NAPSTATELOST after recovering paca on P9 DD1

Commit 17ed4c8f81da ("powerpc/powernv: Recover correct PACA on wakeup
from a stop on P9 DD1") promises to set the NAPSTATELOST bit in paca
after recovering the correct paca for the thread waking up from stop1
on DD1, so that the GPRs can be correctly restored on the stop exit
path. However, it loads the value 1 into r3, but stores the value in
r0 into NAPSTATELOST(r13).

Fix this by correctly set the NAPSTATELOST bit in paca after
recovering the paca on POWER9 DD1.

Fixes: 17ed4c8f81da ("powerpc/powernv: Recover correct PACA on wakeup from a stop on P9 DD1")
Signed-off-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/idle_book3s.S