[PATCH 0/2] x86, mm: Fix PAT bit handling of large pages

From: Toshi Kani
Date: Thu Jul 09 2015 - 13:05:01 EST


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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/