Re: [PATCH 2/2] cxl: Enable global TLBIs for cxl contexts

2017-08-28 Thread Benjamin Herrenschmidt
On Mon, 2017-08-28 at 19:37 +0200, Frederic Barrat wrote: > Good point, I had missed the change. It looks like I now need to call > radix__flush_all_mm(), which I would have to export outside of > tlb-radix.c first. > > Any problem with having a flush_all_mm() to complement a flush_tlb_mm()? >

Re: [PATCH 2/2] cxl: Enable global TLBIs for cxl contexts

2017-08-28 Thread Frederic Barrat
Le 28/08/2017 à 14:03, Benjamin Herrenschmidt a écrit : On Mon, 2017-08-28 at 10:47 +0200, Frederic Barrat wrote: Signed-off-by: Frederic Barrat diff --git a/arch/powerpc/include/asm/mmu_context.h b/arch/powerpc/include/asm/mmu_context.h index 309592589e30..6447c0df7ec4 100644 --- a/

Re: [PATCH 2/2] cxl: Enable global TLBIs for cxl contexts

2017-08-28 Thread Benjamin Herrenschmidt
On Mon, 2017-08-28 at 10:47 +0200, Frederic Barrat wrote: > > > Signed-off-by: Frederic Barrat > diff --git a/arch/powerpc/include/asm/mmu_context.h > b/arch/powerpc/include/asm/mmu_context.h > index 309592589e30..6447c0df7ec4 100644 > --- a/arch/powerpc/include/asm/mmu_context.h > +++ b/ar

[PATCH 2/2] cxl: Enable global TLBIs for cxl contexts

2017-08-28 Thread Frederic Barrat
The PSL and nMMU need to see all TLB invalidations for the memory contexts used on the adapter. For the hash memory model, it is done by making all TLBIs global as soon as the cxl driver is in use. For radix, we need something similar, but we can refine and only convert to global the invalidations