powerpc/powernv: Set NAPSTATELOST after recovering paca on P9 DD1
Commit17ed4c8f81
("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:17ed4c8f81
("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>
This commit is contained in:
parent
cde97f8492
commit
bbb075ddf7
|
@ -416,7 +416,7 @@ power9_dd1_recover_paca:
|
||||||
* which needs to be restored from the stack.
|
* which needs to be restored from the stack.
|
||||||
*/
|
*/
|
||||||
li r3, 1
|
li r3, 1
|
||||||
stb r0,PACA_NAPSTATELOST(r13)
|
stb r3,PACA_NAPSTATELOST(r13)
|
||||||
blr
|
blr
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue