song.han
ba1bb225eb
iotrace: add preempt protections at hooks [1/1]
...
PD#SWPL-179411
Problem:
BUG: sleeping function called from invalid context
at kernel/sched/completion.c
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1,
name: swapper/0
Preemption disabled at:
[<c0428468>] queue_stop_cpus_work+0x60/0x1bc
[<c030dc24>] show_stack+0x28/0x2c
[<c105e624>] dump_stack_lvl+0x48/0x54
[<c0371660>] ___might_sleep+0x1c4/0x1e8
[<c10621b8>] wait_for_completion+0x28/0x58
[<c0428180>] stop_machine_cpuslocked+0x10c/0x208
[<c106ac28>] patch_text+0x20/0x28
[<c0501254>] __jump_label_update+0x7c/0xec
[<c05002b8>] static_key_enable_cpuslocked+0x8c/0x100
[<c050034c>] static_key_enable+0x20/0x28
[<c0441acc>] tracepoint_add_func+0x38c/0x400
[<c0441c00>] tracepoint_probe_register+0x54/0x6c
[<c0db6974>] ftrace_ramoops_init+0x288/0x2fc
[<c163cb30>] aml_iotrace_init+0x46c/0x550
[<c03020a0>] do_one_initcall+0x104/0x364
[<c1601f90>] do_initcall_level+0xa0/0x15c
[<c1601ec0>] do_initcalls+0x58/0x88
[<c1601d04>] kernel_init_freeable+0x114/0x160
[<c105fe24>] kernel_init+0x20/0x1c4
[<c0300134>] ret_from_fork+0x14/0x40
Solution:
add preempt protections at hooks
Verify:
t5w
Change-Id: Ib6a13e104aeb697e84e331152f6ea41ef6d11b35
Signed-off-by: song.han <song.han@amlogic.com >
2024-08-13 05:44:40 -07:00
song.han
a14fb05934
iotrace: call stack support [1/1]
...
PD#SWPL-175591
Problem:
5.15-u scs can't work
arm 32bit caller_addr can't work
Solution:
arm64 use CALLER_ADDR micro
arm32 support find stack operation
Verify:
SC2
Change-Id: Ic8142284af335f22cf5fe0aceb438e2119ec7373
Signed-off-by: song.han <song.han@amlogic.com >
2024-07-03 23:11:16 -07:00
song.han
76e8391454
iotrace: module init_layout and data structure [1/1]
...
PD#SWPL-158475
Problem:
delete module layout base function
synchronous release module init layout
modify iotrace data struct
Solution:
as above
Verify:
sc2_ah212
Change-Id: Ifb186f768a4427f32f32625c4df86cd286dc30c5
Signed-off-by: song.han <song.han@amlogic.com >
2024-03-11 02:57:39 -08:00
qiankun.wang
89a73decb1
iotrace: iotrace vendor hooks and optimization [2/2]
...
PD#SWPL-142603
Problem:
iotrace read/write use vendor hooks.
iotrace optimization
Solution:
iotrace read/write use vendor hooks.
iotrace optimization
Verify:
sc2_ah212
Change-Id: If69ed5dce03ffa53f1c4819659fb80dfcad767c5
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com >
2024-01-25 22:27:19 -07:00
Jiacai.Liu
4305fac204
common_driver: CB fix kernel compile warn when use gcc 11.4 [1/1]
...
PD#SWPL-142738
Problem:
kernel compile warn when use gcc 11.4
Solution:
fix the warn error
auto check issue: midagc= min agc, minagc = min agc
Verify:
local
Signed-off-by: Jiacai.Liu <jiacai.liu@amlogic.com >
Change-Id: I3f2ffaac88ef3ad2c92525398fe273776740bc5a
2023-11-01 03:59:56 -07:00
song.han
6ddd2f7641
iotrace: record module base on last start [1/1]
...
PD#SWPL-136207
Problem:
use kprobe to forbid free module init text
Solution:
record module base and use offset to parse
this module symbol
Verify:
SC2_AH212
Change-Id: I43bd306e94e9a6a5afe6411a9cd9e93db0342b7a
Signed-off-by: song.han <song.han@amlogic.com >
2023-09-18 20:08:36 -07:00
qiankun.wang
5304c379e9
reg_detect: postpone the call of 'ioremap'. [1/1]
...
PD#SWPL-139674
Problem:
the system can't run 'ioremap' without
the Buddy system.
Solution:
set the variable 'check_reg_flag' to
postpone the function call 'ioremap'.
Verify:
T5M
Change-Id: Ieee33ff37a54037e3a3d1c258b127e1cbcd83b5a
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com >
2023-09-13 00:44:27 -07:00
song.han
fae9edad47
iotrace: replace clk/power kprobe [1/1]
...
PD#SWPL-139455
Problem:
try to replace kprobe hook in iotrace
Solution:
replace clk/power kprobe
Verify:
SC2_AH212
Change-Id: Id53c97a5d0679c118625670a5216ae54e0567aec
Signed-off-by: song.han <song.han@amlogic.com >
2023-09-12 04:04:21 -07:00
Jianxiong Pan
e61f35dc14
zapper: memory optimization about usb3, defconfig. [2/2]
...
PD#SWPL-126879
Problem:
memory optimization.
Solution:
disable usb3
delete useless config
Verify:
t215.
Change-Id: Ie23b7cd2e1ca96100a2534928293d8211917622a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com >
2023-07-05 21:03:06 -07:00
qiankun.wang
0335d01014
iotrace: save register value in IO-R-E [1/1]
...
PD#SWPL-129901
Problem:
IO-R-E can't read the register's data.
Solution:
when the "read" action is over, the hook function
will get the value from the action.
Verify:
SC2
Change-Id: I12426209bf92e5c242022041e01ed6a7711808dc
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com >
2023-06-29 06:56:16 -07:00
qiankun.wang
b6ed5e8381
iotrace: fix reg error [1/1]
...
PD#SWPL-127124
Problem:
system will record the register twice rather
than the register and the value.
Solution:
record the value
Verify:
SC2
Change-Id: I5de33f780475b2ac3ebeac8c2dfea779900875ce
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com >
2023-06-13 01:00:39 -07:00
qiankun.wang
019db657be
iotrace: add reg detect [1/1]
...
PD#SWPL-127124
Problem:
register was accidentally modified by unknown program
Solution:
add reg detect func when write reg
Verify:
SC2
Change-Id: Ia5db45839a7f69fc819e7cfc9843a4e6503ebce9
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com >
2023-06-12 00:48:11 -07:00
song.han
f411bfdab1
iotrace: hook regmap r/w reg when iotrace ko [1/1]
...
PD#SWPL-119464
Problem:
when iotrace driver build to ko, it has some register r/w
operation not be hooked
Solution:
hook regmap r/w operation when iotrace build to ko
Verify:
SC2_AH212
Change-Id: I763b90fd91e76e5d4138db8ad1d2268c5b33e873
Signed-off-by: song.han <song.han@amlogic.com >
2023-05-03 22:52:30 -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
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
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