Re: [PATCH v2 1/4] powerpc: Introduce local (non-broadcast) forms of tlb invalidates

2008-09-03 Thread Benjamin Herrenschmidt
On Fri, 2008-08-29 at 08:56 -0500, Kumar Gala wrote: > #if defined(CONFIG_40x) || defined(CONFIG_8xx) > #define _tlbia() asm volatile ("tlbia; sync" : : : "memory") > @@ -38,31 +41,31 @@ extern void _tlbia(void); > > static inline void flush_tlb_mm(struct mm_struct *mm) > { > - _tlbi

Re: [PATCH v2 1/4] powerpc: Introduce local (non-broadcast) forms of tlb invalidates

2008-09-03 Thread Kumar Gala
On Sep 3, 2008, at 11:12 AM, Scott Wood wrote: On Fri, Aug 29, 2008 at 08:56:50AM -0500, Kumar Gala wrote: +_GLOBAL(_tlbil_all) +#define MMUCSR0_TLBFI (MMUCSR0_TLB0FI | MMUCSR0_TLB1FI | \ +MMUCSR0_TLB2FI | MMUCSR0_TLB3FI) + li r3,(MMUCSR0_TLBFI)@l + mt

Re: [PATCH v2 1/4] powerpc: Introduce local (non-broadcast) forms of tlb invalidates

2008-09-03 Thread Scott Wood
On Fri, Aug 29, 2008 at 08:56:50AM -0500, Kumar Gala wrote: > +_GLOBAL(_tlbil_all) > +#define MMUCSR0_TLBFI(MMUCSR0_TLB0FI | MMUCSR0_TLB1FI | \ > + MMUCSR0_TLB2FI | MMUCSR0_TLB3FI) > + li r3,(MMUCSR0_TLBFI)@l > + mtspr SPRN_MMUCSR0, r3 > +1: > + mfspr

Re: [PATCH v2 1/4] powerpc: Introduce local (non-broadcast) forms of tlb invalidates

2008-08-29 Thread Becky Bruce
On Aug 29, 2008, at 8:56 AM, Kumar Gala wrote: Introduced a new set of low level tlb invalidate functions that do not broadcast invalidates on the bus: _tlbil_all - invalidate all _tlbil_pid - invalidate based on process id (or mm context) _tlbil_va - invalidate based on virtual address (ea +

[PATCH v2 1/4] powerpc: Introduce local (non-broadcast) forms of tlb invalidates

2008-08-29 Thread Kumar Gala
Introduced a new set of low level tlb invalidate functions that do not broadcast invalidates on the bus: _tlbil_all - invalidate all _tlbil_pid - invalidate based on process id (or mm context) _tlbil_va - invalidate based on virtual address (ea + pid) On non-SMP configs _tlbil_all should be func