Re: [PATCH v2 1/3] powerpc/mm: Export flush_all_mm()

2017-08-31 Thread Frederic Barrat
Le 30/08/2017 à 23:01, Benjamin Herrenschmidt a écrit : On Wed, 2017-08-30 at 15:59 +0200, Frederic Barrat wrote: It's not clear why it makes sense for these to be empty. Either for the general idea of the "flush_all_mm()" API, or for your intended use by CXL. I was not too sure what to do f

Re: [PATCH v2 1/3] powerpc/mm: Export flush_all_mm()

2017-08-30 Thread Benjamin Herrenschmidt
On Wed, 2017-08-30 at 15:59 +0200, Frederic Barrat wrote: > > It's not clear why it makes sense for these to be empty. Either for the > > general idea of the "flush_all_mm()" API, or for your intended use by > > CXL. > > I was not too sure what to do for hash, but the idea is that the new > flush

Re: [PATCH v2 1/3] powerpc/mm: Export flush_all_mm()

2017-08-30 Thread Benjamin Herrenschmidt
On Wed, 2017-08-30 at 23:17 +1000, Michael Ellerman wrote: > It's not clear why it makes sense for these to be empty. Either for the > general idea of the "flush_all_mm()" API, or for your intended use by > CXL. Indeed. On hash we don't have a way to flush a PID out of the TLB, but you can flush t

Re: [PATCH v2 1/3] powerpc/mm: Export flush_all_mm()

2017-08-30 Thread Frederic Barrat
Le 30/08/2017 à 15:17, Michael Ellerman a écrit : Frederic Barrat writes: 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 flush

Re: [PATCH v2 1/3] powerpc/mm: Export flush_all_mm()

2017-08-30 Thread Michael Ellerman
Frederic Barrat writes: > 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. > >

[PATCH v2 1/3] powerpc/mm: Export flush_all_mm()

2017-08-30 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 ---