提交 70538eaa 编写于 作者: O Oliver O'Halloran 提交者: Michael Ellerman

powerpc/mm: Fix missing _PAGE_NON_IDEMPOTENT in pgtable dump

On Book3s we have two PTE flags used to mark cache-inhibited mappings:
_PAGE_TOLERANT and _PAGE_NON_IDEMPOTENT. Currently the kernel page table dumper
only looks at the generic _PAGE_NO_CACHE which is defined to be _PAGE_TOLERANT.
This patch modifies the dumper so both flags are shown in the dump.

Fixes: 8eb07b18 ("powerpc/mm: Dump linux pagetables")
Signed-off-by: NOliver O'Halloran <oohall@gmail.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 9c355917
...@@ -154,11 +154,24 @@ static const struct flag_info flag_array[] = { ...@@ -154,11 +154,24 @@ static const struct flag_info flag_array[] = {
.clear = " ", .clear = " ",
}, { }, {
#endif #endif
#ifndef CONFIG_PPC_BOOK3S_64
.mask = _PAGE_NO_CACHE, .mask = _PAGE_NO_CACHE,
.val = _PAGE_NO_CACHE, .val = _PAGE_NO_CACHE,
.set = "no cache", .set = "no cache",
.clear = " ", .clear = " ",
}, { }, {
#else
.mask = _PAGE_NON_IDEMPOTENT,
.val = _PAGE_NON_IDEMPOTENT,
.set = "non-idempotent",
.clear = " ",
}, {
.mask = _PAGE_TOLERANT,
.val = _PAGE_TOLERANT,
.set = "tolerant",
.clear = " ",
}, {
#endif
#ifdef CONFIG_PPC_BOOK3S_64 #ifdef CONFIG_PPC_BOOK3S_64
.mask = H_PAGE_BUSY, .mask = H_PAGE_BUSY,
.val = H_PAGE_BUSY, .val = H_PAGE_BUSY,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册