]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
powerpc/mm/books3s: Add new pte bit to mark pte temporarily invalid.
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Tue, 16 Oct 2018 16:11:08 +0000 (12:11 -0400)
committerKhalid Elmously <khalid.elmously@canonical.com>
Tue, 23 Oct 2018 06:45:58 +0000 (08:45 +0200)
commit49c6e7a9abdfa4a9795d3c3c6f8a21bd76c0c026
tree101a071d8f24a5377acdc6e4f514e32f1ffd756a
parentb6e320286ee2bfc50ed4e03d28a51282c8bb5ae9
powerpc/mm/books3s: Add new pte bit to mark pte temporarily invalid.

BugLink: https://bugs.launchpad.net/bugs/1792195
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>
(cherry picked from commit bd0dbb73e01306a1060e56f81e5fe287be936477)
Signed-off-by: Joseph Salisbury <joseph.salisbury@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/powerpc/include/asm/book3s/64/pgtable.h