[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080116221504.BA4DD150C8@wotan.suse.de>
Date: Wed, 16 Jan 2008 23:15:04 +0100 (CET)
From: Andi Kleen <ak@...e.de>
To: linux-kernel@...r.kernel.org, mingo@...e.hu, tglx@...utronix.de,
jbeulich@...ell.com, venkatesh.pallipadi@...el.com
Subject: [PATCH] [6/36] CPA Handle 4K split pages at boot on 64bit
Port the code to check for already split 4K pages at boot over from
32bit to 64bit.
Note: should be probably put before PAT patches to avoid bisect failures later
Signed-off-by: Andi Kleen <ak@...e.de>
---
arch/x86/mm/pageattr_64.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
Index: linux/arch/x86/mm/pageattr_64.c
===================================================================
--- linux.orig/arch/x86/mm/pageattr_64.c
+++ linux/arch/x86/mm/pageattr_64.c
@@ -160,11 +160,8 @@ __change_page_attr(unsigned long address
} else
BUG();
- /* on x86-64 the direct mapping set at boot is not using 4k pages */
- BUG_ON(PageReserved(kpte_page));
-
save_page(kpte_page);
- if (page_private(kpte_page) == 0)
+ if (!PageReserved(kpte_page) && page_private(kpte_page) == 0)
revert_page(address, ref_prot);
return 0;
}
@@ -243,6 +240,8 @@ void global_flush_tlb(void)
list_for_each_entry_safe(pg, next, &l, lru) {
list_del(&pg->lru);
+ if (PageReserved(pg))
+ continue;
clear_bit(PG_arch_1, &pg->flags);
if (page_private(pg) != 0)
continue;
--
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