Commit Graph

10 Commits

Author SHA1 Message Date
Jianxiong Pan 52549b9184 mm: set pagetrace y defalut no gki20. [1/1]
PD#SWPL-146738

Problem:
pagetrace too late in suspend phase.

Solution:
set pagetrace y default no gki20.

Verify:
local.

Change-Id: I258abab43c336e3de2a4190dce365705d2860f34
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-04 04:37:18 -07:00
Jianxiong Pan 455d10eff1 zapper: disable hdmitx20 and mbox. [1/1]
PD#SWPL-126879

Problem:
s1a memory optimization.

Solution:
disable hdmitx20 and mbox.

Verify:
s1a.

Test:
s1a.

Change-Id: I317718936fdc14ec3b30faae7672fea66ac4541c
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-03 04:25:04 -07:00
Jianxiong Pan 5f372f4ec7 mm: not get page trace in dmc. [1/1]
PD#SWPL-137426

Problem:
print 0x0 in dmc monitor.

Solution:
update the pagetrace in cma alloc.

Verify:
local.

Change-Id: I417cb523bb7f7b82a08db43cb51503782cd34896
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-08-24 03:54:26 -07:00
Jianxiong Pan a783454143 mm: free reserved memory in ko. [1/1]
PD#SWPL-114938

Problem:
need free reserved memory in ko.

Solution:
export the free_reserved_mem func.

Verify:
t5m_ay301.

Change-Id: Ib086317c00ece3f6017bb3b3e0454915f924b28c
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-03-14 04:16:28 -07:00
yuhua.lin 7401c0a463 osd: use reserved memory [1/1]
PD#SWPL-97910

Problem:
use reserved memory

Solution:
complete it

Verify:
t3

Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
Change-Id: I1ce6861930bd80a5a439b723fcfb96e675be4b78
2022-12-02 15:05:56 +08:00
Jianxiong Pan c1916ee5d3 mm: move the config to meet the gki request. [3/3]
PD#SWPL-94445

Problem:
gki break.

Solution:
move the config to meet the gki request.

Verify:
build pass.

Change-Id: I6b878a5d8fc10317634143b815a69b2206753033
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-10-01 00:57:49 +08:00
Jianxin Pan 65e4de508c mm: fix builderr when disable kmemleak [1/1]
PD#SWPL-83742

Problem:
Build fail when disable KMEMLEAK

Solution:
wrap kmemleak_release with CONFIG

Verify:
build pass

Change-Id: I7e78fdb8f546745038ff6dadbcaf9334200a4939
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2022-09-20 04:29:30 -07:00
Jianxiong Pan dde860a0df mm: fix slab stat error. [1/2]
PD#SWPL-92714

Problem:
Slab:              54672 kB
SReclaimable:      54672 kB
SUnreclaim:            0 kB

Solution:
correct the statistic of slab.

Verify:
sc2_ah212.

Change-Id: I299807e32a4900dc1e12d563cfa0022d46aa8d2a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-09-08 06:10:58 -07:00
Jianxiong Pan 71008eab74 mm: save wasted memory by slab. [2/2]
PD#SWPL-73422

Problem:
When driver/kernel call kmalloc with large size, memory may waste
if size is not equal to 2^n. For example, driver call kmalloc with
size 129KB, kmalloc will allocate a 256KB memory block to caller.
Then 127kb memory will be wasted if this caller do not free it.

Solution:
Free tail of slab memory if size is not match to 2^n. This change
can save about 900KB memory after boot, and more than 100KB durning
runtime.

Verify:
local.

Change-Id: I19cfbdddc92b1c2050cbc17ea65feb4b01f0445d
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-03-06 18:36:14 -07:00
Jianxiong Pan 5ff1e95368 mm: forward memory reclaim process. [1/2]
PD#SWPL-73189

Problem:
memory reclaim process is usually do when first allocate failed from buddy.
This will cause some process crash especially when memory is low, because
there is not enough time to do reclaim process.

Solution:
try to wake up kswapd process to reclaim memory if free memory is less
than high water mark. After apply this change, free memory is usually
keeps high than high_water mark.

Verify:
local.

Change-Id: I9c5f90bba778aacfe21aacb332ed19ad162b048b
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-02-27 23:18:43 -07:00