PD#SWPL-196409
Problem:
add memory related trace info
Solution:
1, __alloc_page and __alloc_pages_slowpath: use trace event and vendor hook
2, cma_alloc: use vendor hook in aml_cma.ko
3, handle_pte_fault: use kretprobe
4, trace meminfo period
Verify:
sc2_ah212
Change-Id: I70212798beb3660836201e6ad5f3ebf7e27b66b8
Signed-off-by: biao.sun <biao.sun@amlogic.com>
PD#SWPL-185970
Problem:
check mte enable/disable,
if mte disable, update flag to notify AO CPU.
Solution:
if mte disable, update flag to notify AO CPU.
Verify:
BL201
Change-Id: I8b15c80da1dcd5fee1d0682bd5e3a3a6fee1e201
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
PD#SWPL-119598
Problem:
system is too slow because the cpu5 is turned off
at system startup.
Solution:
turn on the cpu5 at system startup.
Verify:
SC2
Change-Id: I738fccb70c96d6495b314fa51cf319d5800c75a0
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
PD#SWPL-121806
Problem:
ret handler running in origin task context with preempt_disable
it's not safe for interrupt and may cause nested kprobe and miss
Solution:
disable irq in ret handler
add AMLOGIC_BGKI_KPROBES
Verify:
sc2
Change-Id: I143e874336d87b143d1607b8e9a7588f84d7bc55
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
PD#SWPL-116862
Problem:
media module memory optimization.
Solution:
disable the unused code for zapper.
reduce vmalloc used size from 17324k to 12556k.
Verify:
t215.
Test:
play video normally.
Change-Id: Iaa4c95c6641d76f80a11493c5c84f624cdac6424
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
PD#SWPL-106817
Problem:
scheduler profile
Solution:
1, check_preempt_wakeup avoid too frequently preempt
2, pick_next_task_fair try to find long-wait high prio task in big cgroup
3, add place_entity wakeup compensation factor
4, select rt more nice when curr is high prio cfs task
Verify:
aq222
Change-Id: I48324cae9aab49c5bc79a8979c6e88ec0b34f921
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
PD#SWPL-101578
Problem:
use vendor_hook print cpu and irq info
Solution:
use vendor_hook print cpu and irq info
Verify:
sc2
Change-Id: I52f0474ea55d4136933c0a2c12daf31eff4ab261
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-95914
Problem:
it's break gki
Solution:
Use other method to implement, so revert old method
This reverts commit 073082327a.
Change-Id: I93e8a56d6e6a354f3d2dd27029913b5c79b797fc
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
PD#SWPL-94447
Problem:
iotrace break gki10
Solution:
modify iotrace still builtin but not break gki10
also enabled DEBUG_PRINTK
Verify:
sc2
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
Change-Id: Iffc6a21f28de871b7289ca671c2c226c40e9a66a
PD#SWPL-94447
Problem:
debug break gki10
Solution:
1, support amlogic_debug build to module, amlogic_debug module
includes debug_lockup, cpu_mhz and meson_atrace for now.
2, amlogic_debug some function still build in kernel but not break
gki10, for example: irq_check function on builtin kernel code,
module_debug, workqueue debug etc.
3, new config CONFIG_AMLOGIC_HARDLOCKUP_DETECTOR still builtin but
not break gki.
4, other functions for example iotrace still under developing
Verify:
sc2
Signed-off-by: Hanje Lin <hanjie.lin@amlogic.com>
Change-Id: I9c11465e3e879f999ae6fd13dc12c044efd2417a
PD#SWPL-95000
Problem:
Kernel size is too big
Solution:
Remove some CONFIGs
Verify:
c3 pass
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
Change-Id: I13303e5e1e967961c6d1cc32a67465c423816276
Signed-off-by: yongbing.he <yongbing.he@amlogic.com>
PD#SWPL-94581
Problem:
need disable ddr scrambler func for debug
Solution:
only enable scrambler func in normal reboot
Verify:
SC2_AH212
Signed-off-by: song.han <song.han@amlogic.com>
Change-Id: I17fcfcc4b0ef0df195c6464bd742b23758422dfc
PD#SWPL-88149
Problem:
add filp_open debug function used to relabel
Solution:
add filp_open debug function
Verify:
sc2
Change-Id: Iba99f9008ad475d2666cd25fac2c188c49b4a2dc
PD#SWPL-88882
Problem:
kernel through to user space rw files
Solution:
add debug file function
Verify:
sc2
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I760ac112d21b2ba9d0a86f725771455627d8154f
PD#SWPL-71754
Problem:
support iotrace driver
Solution:
support iotrace driver
Verify:
on s4d_ap222 and c2_af400
Change-Id: Iefaa724c118a9310ce1b7121c6685dce580db0d5
Signed-off-by: song.han <song.han@amlogic.com>