Re: [PATCH] powernv:idle: Clear r12 on wakeup from stop lite

2017-06-28 Thread Michael Ellerman
Nicholas Piggin writes: > On Wed, 28 Jun 2017 06:46:49 +0530 > Akshay Adiga wrote: > >> pnv_wakeup_noloss expects R12 to contain SRR1 value to determine if >> the wakeup reason is an HMI in CHECK_HMI_INTERRUPT. >> >> When we wakeup with ESL=0, SRR1 will not contain the wakeup reason, so >> ther

Re: [PATCH] powernv:idle: Clear r12 on wakeup from stop lite

2017-06-27 Thread Nicholas Piggin
On Wed, 28 Jun 2017 06:46:49 +0530 Akshay Adiga wrote: > pnv_wakeup_noloss expects R12 to contain SRR1 value to determine if > the wakeup reason is an HMI in CHECK_HMI_INTERRUPT. > > When we wakeup with ESL=0, SRR1 will not contain the wakeup reason, so > there is no point setting R12 to SRR1. >

[PATCH] powernv:idle: Clear r12 on wakeup from stop lite

2017-06-27 Thread Akshay Adiga
pnv_wakeup_noloss expects R12 to contain SRR1 value to determine if the wakeup reason is an HMI in CHECK_HMI_INTERRUPT. When we wakeup with ESL=0, SRR1 will not contain the wakeup reason, so there is no point setting R12 to SRR1. However, we don't set R12 at all and R12 contains garbage, and stil