Re: [PATCH for-4.8_set4 0/2] Segment table support
Benjamin Herrenschmidt writes: > On Wed, 2016-07-13 at 15:10 +0530, Aneesh Kumar K.V wrote: >> Hi, >> >> This series add support for ISA 3.0 memory segment table. >> >> Aneesh Kumar K.V (2): >> powerpc/mm: Switch user slb fault handling to translation enabled >> powerpc/mm: Support segment table for Power9 > > The segment table will only be used for the nest MMU, shouldn't we keep > that a separate path that we call explictly from fault interrupts > coming from NestMMU agents instead ? > I haven't looked at the Nest MMU use of this. This patch is looking at implementing the ISA 3.0 Segment table support for core. We determine whether cpu will support this mode by looking at ibm,pa-features bit value. If ibm,pa-features byte 40 bit 1 is not set, it indicates that Segment table support is not there and hence we fallback to other MMU mode supported by the CPU. Going foward we may want to look at the possibility of having Nest use segment table without core supporting them. But then that is not done as a part of this patch. -aneesh ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
Re: [PATCH for-4.8_set4 0/2] Segment table support
On Wed, 2016-07-13 at 15:10 +0530, Aneesh Kumar K.V wrote: > Hi, > > This series add support for ISA 3.0 memory segment table. > > Aneesh Kumar K.V (2): > powerpc/mm: Switch user slb fault handling to translation enabled > powerpc/mm: Support segment table for Power9 The segment table will only be used for the nest MMU, shouldn't we keep that a separate path that we call explictly from fault interrupts coming from NestMMU agents instead ? > Documentation/kernel-parameters.txt | 3 + > arch/powerpc/include/asm/book3s/64/hash.h | 10 + > arch/powerpc/include/asm/book3s/64/mmu-hash.h | 17 ++ > arch/powerpc/include/asm/book3s/64/mmu.h | 4 + > arch/powerpc/include/asm/mmu.h| 6 +- > arch/powerpc/include/asm/mmu_context.h| 5 +- > arch/powerpc/kernel/exceptions-64s.S | 55 +++- > arch/powerpc/kernel/prom.c| 13 +- > arch/powerpc/mm/hash_utils_64.c | 83 +- > arch/powerpc/mm/mmu_context_book3s64.c| 32 ++- > arch/powerpc/mm/slb.c | 359 > ++ > 11 files changed, 564 insertions(+), 23 deletions(-) > ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev