author | Tao Zeng <tao.zeng@amlogic.com> | 2019-05-16 09:27:30 (GMT) |
---|---|---|
committer | Jianxin Pan <jianxin.pan@amlogic.com> | 2019-05-18 16:03:00 (GMT) |
commit | ff000fbdb1bff34dbc00f3a77ce86c048c398316 (patch) | |
tree | 4bb8730c5cff971ee4b9fd9449d2b19701e79874 | |
parent | 2767e41badff6adaeea04447d5efbf2db2cc35dc (diff) | |
download | common-ff000fbdb1bff34dbc00f3a77ce86c048c398316.zip common-ff000fbdb1bff34dbc00f3a77ce86c048c398316.tar.gz common-ff000fbdb1bff34dbc00f3a77ce86c048c398316.tar.bz2 |
vmalloc: restore 240mb memory space [2/3]
PD#SWPL-8572
Problem:
To avoid vmalloc address space not enough caused by binder, in
following change we have increased 128mb vmalloc address space:
http://scgit.amlogic.com:8080/#/c/72977/
Solution:
Since we have back porting binder optimize from kernel 4.19 in
change:
http://scgit.amlogic.com:8080/#/c/73975/
So we can restore 240mb memory space for vmalloc
Verify:
x301
Change-Id: If16e83eadb9ab40bb7e0e2ca168dc604420cdac7
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
-rw-r--r-- | arch/arm/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/configs/meson64_a32_defconfig | 1 | ||||
-rw-r--r-- | arch/arm/mm/mmu.c | 5 |
3 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index d74f489..a55b22a 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1445,7 +1445,7 @@ config PAGE_OFFSET default PHYS_OFFSET if !MMU default 0x40000000 if VMSPLIT_1G default 0x80000000 if VMSPLIT_2G - default 0xB8000000 if VMSPLIT_3G_OPT + default 0xB0000000 if VMSPLIT_3G_OPT default 0xD0000000 if AMLOGIC_KASAN32 default 0xC0000000 diff --git a/arch/arm/configs/meson64_a32_defconfig b/arch/arm/configs/meson64_a32_defconfig index 365651d..fe16d1a 100644 --- a/arch/arm/configs/meson64_a32_defconfig +++ b/arch/arm/configs/meson64_a32_defconfig @@ -43,7 +43,6 @@ CONFIG_PCI=y CONFIG_PCIE_DW_PLAT=y CONFIG_SMP=y CONFIG_SCHED_MC=y -CONFIG_VMSPLIT_3G_OPT=y CONFIG_NR_CPUS=8 CONFIG_PREEMPT=y CONFIG_HZ_250=y diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 8b20f8b..c7e41d4 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -1129,13 +1129,8 @@ void __init debug_ll_io_init(void) #endif #ifndef CONFIG_AMLOGIC_KASAN32 -#ifdef CONFIG_AMLOGIC_MODIFY -static void * __initdata vmalloc_min = - (void *)(VMALLOC_END - (368 << 20) - VMALLOC_OFFSET); -#else static void * __initdata vmalloc_min = (void *)(VMALLOC_END - (240 << 20) - VMALLOC_OFFSET); -#endif /* * vmalloc=size forces the vmalloc area to be exactly 'size' |