[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1405452884-25688-10-git-send-email-toshi.kani@hp.com>
Date: Tue, 15 Jul 2014 13:34:42 -0600
From: Toshi Kani <toshi.kani@...com>
To: hpa@...or.com, tglx@...utronix.de, mingo@...hat.com,
akpm@...ux-foundation.org, arnd@...db.de, konrad.wilk@...cle.com,
plagnioj@...osoft.com, tomi.valkeinen@...com
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
stefan.bader@...onical.com, luto@...capital.net, airlied@...il.com,
bp@...en8.de, Toshi Kani <toshi.kani@...com>
Subject: [RFC PATCH 9/11] x86, efi: Cleanup PCD bit manipulation in EFI
This patch cleans up the PCD bit manipulation in EFI virtual mapping,
and uses _PAGE_CACHE_<type> macros, instead. This keeps the efi code
independent from the PAT slot assignment.
Signed-off-by: Toshi Kani <toshi.kani@...com>
---
arch/x86/platform/efi/efi_64.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/platform/efi/efi_64.c b/arch/x86/platform/efi/efi_64.c
index 290d397..55c6e77 100644
--- a/arch/x86/platform/efi/efi_64.c
+++ b/arch/x86/platform/efi/efi_64.c
@@ -202,10 +202,10 @@ void efi_cleanup_page_tables(unsigned long pa_memmap, unsigned num_pages)
static void __init __map_region(efi_memory_desc_t *md, u64 va)
{
pgd_t *pgd = (pgd_t *)__va(real_mode_header->trampoline_pgd);
- unsigned long pf = 0;
+ unsigned long pf = _PAGE_CACHE_WB;
if (!(md->attribute & EFI_MEMORY_WB))
- pf |= _PAGE_PCD;
+ pf = _PAGE_CACHE_UC_MINUS;
if (kernel_map_pages_in_pgd(pgd, md->phys_addr, va, md->num_pages, pf))
pr_warn("Error mapping PA 0x%llx -> VA 0x%llx!\n",
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists