Skip to contentSkip to conversation

x86-memblock-set-current-limit-to-max-low-memory-address.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 22, 2014 x86

lore
Share & tools
lore
#0 lore raw

Subject: [merged] x86-memblock-set-current-limit-to-max-low-memory-address.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:44 -0800

The patch titled
Subject: x86: memblock: set current limit to max low memory address
has been removed from the -mm tree. Its filename was
x86-memblock-set-current-limit-to-max-low-memory-address.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Santosh Shilimkar <[email protected]>
Subject: x86: memblock: set current limit to max low memory address

The memblock current limit value is used to limit early boot memory allocations below max low memory address by default, as the kernel can access only to the low memory.

Hence, set memblock current limit value to the max mapped low memory address instead of max mapped memory address.

Cc Tejun Heo <[email protected]>
Cc Grygorii Strashko <[email protected]>
Cc Yinghai Lu <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Christoph Lameter <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc H. Peter Anvin <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc KAMEZAWA Hiroyuki <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Paul Walmsley <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Russell King <[email protected]>
Cc Tony Lindgren <[email protected]>

---

 arch/x86/include/asm/page_types.h |    4 ++--
 arch/x86/kernel/setup.c           |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
arch/x86/include/asm/page_types.h renamed from arch/x86/include/asm/page_types.h~x86-memblock-set-current-limit-to-max-low-memory-address +2 -2
diff -puN arch/x86/include/asm/page_types.h~x86-memblock-set-current-limit-to-max-low-memory-address arch/x86/include/asm/page_types.h
@@ -51,9 +51,9 @@ extern int devmem_is_allowed(unsigned lo
 extern unsigned long max_low_pfn_mapped;
 extern unsigned long max_pfn_mapped;
 
-static inline phys_addr_t get_max_mapped(void)
+static inline phys_addr_t get_max_low_mapped(void)
 {
-	return (phys_addr_t)max_pfn_mapped << PAGE_SHIFT;
+	return (phys_addr_t)max_low_pfn_mapped << PAGE_SHIFT;
 }
 
 bool pfn_range_is_mapped(unsigned long start_pfn, unsigned long end_pfn);
arch/x86/kernel/setup.c renamed from arch/x86/kernel/setup.c~x86-memblock-set-current-limit-to-max-low-memory-address +1 -1
diff -puN arch/x86/kernel/setup.c~x86-memblock-set-current-limit-to-max-low-memory-address arch/x86/kernel/setup.c
@@ -1119,7 +1119,7 @@ void __init setup_arch(char **cmdline_p)
 
 	setup_real_mode();
 
-	memblock_set_current_limit(get_max_mapped());
+	memblock_set_current_limit(get_max_low_mapped());
 	dma_contiguous_reserve(0);
 
 	/*

_

Patches currently in -mm which might be from [email protected] are

origin.patch
mm-nobootmem-free_all_bootmem-again.patch
linux-next.patch