Skip to content

Commit

Permalink
powerpc/book3s64: fix dump_linuxpagetables "present" flag
Browse files Browse the repository at this point in the history
Since commit bd0dbb7 ("powerpc/mm/books3s: Add new pte bit to
mark pte temporarily invalid."), _PAGE_PRESENT doesn't mean exactly
that a page is present. A page is also considered preset when
_PAGE_INVALID is set.

This patch changes the meaning of "present" and adds a status "valid"
associated to the _PAGE_PRESENT flag.

Fixes: bd0dbb7 ("powerpc/mm/books3s: Add new pte bit to mark pte temporarily invalid.")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Christophe Leroy authored and Michael Ellerman committed Oct 20, 2018
1 parent c6c26fb commit 3ff38e1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions arch/powerpc/mm/dump_linuxpagetables-book3s64.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,13 @@ static const struct flag_info flag_array[] = {
}, {
.mask = _PAGE_PRESENT,
.val = _PAGE_PRESENT,
.set = "present",
.clear = " ",
.set = "valid",
.clear = " ",
}, {
.mask = _PAGE_PRESENT | _PAGE_INVALID,
.val = 0,
.set = " ",
.clear = "present",
}, {
.mask = H_PAGE_HASHPTE,
.val = H_PAGE_HASHPTE,
Expand Down

0 comments on commit 3ff38e1

Please sign in to comment.