linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] x86, mm: Fix PAT bit handling of large pages
@ 2015-07-09 17:03 Toshi Kani
  2015-07-09 17:03 ` [PATCH 1/2] x86: Fix pXd_flags() to handle _PAGE_PAT_LARGE Toshi Kani
  2015-07-09 17:03 ` [PATCH 2/2] x86, mm: Fix page table dump to show PAT bit Toshi Kani
  0 siblings, 2 replies; 5+ messages in thread
From: Toshi Kani @ 2015-07-09 17:03 UTC (permalink / raw)
  To: hpa, tglx, mingo
  Cc: akpm, bp, linux-mm, linux-kernel, x86, jgross, konrad.wilk,
	elliott

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@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-07-10 21:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-09 17:03 [PATCH 0/2] x86, mm: Fix PAT bit handling of large pages Toshi Kani
2015-07-09 17:03 ` [PATCH 1/2] x86: Fix pXd_flags() to handle _PAGE_PAT_LARGE Toshi Kani
2015-07-10  3:57   ` Juergen Gross
2015-07-10 21:15     ` Toshi Kani
2015-07-09 17:03 ` [PATCH 2/2] x86, mm: Fix page table dump to show PAT bit Toshi Kani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).