mm-memblock-add-memblock-memory-allocation-apis.patch removed from -mm tree
[email protected]
maintainerSubject: [merged] mm-memblock-add-memblock-memory-allocation-apis.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 22 Jan 2014 12:13:58 -0800
The patch titled
Subject: mm/memblock: add memblock memory allocation apis
has been removed from the -mm tree. Its filename was
mm-memblock-add-memblock-memory-allocation-apis.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Santosh Shilimkar <[email protected]>
Subject: mm/memblock: add memblock memory allocation apis
Introduce memblock memory allocation APIs which allow to support PAE or LPAE extension on 32 bits archs where the physical memory start address can be beyond 4GB. In such cases, existing bootmem APIs which operate on 32 bit addresses won't work and needs memblock layer which operates on 64 bit addresses.
So we add equivalent APIs so that we can replace usage of bootmem with memblock interfaces. Architectures already converted to NO_BOOTMEM use these new memblock interfaces. The architectures which are still not converted to NO_BOOTMEM continue to function as is because we still maintain the fal lback option of bootmem back-end supporting these new interfaces. So no functional change as such.
In long run, once all the architectures moves to NO_BOOTMEM, we can get rid of bootmem layer completely. This is one step to remove the core code dependency with bootmem and also gives path for architectures to move away from bootmem.
The proposed interface will became active if both CONFIG_HAVE_MEMBLOCK and CONFIG_NO_BOOTMEM are specified by arch. In case !CONFIG_NO_BOOTMEM, the memblock() wrappers will fallback to the existing bootmem apis so that arch's not converted to NO_BOOTMEM continue to work as is.
The meaning of MEMBLOCK_ALLOC_ACCESSIBLE and MEMBLOCK_ALLOC_ANYWHERE is kept same.
---
arch/arm/include/asm/dma.h | 4 include/linux/bootmem.h | 152 +++++++++++++++++++++++++ mm/memblock.c | 209 ++++++++++++++++++++++++++++++++++- 3 files changed, 361 insertions(+), 4 deletions(-)
arch/arm/include/asm/dma.h renamed from arch/arm/include/asm/dma.h~mm-memblock-add-memblock-memory-allocation-apis +2 -2
@@ -8,8 +8,8 @@#define MAX_DMA_ADDRESS 0xffffffffUL#else #define MAX_DMA_ADDRESS ({ \ - extern unsigned long arm_dma_zone_size; \ - arm_dma_zone_size ? \ + extern phys_addr_t arm_dma_zone_size; \ + arm_dma_zone_size && arm_dma_zone_size < (0x10000000 - PAGE_OFFSET) ? \ (PAGE_OFFSET + arm_dma_zone_size) : 0xffffffffUL; })#endif
include/linux/bootmem.h renamed from include/linux/bootmem.h~mm-memblock-add-memblock-memory-allocation-apis +152 -0
164 lines not on this page · raw message
mm/memblock.c renamed from mm/memblock.c~mm-memblock-add-memblock-memory-allocation-apis +207 -2
233 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
origin.patch
mm-nobootmem-free_all_bootmem-again.patch
linux-next.patch