OSDN Git Service

powerpc: capture the PTE format changes in the dump pte report
authorRam Pai <linuxram@us.ibm.com>
Mon, 6 Nov 2017 08:50:52 +0000 (00:50 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 20 Dec 2017 07:57:26 +0000 (18:57 +1100)
The H_PAGE_F_SECOND,H_PAGE_F_GIX are not in the 64K main-PTE.
capture these changes in the dump pte report.

Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/dump_linuxpagetables.c

index c2e7dea..139dd19 100644 (file)
@@ -213,7 +213,7 @@ static const struct flag_info flag_array[] = {
                .val    = H_PAGE_4K_PFN,
                .set    = "4K_pfn",
        }, {
-#endif
+#else /* CONFIG_PPC_64K_PAGES */
                .mask   = H_PAGE_F_GIX,
                .val    = H_PAGE_F_GIX,
                .set    = "f_gix",
@@ -224,6 +224,7 @@ static const struct flag_info flag_array[] = {
                .val    = H_PAGE_F_SECOND,
                .set    = "f_second",
        }, {
+#endif /* CONFIG_PPC_64K_PAGES */
 #endif
                .mask   = _PAGE_SPECIAL,
                .val    = _PAGE_SPECIAL,