Re: [PATCH] powerpc/64s: use ibm,tlbiel-congruence-classes-(hash|radix) dt property

2017-04-30 Thread Nicholas Piggin
On Mon, 24 Apr 2017 10:13:23 +1000 Benjamin Herrenschmidt wrote: > On Sun, 2017-04-23 at 19:57 +1000, Nicholas Piggin wrote: > > On Sun, 23 Apr 2017 10:39:11 +1000 > > Benjamin Herrenschmidt wrote: > > > > > On Sun, 2017-04-23 at 09:14

Re: [PATCH] powerpc/64s: use ibm,tlbiel-congruence-classes-(hash|radix) dt property

2017-04-26 Thread Nicholas Piggin
On Mon, 24 Apr 2017 13:53:12 +0530 "Aneesh Kumar K.V" wrote: > Nicholas Piggin writes: > > > tlbiel instruction with IS!=0 on POWER7 and later Book3s CPUs invalidate > > TLBs belonging to a specified congruence class. In order to operate on >

Re: [PATCH] powerpc/64s: use ibm, tlbiel-congruence-classes-(hash|radix) dt property

2017-04-24 Thread Aneesh Kumar K.V
On Monday 24 April 2017 02:47 PM, Michael Ellerman wrote: "Aneesh Kumar K.V" writes: Nicholas Piggin writes: tlbiel instruction with IS!=0 on POWER7 and later Book3s CPUs invalidate TLBs belonging to a specified congruence class. In order

Re: [PATCH] powerpc/64s: use ibm, tlbiel-congruence-classes-(hash|radix) dt property

2017-04-24 Thread Michael Ellerman
"Aneesh Kumar K.V" writes: > Nicholas Piggin writes: >> tlbiel instruction with IS!=0 on POWER7 and later Book3s CPUs invalidate >> TLBs belonging to a specified congruence class. In order to operate on >> the entire TLB, all congruence classes

Re: [PATCH] powerpc/64s: use ibm, tlbiel-congruence-classes-(hash|radix) dt property

2017-04-24 Thread Aneesh Kumar K.V
Nicholas Piggin writes: > tlbiel instruction with IS!=0 on POWER7 and later Book3s CPUs invalidate > TLBs belonging to a specified congruence class. In order to operate on > the entire TLB, all congruence classes must be specified, requiring a > software loop. > > This dt

Re: [PATCH] powerpc/64s: use ibm,tlbiel-congruence-classes-(hash|radix) dt property

2017-04-23 Thread Nicholas Piggin
On Mon, 24 Apr 2017 10:13:23 +1000 Benjamin Herrenschmidt wrote: > On Sun, 2017-04-23 at 19:57 +1000, Nicholas Piggin wrote: > > On Sun, 23 Apr 2017 10:39:11 +1000 > > Benjamin Herrenschmidt wrote: > > > > > On Sun, 2017-04-23 at 09:14

Re: [PATCH] powerpc/64s: use ibm,tlbiel-congruence-classes-(hash|radix) dt property

2017-04-23 Thread Benjamin Herrenschmidt
On Sun, 2017-04-23 at 19:57 +1000, Nicholas Piggin wrote: > On Sun, 23 Apr 2017 10:39:11 +1000 > Benjamin Herrenschmidt wrote: > > > On Sun, 2017-04-23 at 09:14 +1000, Nicholas Piggin wrote: > > > I think we were going to take another look at moving the setup > > > code

Re: [PATCH] powerpc/64s: use ibm,tlbiel-congruence-classes-(hash|radix) dt property

2017-04-23 Thread Nicholas Piggin
On Sun, 23 Apr 2017 10:39:11 +1000 Benjamin Herrenschmidt wrote: > On Sun, 2017-04-23 at 09:14 +1000, Nicholas Piggin wrote: > > I think we were going to take another look at moving the setup code > > later, but I think that might wait until 4.13. > > Except without

Re: [PATCH] powerpc/64s: use ibm,tlbiel-congruence-classes-(hash|radix) dt property

2017-04-22 Thread Benjamin Herrenschmidt
On Sun, 2017-04-23 at 09:14 +1000, Nicholas Piggin wrote: > I think we were going to take another look at moving the setup code > later, but I think that might wait until 4.13. Except without that we won't boot a post-P9 CPU right ? So we'll end up having to chase distros to backport it :-( Oh

Re: [PATCH] powerpc/64s: use ibm,tlbiel-congruence-classes-(hash|radix) dt property

2017-04-22 Thread Nicholas Piggin
On Sat, 22 Apr 2017 18:02:10 +1000 Benjamin Herrenschmidt wrote: > On Sat, 2017-04-22 at 10:58 +1000, Nicholas Piggin wrote: > > +static void __init init_mmu_tlb_sets_hash(unsigned long node) > > +{ > > +   const __be32 *ptr; > > + > > +   ptr =

Re: [PATCH] powerpc/64s: use ibm, tlbiel-congruence-classes-(hash|radix) dt property

2017-04-22 Thread kbuild test robot
Hi Nicholas, [auto build test ERROR on powerpc/next] [also build test ERROR on next-20170421] [cannot apply to v4.11-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH] powerpc/64s: use ibm,tlbiel-congruence-classes-(hash|radix) dt property

2017-04-22 Thread Benjamin Herrenschmidt
On Sat, 2017-04-22 at 10:58 +1000, Nicholas Piggin wrote: > +static void __init init_mmu_tlb_sets_hash(unsigned long node) > +{ > +   const __be32 *ptr; > + > +   ptr = of_get_flat_dt_prop(node, "ibm,tlbiel-congruence-classes-hash", > NULL); > +   if (ptr) > +   

[PATCH] powerpc/64s: use ibm, tlbiel-congruence-classes-(hash|radix) dt property

2017-04-21 Thread Nicholas Piggin
tlbiel instruction with IS!=0 on POWER7 and later Book3s CPUs invalidate TLBs belonging to a specified congruence class. In order to operate on the entire TLB, all congruence classes must be specified, requiring a software loop. This dt property specifies the number of classes that must be