ARM: Tidying up huge pages in 3.11-rc1
cover ARM: Tidying up huge pages in 3.11-rc1
Hello,
These two patches tidy up the huge page support in ARM that was introduced in 3.11-rc1.
The first patch removes some duplicate code from arch/arm/mm by referencing the mm/ functions introduced in my ARM64 huge page series.
Whilst the second patch removes a compiler warning in the DMA allocator that appears when huge pages are enabled.
Steve Capper (2):
ARM: mm: Remove general hugetlb code from ARM.
ARM: mm: Remove HugeTLB warning from dma-mapping.c
arch/arm/Kconfig | 3 +++ arch/arm/mm/dma-mapping.c | 3 --- arch/arm/mm/hugetlbpage.c | 43 ------------------------------------------- 3 files changed, 3 insertions(+), 46 deletions(-)
Signature · 1 line
1.8.1.4
PATCH 1/2 ARM: mm: Remove general hugetlb code from ARM.
General forms of huge_pte_alloc, huge_pte_offset and follow_huge_pmd are now available in mm/hugetlb.c.
This patch removes the ARM copies of these functions and activates the general ones by enabling:CONFIG_ARCH_WANT_GENERAL_HUGETLB
--- arch/arm/Kconfig | 3 +++ arch/arm/mm/hugetlbpage.c | 43 ------------------------------------------- 2 files changed, 3 insertions(+), 43 deletions(-)
arch/arm/Kconfig +3 -0
@@ -1757,6 +1757,9 @@ config HAVE_ARCH_TRANSPARENT_HUGEPAGE def_bool y depends on ARM_LPAE +config ARCH_WANT_GENERAL_HUGETLB + def_bool y + source "mm/Kconfig" config FORCE_MAX_ZONEORDER
arch/arm/mm/hugetlbpage.c +0 -43
55 lines not on this page · raw message
Signature · 1 line
1.8.1.4
PATCH 1/2 ARM: mm: Remove general hugetlb code from ARM.
Quoted 8 lines · Steve Capper
General forms of
huge_pte_alloc,huge_pte_offsetandfollow_huge_pmdare now available inmm/hugetlb.c.This patch removes the ARM copies of these functions and activates the general ones by enabling:
CONFIG_ARCH_WANT_GENERAL_HUGETLBSigned-off-by Steve Capper <[email protected]>
PATCH 1/2 ARM: mm: Remove general hugetlb code from ARM.
Quoted 11 lines · Catalin Marinas
Quoted 8 lines · Steve Capper
General forms of
huge_pte_alloc,huge_pte_offsetandfollow_huge_pmdare now available inmm/hugetlb.c.This patch removes the ARM copies of these functions and activates the general ones by enabling:
CONFIG_ARCH_WANT_GENERAL_HUGETLBSigned-off-by Steve Capper <[email protected]>Acked-by Catalin Marinas <[email protected]>
If no-one has any objections should I put this into Russell's patch system?
Cheers,
Signature · 1 line
Steve
PATCH 1/2 ARM: mm: Remove general hugetlb code from ARM.
Quoted 9 lines · Steve Capper
Quoted 8 lines · Catalin Marinas
Quoted 7 lines · Steve Capper
General forms of
huge_pte_alloc,huge_pte_offsetandfollow_huge_pmdare now available inmm/hugetlb.c.This patch removes the ARM copies of these functions and activates the general ones by enabling:
CONFIG_ARCH_WANT_GENERAL_HUGETLB
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Steve Capper <[email protected]>Acked-by Catalin Marinas <[email protected]>If no-one has any objections should I put this into Russell's patch system?
Yes please.
Will
PATCH 1/2 ARM: mm: Remove general hugetlb code from ARM.
Quoted 8 lines · Will Deacon
Quoted 3 lines · Steve Capper
If no-one has any objections should I put this into Russell's patch system?
Yes please.
Will
I've added it now, its reference is 7792/1.
Cheers,
Signature · 1 line
Steve
PATCH 2/2 ARM: mm: Remove HugeTLB warning from dma-mapping.c
In reply to Steve CapperThe coherant DMA allocator code contained a compile time warning when HugeTLB support was enabled. It stated that huge pages were not supported by the DMA allocator.
Apart from memory pressure, HugeTLB should not affect (or be affected by) the higher order pages operated on by the DMA allocator. Also, the user space mappings returned by arm_dma_mmap are done via remap_pfn_range, so the Transparent Huge Page daemon will leave them alone too.
This patch removes the huge page warning from dma-mapping.c.
--- arch/arm/mm/dma-mapping.c | 3 --- 1 file changed, 3 deletions(-)
arch/arm/mm/dma-mapping.c +0 -3
@@ -249,9 +249,6 @@ static void __dma_free_buffer(struct page *page, size_t size) }#ifdef CONFIG_MMU -#ifdef CONFIG_HUGETLB_PAGE -#warning ARM Coherent DMA allocator does not (yet) support huge TLB -#endif static void *__alloc_from_contiguous(struct device *dev, size_t size, pgprot_t prot, struct page **ret_page,
Signature · 1 line
1.8.1.4