Commit Graph

10 Commits

Author SHA1 Message Date
Jianxiong Pan f2bee04a0a mm: mem debug modularity. [1/1]
PD#SWPL-112188

Problem:
gki2.0 support.

Solution:
mem debug modularity.

Verify:
adt4.

Change-Id: I91b9352a60c8afcd78bb4ff4ec95e8629ed27212
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-07-17 22:56:16 -07:00
qiankun.wang 23002feac1 mem_debug: The printk is missing some content [1/1]
PD#SWPL-113705

Problem:
In the boot log, characters are missing when printing
due to long strings

Solution:
Print the string in some parts.

Verify:
SC2

Change-Id: I2989ac089598d3f2b97eaa98fcf923ff4c7963c8
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-03-16 02:22:13 -07:00
Jianxiong Pan f122912928 mm: pin locked file after fault. [2/2]
PD#SWPL-99264

Problem:
print the catual mlock size via page fault.

Solution:
cat /proc/mem_debug

Verify:
s4_aq222.

Change-Id: I2ed3b97d12cab6cfd8c72a86cd0249e3a2462e99
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-12-04 18:20:41 -07:00
Lei Zhang b1e8999415 riscv: initial commit for C3 PXP [3/3]
PD#SWPL-94239

Problem:
initial commit for C3 PXP

Solution:
initial commit for C3 PXP

Verify:
on PXP

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: I9ae658e27f152702d221e29ec6ed9283acb1b7ec
2022-12-02 08:48:00 -07:00
Jianxiong Pan 884498649c mm: enable page map show for logcat/tombstone. [2/3]
PD#SWPL-96613

Problem:
No pfn information in tombstone and logcat files.

Solution:
enable pfn information form /proc/[pid]/pagemap for user
tasks. This feature is default enabled for userdebug/eng
build and disabled for release build.
Also you can manual enable it by:
echo pagemap_en=1 > /proc/mem_dbug

Verify:
s4_aq222.

Change-Id: I8530c28f4ff3786cd4c34341214ab66e30d54758
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-11-22 05:03:20 -07: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
Lei Zhang ee2097d6c1 kaslr: Enable the kaslr function [6/8]
PD#SWPL-76164

Problem:
Enable the kaslr function

Solution:
Enable the kaslr functionfe

Verify:
on C2 AF400

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: I90159a03ce7c07be99eadeebb6f81898eefb0bfa
2022-04-20 00:51:23 -07:00
Jianxiong Pan e8de2d15c0 mm: add mem debug for 32bit. [1/2]
PD#SWPL-72254

Problem:
no mem debug on arm 32bit.

Solution:
porting mem debug from kernel5.4.

Verify:
local.

Change-Id: Iad0352dd8b745213d9c64a4a2022107f97035e39
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-03-09 19:35:52 +08:00
Tao Zeng d31b9dd061 mm: add vmap stack support [2/2]
PD#SWPL-70022

Problem:
No vmap stack support on 5.15

Solution:
Porting it from 5.4

Verify:
local

Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: Ie75bedb3072dfd90a5d74b64684c233186aada81

Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: I78552ad490938c455178e56395ff63e60b62a320
2022-02-22 21:39:53 -07:00
Jianxiong Pan d07381ec22 mm: add mem debug support. [1/1]
PD#SWPL-72254

Problem:
no mem debug on kernel5.15.

Solution:
porting mem debug from 5.4.

Verify:
local.

Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Change-Id: Ie625011e90df9203686acbe52997149527a38daa
2022-02-21 22:15:47 -07:00