PD#SWPL-197216
Problem:
mmap should be locked in show_vma or may caused WARNING
Solution:
add mmap_read_trylock
Verify:
sc2
Change-Id: I29cb7fc4f03b9db90c9e6daf98618657a4724f38
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
PD#SWPL-193855
Problem:
print too much log when oom.
Solution:
pagetrace prints above 1M of info.
Verify:
sc2.
Change-Id: I12c5de2f6ebfc9591fb722f1f8a0c57b18f0a48f
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-197053
Problem:
disabled CONFIG_KALLSYMS_ALL cause user_fault can't find init_mm
Solution:
get a faked init_mm from ttbr1_el1
Verify:
sc2
Change-Id: I95c711abcc9b37205b742e7ac7839acc65466bc7
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
PD#SWPL-196879
Problem:
some page fall into cma pool, causing slow cma allocation.
Solution:
add GFP_NO_CMA flags.
Verify:
sc2.
Change-Id: I5a319b7ce85d735e14289786fb5b80cc59f73009
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-193836
Problem:
pagetrace info is inaccurate.
Solution:
add more filter for pagetrace.
Verify:
sc2.
Change-Id: I886cba52fdafde7ff2ad9deb18fb985af7544e24
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-193855
Problem:
print more debug info when oom.
Solution:
print pagetrace when oom.
Verify:
sca.
Change-Id: I20e2629dd212ac4dad9b28cd6c9c69fc8c9ffd58
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-193867
Problem:
update tee protect mem api.
Solution:
use tee_protect_mm().
Verify:
local.
Change-Id: Id7e537d0f6f1fc3ec044e791c3416d730f67ca4c
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-185599
Problem:
use vendor hook install of kprobe.
Solution:
use vendor hook install of kprobe.
Verify:
sc2.
Change-Id: I5bd5379cae56d4ad3976027571bb129790b24f1b
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-182785
Problem:
print debug info not find backtrace.
Solution:
initialization phase, no need to care.
Verify:
local.
Change-Id: I3414acf667cbd0d9e739e5815fa921b440bb8493
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-188508
Problem:
pagetrace can not find symbol.
Solution:
init the file struct.
Verify:
sc2.
Change-Id: I478343fcc864be1fccf6f0f162077a8d37ef4805
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-183292
Problem:
upgrade kernel from 6.6.10 to 6.6.11
Solution:
1. modify auto patches
2. modify the code due to the change of
the remove function in struct platform_driver
3. modify the code due to the change of
the match function in struct bus_type
4. modify some page function to folio function
5. modify spi module due to some functions changed
Verify:
local
Change-Id: I92c266b6a1bbae363abd0ff50d7f3037e90bc624
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
PD#SWPL-147355
Problem:
due to lockup when dmc irq ratio is too high
Solution:
use dmc irq thread when irq ratio is too high
Verify:
local
Change-Id: Ie13d584f81563e3c2e111fb5d6033f0e2aa0d337
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
PD#SWPL-156726
Problem:
support clang build for 6.6
Solution:
fix build error
Verify:
local
Change-Id: I8e5fe60e7cee109a3606b0f1aa55fbb3404999fc
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
PD#SWPL-155316
Problem:
not get backtrace in softirq.
Solution:
update the unwind frame.
Verify:
a5_av400.
Change-Id: I4e07a9db2b3f64b4ef1b2c2ed9aa524a5dbdc9a1
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-150034
Problem:
reduce the ko number.
Solution:
move aml_smmu ko to memory_debug directory.
Verify:
local.
Change-Id: If537a6a6493a9944319caa344ad8e3a73c294179
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-151245
Problem:
kernel6.6 will not distinguish different versions of kernel.
so we do not make compatibility code in 6.6.
Solution:
revert compatibility code for kernel 6.6.
Verify:
local
Test:
local
Change-Id: I24b8acac62cec05ffb2f637a86f91789f1d0b905
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
PD#SWPL-151470
Problem:
many of module parameters are no longer in use, but have not been deleted,
which affects memory and performance. all module parameters are now
disabled and can only be used after the application is approved.
Solution:
disabled all module parameters
Verify:
a4 a5
Test:
none
Change-Id: I27ee98a0437542d7b8a3da437c1525e0afded6b1
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
PD#SWPL-150034
Problem:
no corresponding vendor hook.
Solution:
use kprobe to get not export function/variable.
Verify:
local.
Change-Id: I6c7abe40fd4d6e7802fe30b2426ace5cbb7ab067
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-150034
Problem:
support pcie white list.
Solution:
add aml fake smmu for pcie.
Verify:
local.
Change-Id: I5847cbfbaf5b5d80a416342befc0f7f512e13ff6
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>