diff options
author | Toshi Kani <toshi.kani@hpe.com> | 2015-09-17 12:24:19 -0600 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-09-22 21:27:32 +0200 |
commit | da25e628c4c231a281b1c1de3168a36ab9bfe473 (patch) | |
tree | 04c1ea8e88dc523fcce73ca4d8ae4358e8a818c1 /Documentation/memory-devices | |
parent | bbac8c6deadab921f4b7d00ce675ffa4f358ec7f (diff) | |
download | talos-obmc-linux-da25e628c4c231a281b1c1de3168a36ab9bfe473.tar.gz talos-obmc-linux-da25e628c4c231a281b1c1de3168a36ab9bfe473.zip |
x86/mm: Fix page table dump to show PAT bit
/sys/kernel/debug/kernel_page_tables does not show the PAT bit for
PUD/PMD mappings. This is because walk_pud_level(), walk_pmd_level()
and note_page() mask the flags with PTE_FLAGS_MASK, which does not
cover their PAT bit, _PAGE_PAT_LARGE.
Fix it by replacing the use of PTE_FLAGS_MASK with p?d_flags(),
which masks the flags properly.
Also change to show the PAT bit as "PAT" to be consistent with
other bits.
Reported-by: Robert Elliott <elliott@hpe.com>
Signed-off-by: Toshi Kani <toshi.kani@hpe.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Juergen Gross <jgross@suse.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Konrad Wilk <konrad.wilk@oracle.com>
Cc: Robert Elliot <elliott@hpe.com>
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/1442514264-12475-7-git-send-email-toshi.kani@hpe.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'Documentation/memory-devices')
0 files changed, 0 insertions, 0 deletions