ARM: mm: Transparent huge page support for non-LPAE systems.
RFC 2/2 ARM: mm: Transparent huge page support for non-LPAE systems.
Much of the required code for THP has been implemented in the earlier non-LPAE HugeTLB patch.
One more domain bit is used (to store whether or not the THP is splitting).
Some THP helper functions are defined; and we have to re-define pmd_page such that it distinguishes between page tables and sections.
Signed-off-by Steve Capper <[email protected]>
--- arch/arm/Kconfig | 2 +- arch/arm/include/asm/pgtable-2level.h | 47 +++++++++++++++++++++++++++++++++++ arch/arm/include/asm/pgtable-3level.h | 1 + arch/arm/include/asm/pgtable.h | 2 -- 4 files changed, 49 insertions(+), 3 deletions(-)
arch/arm/Kconfig +1 -1
@@ -1755,7 +1755,7 @@ config SYS_SUPPORTS_HUGETLBFS config HAVE_ARCH_TRANSPARENT_HUGEPAGE def_bool y - depends on ARM_LPAE + depends on SYS_SUPPORTS_HUGETLBFS config ARCH_WANT_GENERAL_HUGETLB def_bool y
arch/arm/include/asm/pgtable-2level.h +47 -0
59 lines not on this page · raw message
arch/arm/include/asm/pgtable-3level.h +1 -0
@@ -234,6 +234,7 @@ PMD_BIT_FUNC(mkyoung, |= PMD_SECT_AF);/* represent a notpresent pmd by zero, this is used by pmdp_invalidate */ #define pmd_mknotpresent (pmd) (__pmd(0)) +#define pmd_page (pmd) pfn_to_page(__phys_to_pfn(pmd_val(pmd) & PHYS_MASK))static inline pmd_t pmd_modify (pmd_t pmd,pgprot_t newprot) {
arch/arm/include/asm/pgtable.h +0 -2
@@ -189,8 +189,6 @@ static inline pte_t *pmd_page_vaddr(pmd_t pmd)return __va (pmd_val (pmd) &PHYS_MASK & (s32 )PAGE_MASK ); } -#define pmd_page (pmd) pfn_to_page(__phys_to_pfn(pmd_val(pmd) & PHYS_MASK)) -#ifndef CONFIG_HIGHPTE #define __pte_map (pmd) pmd_page_vaddr(*(pmd))#define __pte_unmap (pte) do { } while (0)
Signature · 1 line
1.8.1.4