Re: [PATCH 11/17] powerpc/nohash32: set GUARDED attribute in the PMD directly

2018-05-10 Thread Michael Ellerman
Christophe Leroy writes: > diff --git a/arch/powerpc/mm/ioremap.c b/arch/powerpc/mm/ioremap.c > index 59be5dfcb3e9..b8c347077e02 100644 > --- a/arch/powerpc/mm/ioremap.c > +++ b/arch/powerpc/mm/ioremap.c > @@ -132,9 +132,14 @@ void __iomem * __ioremap_caller(phys_addr_t addr, > unsigned long siz

[PATCH 11/17] powerpc/nohash32: set GUARDED attribute in the PMD directly

2018-05-04 Thread Christophe Leroy
On the 8xx, the GUARDED attribute of the pages is managed in the L1 entry, therefore to avoid having to copy it into L1 entry at each TLB miss, we set it in the PMD. For this, we split the VM alloc space in two parts, one for VM alloc and non Guarded IO, and one for Guarded IO. Signed-off-by: Chr