vmalloc: restore 240mb memory space [2/3]
authorTao Zeng <tao.zeng@amlogic.com>
Thu, 16 May 2019 09:27:30 +0000 (17:27 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Sat, 18 May 2019 16:03:00 +0000 (09:03 -0700)
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>
arch/arm/Kconfig
arch/arm/configs/meson64_a32_defconfig
arch/arm/mm/mmu.c

index d74f489..a55b22a 100644 (file)
@@ -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
 
index 365651d..fe16d1a 100644 (file)
@@ -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
index 8b20f8b..c7e41d4 100644 (file)
@@ -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'