powerpc/mm: Use _PAGE_READ to indicate Read access
This splits the _PAGE_RW bit into _PAGE_READ and _PAGE_WRITE. It also removes the dependency on _PAGE_USER for implying read only. Few things to note here is that, we have read implied with write and execute permission. Hence we should always find _PAGE_READ set on hash pte fault. We still can't switch PROT_NONE to !(_PAGE_RWX). Auto numa depends on marking a prot none pte _PAGE_WRITE. (For more details look at b191f9b1 "mm: numa: preserve PTE write permissions across a NUMA hinting fault") Cc: Arnd Bergmann <arnd@arndb.de> Cc: Jeremy Kerr <jk@ozlabs.org> Cc: Frederic Barrat <fbarrat@linux.vnet.ibm.com> Acked-by:Ian Munsie <imunsie@au1.ibm.com> Signed-off-by:
Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au>
Showing
- arch/powerpc/include/asm/book3s/64/hash-64k.h 2 additions, 2 deletionsarch/powerpc/include/asm/book3s/64/hash-64k.h
- arch/powerpc/include/asm/book3s/64/hash.h 21 additions, 14 deletionsarch/powerpc/include/asm/book3s/64/hash.h
- arch/powerpc/include/asm/pte-common.h 5 additions, 0 deletionsarch/powerpc/include/asm/pte-common.h
- arch/powerpc/mm/hash64_4k.c 1 addition, 1 deletionarch/powerpc/mm/hash64_4k.c
- arch/powerpc/mm/hash64_64k.c 2 additions, 2 deletionsarch/powerpc/mm/hash64_64k.c
- arch/powerpc/mm/hash_utils_64.c 5 additions, 4 deletionsarch/powerpc/mm/hash_utils_64.c
- arch/powerpc/mm/hugepage-hash64.c 1 addition, 1 deletionarch/powerpc/mm/hugepage-hash64.c
- arch/powerpc/mm/hugetlbpage-hash64.c 1 addition, 1 deletionarch/powerpc/mm/hugetlbpage-hash64.c
- arch/powerpc/mm/hugetlbpage.c 2 additions, 2 deletionsarch/powerpc/mm/hugetlbpage.c
- arch/powerpc/mm/pgtable.c 2 additions, 2 deletionsarch/powerpc/mm/pgtable.c
- arch/powerpc/mm/pgtable_64.c 2 additions, 3 deletionsarch/powerpc/mm/pgtable_64.c
- arch/powerpc/platforms/cell/spu_base.c 1 addition, 1 deletionarch/powerpc/platforms/cell/spu_base.c
- arch/powerpc/platforms/cell/spufs/fault.c 2 additions, 2 deletionsarch/powerpc/platforms/cell/spufs/fault.c
- drivers/misc/cxl/fault.c 2 additions, 2 deletionsdrivers/misc/cxl/fault.c
Loading
Please register or sign in to comment