Re: [PATCH] powerpc, kexec: Fix "Processor X is stuck" issue during kexec from ST mode

2014-06-12 Thread Srivatsa S. Bhat
I'm running benh's next branch as of thismorning, and SMT was off. > Oh! This looks like a different hang than the one I tried to fix. My patch ("powerpc, kexec: Fix "Processor X is stuck" issue during kexec from ST mode") which is already in benh's next branc

Re: [PATCH] powerpc, kexec: Fix "Processor X is stuck" issue during kexec from ST mode

2014-06-11 Thread Joel Stanley
Hi Srivatsa, On Sat, Jun 7, 2014 at 7:16 AM, Srivatsa S. Bhat wrote: > And with the following hunk added (which I had forgotten earlier), it worked > just > fine on powernv :-) How are the patches coming along? I just hung a machine here while attempting to kexec. It appears to have onlined al

Re: [PATCH] powerpc, kexec: Fix "Processor X is stuck" issue during kexec from ST mode

2014-06-06 Thread Srivatsa S. Bhat
On 06/06/2014 05:59 PM, Srivatsa S. Bhat wrote: > On 06/04/2014 03:39 AM, Benjamin Herrenschmidt wrote: >> On Wed, 2014-06-04 at 01:58 +0530, Srivatsa S. Bhat wrote: >>> Yep, that makes sense. But unfortunately I don't have enough insight into >>> why exactly powerpc has to online the CPUs before d

Re: [PATCH] powerpc, kexec: Fix "Processor X is stuck" issue during kexec from ST mode

2014-06-06 Thread Srivatsa S. Bhat
On 06/06/2014 11:57 PM, Vivek Goyal wrote: > On Fri, Jun 06, 2014 at 06:00:43PM +0530, Srivatsa S. Bhat wrote: >> On 06/04/2014 07:16 PM, Vivek Goyal wrote: >>> On Wed, Jun 04, 2014 at 08:09:25AM +1000, Benjamin Herrenschmidt wrote: On Wed, 2014-06-04 at 01:58 +0530, Srivatsa S. Bhat wrote: >>

Re: [PATCH] powerpc, kexec: Fix "Processor X is stuck" issue during kexec from ST mode

2014-06-06 Thread Vivek Goyal
On Fri, Jun 06, 2014 at 06:00:43PM +0530, Srivatsa S. Bhat wrote: > On 06/04/2014 07:16 PM, Vivek Goyal wrote: > > On Wed, Jun 04, 2014 at 08:09:25AM +1000, Benjamin Herrenschmidt wrote: > >> On Wed, 2014-06-04 at 01:58 +0530, Srivatsa S. Bhat wrote: > >>> Yep, that makes sense. But unfortunately I

Re: [PATCH] powerpc, kexec: Fix "Processor X is stuck" issue during kexec from ST mode

2014-06-06 Thread Srivatsa S. Bhat
On 06/06/2014 05:59 PM, Srivatsa S. Bhat wrote: > +bool kexec_cpu_wake(void) > +{ > + kexec_smp_down(NULL); > + > + /* NOTREACHED */ > + return true; > +} > + This function doesn't have to return anything, so we can define it as void. The bool is a remnant of my previous attempt at m

Re: [PATCH] powerpc, kexec: Fix "Processor X is stuck" issue during kexec from ST mode

2014-06-06 Thread Srivatsa S. Bhat
On 06/04/2014 07:11 PM, Vivek Goyal wrote: > On Wed, Jun 04, 2014 at 01:58:40AM +0530, Srivatsa S. Bhat wrote: >> On 05/28/2014 07:01 PM, Vivek Goyal wrote: >>> On Tue, May 27, 2014 at 04:25:34PM +0530, Srivatsa S. Bhat wrote: If we try to perform a kexec when the machine is in ST (Single-Thre

Re: [PATCH] powerpc, kexec: Fix "Processor X is stuck" issue during kexec from ST mode

2014-06-06 Thread Srivatsa S. Bhat
On 06/04/2014 07:16 PM, Vivek Goyal wrote: > On Wed, Jun 04, 2014 at 08:09:25AM +1000, Benjamin Herrenschmidt wrote: >> On Wed, 2014-06-04 at 01:58 +0530, Srivatsa S. Bhat wrote: >>> Yep, that makes sense. But unfortunately I don't have enough insight into >>> why exactly powerpc has to online the

Re: [PATCH] powerpc, kexec: Fix "Processor X is stuck" issue during kexec from ST mode

2014-06-06 Thread Srivatsa S. Bhat
On 06/04/2014 03:39 AM, Benjamin Herrenschmidt wrote: > On Wed, 2014-06-04 at 01:58 +0530, Srivatsa S. Bhat wrote: >> Yep, that makes sense. But unfortunately I don't have enough insight into >> why exactly powerpc has to online the CPUs before doing a kexec. I just >> know from the commit log and

Re: [PATCH] powerpc, kexec: Fix "Processor X is stuck" issue during kexec from ST mode

2014-06-04 Thread Vivek Goyal
On Wed, Jun 04, 2014 at 08:09:25AM +1000, Benjamin Herrenschmidt wrote: > On Wed, 2014-06-04 at 01:58 +0530, Srivatsa S. Bhat wrote: > > Yep, that makes sense. But unfortunately I don't have enough insight into > > why exactly powerpc has to online the CPUs before doing a kexec. I just > > know fro

Re: [PATCH] powerpc, kexec: Fix "Processor X is stuck" issue during kexec from ST mode

2014-06-04 Thread Vivek Goyal
On Wed, Jun 04, 2014 at 01:58:40AM +0530, Srivatsa S. Bhat wrote: > On 05/28/2014 07:01 PM, Vivek Goyal wrote: > > On Tue, May 27, 2014 at 04:25:34PM +0530, Srivatsa S. Bhat wrote: > >> If we try to perform a kexec when the machine is in ST (Single-Threaded) > >> mode > >> (ppc64_cpu --smt=off), t

Re: [PATCH] powerpc, kexec: Fix "Processor X is stuck" issue during kexec from ST mode

2014-06-03 Thread Benjamin Herrenschmidt
On Wed, 2014-06-04 at 01:58 +0530, Srivatsa S. Bhat wrote: > Yep, that makes sense. But unfortunately I don't have enough insight into > why exactly powerpc has to online the CPUs before doing a kexec. I just > know from the commit log and the comment mentioned above (and from my own > experiments)

Re: [PATCH] powerpc, kexec: Fix "Processor X is stuck" issue during kexec from ST mode

2014-06-03 Thread Srivatsa S. Bhat
On 05/28/2014 07:01 PM, Vivek Goyal wrote: > On Tue, May 27, 2014 at 04:25:34PM +0530, Srivatsa S. Bhat wrote: >> If we try to perform a kexec when the machine is in ST (Single-Threaded) mode >> (ppc64_cpu --smt=off), the kexec operation doesn't succeed properly, and we >> get the following message

Re: [PATCH] powerpc, kexec: Fix "Processor X is stuck" issue during kexec from ST mode

2014-05-28 Thread Vivek Goyal
On Tue, May 27, 2014 at 04:25:34PM +0530, Srivatsa S. Bhat wrote: > If we try to perform a kexec when the machine is in ST (Single-Threaded) mode > (ppc64_cpu --smt=off), the kexec operation doesn't succeed properly, and we > get the following messages during boot: > > [0.089866] POWER8 perfor

[PATCH] powerpc, kexec: Fix "Processor X is stuck" issue during kexec from ST mode

2014-05-27 Thread Srivatsa S. Bhat
If we try to perform a kexec when the machine is in ST (Single-Threaded) mode (ppc64_cpu --smt=off), the kexec operation doesn't succeed properly, and we get the following messages during boot: [0.089866] POWER8 performance monitor hardware support registered [0.089985] power8-pmu: PMAO re