Re: unrecoverable exception on G5 with CONFIG_PPC_EARLY_DEBUG enabled

2016-06-20 Thread Denis Kirjanov
> How about this? Denis does this work? > > cheers > > diff --git a/arch/powerpc/kernel/exceptions-64s.S > b/arch/powerpc/kernel/exceptions-64s.S > index 4c9440629128..8bcc1b457115 100644 > --- a/arch/powerpc/kernel/exceptions-64s.S > +++ b/arch/powerpc/kernel/exceptions-64s.S > @@ -1399,11 +1399,1

Re: unrecoverable exception on G5 with CONFIG_PPC_EARLY_DEBUG enabled

2016-06-20 Thread Michael Ellerman
On Mon, 2016-06-20 at 15:51 +0530, Aneesh Kumar K.V wrote: > Michael Ellerman writes: > > diff --git a/arch/powerpc/kernel/exceptions-64s.S > > b/arch/powerpc/kernel/exceptions-64s.S > > index 4c9440629128..8bcc1b457115 100644 > > --- a/arch/powerpc/kernel/exceptions-64s.S > > +++ b/arch/powerpc/

Re: unrecoverable exception on G5 with CONFIG_PPC_EARLY_DEBUG enabled

2016-06-20 Thread Aneesh Kumar K.V
Michael Ellerman writes: > On Sat, 2016-06-18 at 22:47 +0530, Aneesh Kumar K.V wrote: >> Michael Ellerman writes: >> > On Fri, 2016-06-17 at 08:33 +1000, Benjamin Herrenschmidt wrote: >> > > On Thu, 2016-06-16 at 22:49 +0300, Denis Kirjanov wrote: >> > > > - >> > > > +BEGIN_MMU_FTR_SECTION >> >

Re: unrecoverable exception on G5 with CONFIG_PPC_EARLY_DEBUG enabled

2016-06-20 Thread Michael Ellerman
On Sat, 2016-06-18 at 22:47 +0530, Aneesh Kumar K.V wrote: > Michael Ellerman writes: > > On Fri, 2016-06-17 at 08:33 +1000, Benjamin Herrenschmidt wrote: > > > On Thu, 2016-06-16 at 22:49 +0300, Denis Kirjanov wrote: > > > > - > > > > +BEGIN_MMU_FTR_SECTION > > > > + b 2f > > > > +END

Re: unrecoverable exception on G5 with CONFIG_PPC_EARLY_DEBUG enabled

2016-06-18 Thread Aneesh Kumar K.V
Michael Ellerman writes: > On Fri, 2016-06-17 at 08:33 +1000, Benjamin Herrenschmidt wrote: >> On Thu, 2016-06-16 at 22:49 +0300, Denis Kirjanov wrote: >> > - >> > +BEGIN_MMU_FTR_SECTION >> > + b 2f >> > +END_MMU_FTR_SECTION_IFSET(MMU_FTR_RADIX) >> > andi. r10,r12,MSR_RI /*

Re: unrecoverable exception on G5 with CONFIG_PPC_EARLY_DEBUG enabled

2016-06-16 Thread Michael Ellerman
On Fri, 2016-06-17 at 08:33 +1000, Benjamin Herrenschmidt wrote: > On Thu, 2016-06-16 at 22:49 +0300, Denis Kirjanov wrote: > > - > > +BEGIN_MMU_FTR_SECTION > > + b 2f > > +END_MMU_FTR_SECTION_IFSET(MMU_FTR_RADIX) > > andi. r10,r12,MSR_RI /* check for unrecoverable exception

Re: unrecoverable exception on G5 with CONFIG_PPC_EARLY_DEBUG enabled

2016-06-16 Thread Benjamin Herrenschmidt
On Thu, 2016-06-16 at 22:49 +0300, Denis Kirjanov wrote: > - > +BEGIN_MMU_FTR_SECTION > +   b   2f > +END_MMU_FTR_SECTION_IFSET(MMU_FTR_RADIX) >     andi.   r10,r12,MSR_RI  /* check for unrecoverable exception > */ >     beq-    2f Are we taking an SLB miss before we do the fixup m

Re: unrecoverable exception on G5 with CONFIG_PPC_EARLY_DEBUG enabled

2016-06-16 Thread Denis Kirjanov
>> Ok, the issue was introduced by the commit >> caca285e5ab4a7a19fede51688106ceed6fc45dd (powerpc/mm/radix: Use >> STD_MMU_64 to properly isolate hash related code) and 970mp dies on >> the following condition: > >> +BEGIN_MMU_FTR_SECTION >> bl slb_allocate_realmode >> - >> +END_MMU_F

Re: unrecoverable exception on G5 with CONFIG_PPC_EARLY_DEBUG enabled

2016-06-16 Thread Michael Ellerman
On Thu, 2016-06-16 at 11:12 +0300, Denis Kirjanov wrote: > On 6/6/16, Michael Ellerman wrote: > > On Mon, 2016-06-06 at 10:52 +0300, Denis Kirjanov wrote: > > > I haven't bisected this yet. Photo attached. > > > > A bisect would be awesome. > > Ok, the issue was introduced by the commit > caca28

Re: unrecoverable exception on G5 with CONFIG_PPC_EARLY_DEBUG enabled

2016-06-16 Thread Denis Kirjanov
On 6/6/16, Michael Ellerman wrote: > On Mon, 2016-06-06 at 10:52 +0300, Denis Kirjanov wrote: > >> Update: now with the proper mailing address. >> >> Hi, >> >> Posting if anyone knows how to quickly fix it :) > > Sorry but no. > >> Enabling CONFIG_PPC_EARLY_DEBUG on my quad G5 causes kernel to di

Re: unrecoverable exception on G5 with CONFIG_PPC_EARLY_DEBUG enabled

2016-06-06 Thread Michael Ellerman
On Mon, 2016-06-06 at 10:52 +0300, Denis Kirjanov wrote: > Update: now with the proper mailing address. > > Hi, > > Posting if anyone knows how to quickly fix it :) Sorry but no. > Enabling CONFIG_PPC_EARLY_DEBUG on my quad G5 causes kernel to die > with the unrecoverable exception 4100. Th