powerpc/mm/books3s: Add new pte bit to mark pte temporarily invalid.
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Wed, 22 Aug 2018 17:16:04 +0000 (22:46 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Aug 2018 02:16:01 +0000 (12:16 +1000)
commitbd0dbb73e01306a1060e56f81e5fe287be936477
treec9fca4a21b66504708a415be3f63b5a4d03573a6
parent810e9f86f36f59f1d6f6710220c49afe0c705f38
powerpc/mm/books3s: Add new pte bit to mark pte temporarily invalid.

When splitting a huge pmd pte, we need to mark the pmd entry invalid. We
can do that by clearing _PAGE_PRESENT bit. But then that will be taken as a
swap pte. In order to differentiate between the two use a software pte bit
when invalidating.

For regular pte, due to bd5050e38aec ("powerpc/mm/radix: Change pte relax
sequence to handle nest MMU hang") we need to mark the pte entry invalid when
relaxing access permission. Instead of marking pte_none which can result in
different page table walk routines possibly skipping this pte entry, invalidate
it but still keep it marked present.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/pgtable.h