mm-memblock-add-support-for-excluded-memory-areas.patch removed from -mm tree
[email protected]
maintainerSubject: [to-be-updated] mm-memblock-add-support-for-excluded-memory-areas.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]
From: [email protected]
Date: Tue, 14 Jan 2014 14:57:22 -0800
The patch titled
Subject: mm/memblock: Add support for excluded memory areas
has been removed from the -mm tree. Its filename was
mm-memblock-add-support-for-excluded-memory-areas.patch
This patch was dropped because an updated version will be merged
------------------------------------------------------
From: Philipp Hachtmann <[email protected]>
Subject: mm/memblock: Add support for excluded memory areas
While further working on the s390 migration to memblock it is desirable to have memblock support unmapped (i.e. completely forgotten and unused) memory areas. The usual way of just forgetting about them by means of truncating the memblocks does not work for us because we still need the information about the real full memory structure at a later time.
Add a new memory state "nomap" to memblock. This can be used to truncate the usable memory in the system without forgetting about what is really installed.
---
arch/s390/Kconfig | 1 include/linux/memblock.h | 50 +++++-- mm/Kconfig | 3 mm/memblock.c | 263 ++++++++++++++++++++++++++++--------- mm/nobootmem.c | 9 + 5 files changed, 255 insertions(+), 71 deletions(-)
arch/s390/Kconfig renamed from arch/s390/Kconfig~mm-memblock-add-support-for-excluded-memory-areas +1 -0
@@ -61,6 +61,7 @@ config PCI_QUIRKS config S390 def_bool y select ARCH_DISCARD_MEMBLOCK + select ARCH_MEMBLOCK_NOMAP select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE select ARCH_HAS_DEBUG_STRICT_USER_COPY_CHECKS select ARCH_HAVE_NMI_SAFE_CMPXCHG
include/linux/memblock.h renamed from include/linux/memblock.h~mm-memblock-add-support-for-excluded-memory-areas +42 -8
89 lines not on this page · raw message
mm/Kconfig renamed from mm/Kconfig~mm-memblock-add-support-for-excluded-memory-areas +3 -0
@@ -137,6 +137,9 @@ config HAVE_MEMBLOCK_NODE_MAP config ARCH_DISCARD_MEMBLOCK boolean +config ARCH_MEMBLOCK_NOMAP + boolean + config NO_BOOTMEM boolean
mm/memblock.c renamed from mm/memblock.c~mm-memblock-add-support-for-excluded-memory-areas +200 -63
386 lines not on this page · raw message
mm/nobootmem.c renamed from mm/nobootmem.c~mm-memblock-add-support-for-excluded-memory-areas +9 -0
@@ -133,6 +133,15 @@ static unsigned long __init free_low_mem size =get_allocated_memblock_memory_regions_info (&start);if (size) count +=__free_memory_core (start, start + size); + +#ifdef CONFIG_ARCH_MEMBLOCK_NOMAP + +/* Free memblock.nomap array if it was allocated */ + size =get_allocated_memblock_memory_regions_info (&start); +if (size) + count +=__free_memory_core (start, start + size); + +#endif #endif return count;
_
Patches currently in -mm which might be from [email protected] are
mm-nobootmemc-add-return-value-check-in-__alloc_memory_core_early.patch mm-free-memblockmemory-in-free_all_bootmem.patch mm-free-memblockmemory-in-free_all_bootmem-fix.patch mm-nobootmem-free_all_bootmem-again.patch