The PAT bit gets relocated to bit 12 when PUD and PMD mappings are used. This bit 12, however, is not covered by PTE_FLAGS_MASK, which is corrently used for masking the flag bits for all cases. Patch 1/2 fixes pud_flags() and pmd_flags() to handle the PAT bit when PUD and PMD mappings are used. Patch 2/2 fixes /sys/kernel/debug/kernel_page_tables to show the PAT bit properly. Note, the PAT bit is first enabled in 4.2-rc1 with WT mappings. --- Toshi Kani (2): 1/2 x86: Fix pXd_flags() to handle _PAGE_PAT_LARGE 2/2 x86, mm: Fix page table dump to show PAT bit --- arch/x86/include/asm/pgtable_types.h | 16 ++++++++++++--- arch/x86/mm/dump_pagetables.c | 39 +++++++++++++++++++----------------- 2 files changed, 34 insertions(+), 21 deletions(-) -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>