[RFC PATCH v2] powerpc/64s: Move idle code to powernv C code

2018-07-20 Thread Nicholas Piggin
Reimplement Book3S idle code to C, in the powernv platform code. Assembly stubs are used to save and restore the stack frame and non-volatile GPRs before going to idle, but these are small and mostly agnostic to microarchitecture implementation details. The optimisation where EC=ESL=0 idle modes d

Re: [RFC PATCH v2] powerpc/64s: Move idle code to powernv C code

2018-07-25 Thread Gautham R Shenoy
Hello Nicholas, On Sat, Jul 21, 2018 at 02:29:24PM +1000, Nicholas Piggin wrote: > Reimplement Book3S idle code to C, in the powernv platform code. > Assembly stubs are used to save and restore the stack frame and > non-volatile GPRs before going to idle, but these are small and > mostly agnostic

Re: [RFC PATCH v2] powerpc/64s: Move idle code to powernv C code

2018-07-25 Thread Nicholas Piggin
Hi Gautham, Thanks for the review, I also missed one or two things from you last one, but I haven't forgotten them. On Wed, 25 Jul 2018 16:56:45 +0530 Gautham R Shenoy wrote: > Hello Nicholas, > > On Sat, Jul 21, 2018 at 02:29:24PM +1000, Nicholas Piggin wrote: > > Reimplement Book3S idle cod