Re: [PATCH] powerpc/powernv: Fix idle state allocation corruption

2015-05-20 Thread Jack Miller
On Wed, May 20, 2015 at 10:58:42PM +0530, Shreyas B Prabhu wrote: > > > On Wednesday 20 May 2015 10:43 PM, Jack Miller wrote: > > pnv_alloc_idle_core_states is iterating over PACAs based on the > > configured maximum number of CPUs (NR_CPUS), but PACAs are only > > initialized up to nr_cpu_ids, s

Re: [PATCH] powerpc/powernv: Fix idle state allocation corruption

2015-05-20 Thread Shreyas B Prabhu
On Wednesday 20 May 2015 10:43 PM, Jack Miller wrote: > pnv_alloc_idle_core_states is iterating over PACAs based on the > configured maximum number of CPUs (NR_CPUS), but PACAs are only > initialized up to nr_cpu_ids, so rein in loops to keep from overwriting > adjacent memory. > Hi Jack, Jan

[PATCH] powerpc/powernv: Fix idle state allocation corruption

2015-05-20 Thread Jack Miller
pnv_alloc_idle_core_states is iterating over PACAs based on the configured maximum number of CPUs (NR_CPUS), but PACAs are only initialized up to nr_cpu_ids, so rein in loops to keep from overwriting adjacent memory. Signed-off-by: Jack Miller --- arch/powerpc/platforms/powernv/setup.c | 26