Commit Graph

27 Commits

Author SHA1 Message Date
qiankun.wang c6c1a57139 IOTM: sync kernel5.15 code [1/1]
PD#SWPL-203987

Problem:
sync kernel5.15 code.

Solution:
IOTM: Fix coverity issue [1/1]
IOTM: enlarge iotm record size [1/1]
iotm: Fix coverity issue [1/1]
IOTM: stop iotm when irq has abnormal [1/1]
IOTM: data is out of bounds [1/1]
IOTM: enable iotm on t6w [1/2]

Verify:
T6D

Change-Id: I87712d26d9e6d2f062a08dd0e4bc3e8586b34a03
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2025-07-27 22:09:09 -07:00
qiankun.wang e327da4c18 IOTM: kernel6.12: all patches up to 2025-02-11 [1/1]
PD#SWPL-205945

Problem:
T6D kernel6.12 bringup on IOTM.

Solution:
https://scgit.amlogic.com/#/q/topic:SWPL-170602_kernel
https://scgit.amlogic.com/#/c/473118/
https://scgit.amlogic.com/490156
https://scgit.amlogic.com/#/q/topic:IOTM

Verify:
t6d

Change-Id: Ibf939699b89719e56b166ea442da84777e1055f6
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2025-03-19 22:00:31 -08:00
biao.sun c5076ee716 meson_atrace: add memory alloc and meminfo event [1/1]
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>
2025-01-10 02:56:38 -08:00
Yan Wang 4bb9b1f44b MTE: debug: update flag according mte status. [1/1]
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>
2024-11-12 23:59:21 -08:00
Hanjie Lin 875fa4747f isolcpus: add amlogic support and boot optimize [1/1]
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>
2023-08-09 21:58:46 -07:00
Hanjie Lin 3fcef5de34 kretprobes: disable irq in ret handler [2/3]
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>
2023-06-13 01:00:25 -07:00
Jianxin Pan 11155146ab zapper: remove unused code of media module. [1/1]
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>
2023-04-27 21:24:07 -07:00
song.han 820797e318 iotrace: add ramoops_io_dump support [1/1]
PD#SWPL-119464

Problem:
add ramoops_io_dump support

Solution:
add ramoops_io_dump bootargs to support dump iotrace log

Verify:
SC2_AH212

Change-Id: Ie0eef9bf2cb269f82d2d01872d2515695666bb15
Signed-off-by: song.han <song.han@amlogic.com>
2023-04-25 06:28:18 -07:00
song.han 29925ebc8a debug: iotrace driver follow gki 2.0 [2/2]
PD#SWPL-109963

Problem:
iotrace driver need follow gki 2.0

Solution:
iotrace driver build to ko

Verify:
sc2_ah212

Change-Id: I472bc63b6594c58d7c94f74e1bf1a070978b20fd
Signed-off-by: song.han <song.han@amlogic.com>
2023-04-20 06:15:21 -07:00
Hanjie Lin d1d550e8c9 sched: scheduler optimize [1/1]
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>
2023-02-24 03:56:31 -08:00
Hanjie Lin caa8b668c5 debug: gki optimize [2/4]
PD#SWPL-99365

Problem:
gki optimize

Solution:
1, code optimize
2, watchdog_hld to ko

Verify:
sc2_ah212

Change-Id: Ibb1b16bd61d794defb39d53f17ad86179ba4a661
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2022-12-27 04:32:55 -08:00
qinglin.li e23e9bfc33 printk: use vendor_hook print cpu and irq info [2/3]
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>
2022-11-21 22:36:36 -07:00
qinglin.li aa9cc5449c debug: combine gki_tool and debug modules [1/1]
PD#SWPL-95684

Problem:
combine gki_tool and debug modules

Solution:
result:
	amlogic-debug.ko
original:
	amlogic-debug.ko
	amlogic-gkitool.ko

Verify:
sc2

Change-Id: I4257b8dca30871614d6ba7df6fd79e928045d5b6
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-11-05 12:07:06 +08:00
Wanwei Jiang 0b2a96838a Revert "debug: add filp_open debug function [2/3]"
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>
2022-11-05 12:06:11 +08:00
Wanwei Jiang a7b4df563a utils: support amlogic utils driver [1/1]
PD#SWPL-95914

Problem:
support amlogic utils driver

Solution:
support amlogic utils driver

Verify:
sc2

Change-Id: I47c4dd46997e27380257c2bf31eeaa4a1755b17c
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2022-11-05 12:05:59 +08:00
qinglin.li da04048d61 debugfile: build debugfile with module [1/1]
PD#SWPL-94401

Problem:
build debugfile with module
build with gki_10

Solution:
build debugfile with module

Verify:
sc2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I8db0d7e81c93860cdd2ca8cbb5526e529d67da27
2022-10-19 02:18:01 -07:00
Hanjie Lin 908c1c3c19 debug: fix iotrace break gki issue [2/3]
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
2022-10-15 03:28:18 -07:00
Hanjie Lin e6d82ef16c debug: fix gki10 break issue [2/3]
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
2022-10-14 16:53:03 -07:00
yao zhang1 37365df098 config: C3 Kernel size optimize. [1/1]
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>
2022-09-29 19:58:15 +08:00
song.han 5c1df2adb9 scrambler: enable scrambler func in normal reboot [2/2]
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
2022-09-26 19:47:22 -07:00
qinglin.li 073082327a debug: add filp_open debug function [2/3]
PD#SWPL-88149

Problem:
add filp_open debug function used to relabel

Solution:
add filp_open debug function

Verify:
sc2

Change-Id: Iba99f9008ad475d2666cd25fac2c188c49b4a2dc
2022-09-07 20:06:43 +08:00
qinglin.li 0afabe230c debug file: add debug file function [1/2]
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
2022-08-18 20:38:55 +08:00
song.han 4cfbc0d9b6 debug: enable ddr scrambler key preserve [2/2]
PD#SWPL-88050

Problem:
ddr scrambler key refresh that cause lastk miss

Solution:
enable ddr scrambler key preserve when pstore init

Verify:
C3_AW419

Signed-off-by: song.han <song.han@amlogic.com>
Change-Id: I9076cae2b1533744d41eab8781f8b8a87831910e
2022-07-15 07:14:44 -07:00
song.han 296e2ed788 iotrace: support iotrace driver [2/2]
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>
2022-03-01 19:56:52 -07:00
song.han 129fc3b10b hardlockup: enable hardlockup func without NMI [2/2]
PD#SWPL-72675

Problem:
porting hardlockup without nmi support.

Solution:
port hardlockup func from 5.4.

Verify:
C2-AF400

Change-Id: I28d3106f42c3d2387bc78ce7b9b650af55e2fe2e
Signed-off-by: song.han <song.han@amlogic.com>
2022-02-24 02:25:08 -07:00
qinglin.li 0e0ad4ca72 printk: printk optimization [2/2]
PD#SWPL-70486

Problem:
printk add cpuid,cur_task,irq etc info.

Solution:
printk add cpuid,cur_task,irq etc info.

Verify:
s4d && c2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I9daa8bf7aeb158230871b4fa7505a6903ab4b32e
2022-02-23 16:57:56 +08:00
Hanjie Lin 71de1a49bb debug_lockup: add support [2/2]
PD#SWPL-71728

Problem:
add debug_lockup support

Solution:
add debug_lockup support

Verify:
s4

Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
Change-Id: I578f6c22b8a41aae861871249248618230f18859
2022-02-22 03:18:28 -07:00