Re: [PATCH v3 1/2] powerpc/mm: Export flush_all_mm()

2017-09-13 Thread Frederic Barrat
Le 13/09/2017 à 06:04, Alistair Popple a écrit : +static inline void hash__local_flush_all_mm(struct mm_struct *mm) +{ + /* +* There's no Page Walk Cache for hash, so what is needed is +* the same as flush_tlb_mm(), which doesn't really make sense +* with hash. So

Re: [PATCH v3 1/2] powerpc/mm: Export flush_all_mm()

2017-09-12 Thread Alistair Popple
> +static inline void hash__local_flush_all_mm(struct mm_struct *mm) > +{ > + /* > + * There's no Page Walk Cache for hash, so what is needed is > + * the same as flush_tlb_mm(), which doesn't really make sense > + * with hash. So the only thing we could do is flush the > +

[PATCH v3 1/2] powerpc/mm: Export flush_all_mm()

2017-09-03 Thread Frederic Barrat
With the optimizations introduced by commit a46cc7a90fd8 ("powerpc/mm/radix: Improve TLB/PWC flushes"), flush_tlb_mm() no longer flushes the page walk cache with radix. This patch introduces flush_all_mm(), which flushes everything, tlb and pwc, for a given mm. Signed-off-by: Frederic Barrat