PD#SWPL-115695
Problem:
softirq be processed in ksoftirqd
Solution:
not check if CPU has a RT task
Verify:
on T3
Change-Id: Id64d6b284f66a1c079d06acde06503b544360965
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
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>
PD#SWPL-136432
Problem:
Native code will perform the 'BUG_ON' process,
and the log isn't favorable for debug.
Solution:
add the vendor hook function to perform the
'show_regs' and 'panic'.
Verify:
T3
Change-Id: I7a0f2c10b5db8ed10207d1fcbc7cc214054c7ae3
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
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>
PD#SWPL-137107
Problem:
The data in the ramdump crash file is abnormal
because the cache data has not been flushed back.
Solution:
1. Use ipi_stop hook to flush online cpu cache.
2. Use panic_notifier to flush panic cpu cache.
Verify:
sc2_ah212
Change-Id: Ifad5bd4203fdde327b8c2b19357aa2d92586063f
Signed-off-by: dongqing.li <dongqing.li@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-135009
Problem:
The config 'CONFIG_AMLOGIC_SEC' has been
converted to CONFIG_AMLOGIC_SECMON.
Solution:
delete the config 'CONFIG_AMLOGIC_SEC',and
add the config 'CONFIG_AMLOGIC_SECMON'.
Verify:
SC2
Change-Id: I664ce36b86af24ff3e92adcf31f6149ecf381dcb
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
PD#SWPL-133116
Problem:
noret smc no need to disable preempt
Solution:
do not disable preempt with noret smc
Verify:
s1a_bg209
Change-Id: I0e6faa45b19a4269fe24dc003cce34f816fc9083
Signed-off-by: song.han <song.han@amlogic.com>
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>
PD#SWPL-128460
Problem:
system shutdown reboot or cold boot,parse ftrace old buf
will cause kernel crash
Solution:
skip parse ftrace old buf when shutdown reboot or cold
boot
Verify:
SC2
Change-Id: Ib2580c0206b97461389369d587f2266a8b3836f2
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
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>
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-118595
Problem:
'./mk.sh --arch arm --upgrade', an error
occurred during compilation.
Solution:
add a header file and change the function
name.
Verify:
SC2
Change-Id: I660a1d196f4216f0fa48b8ce7c59f2874d7e1a92
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
PD#SWPL-119162
Problem:
APU should not be seen except audio
Solution:
add APU support
Verify:
t5m
Change-Id: I0c4267b362f3d0bf398484b2318c88bdf0b00588
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
PD#SWPL-118595
Problem:
FIQ dump debugging when hard lockup
TV-60426
Solution:
Support FIQ dump debugging when hard lockup
Verify:
SC2
Change-Id: Ie68d4411e0f714cc04c657d9c5d625c4797cb7a2
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
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>
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-121006
Problem:
The use of interface that actively triggers
HardLockup is too complex.
Solution:
The interface is 'sysrq-trigger', and in
/sys/kernel/debug/aml_debug/,you can echo
x to this parameter to panic.
Verify:
SC2
Change-Id: Ia49b08dbd9e2fe458d463e79e19cfc438b75b26f
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
PD#SWPL-116862
Problem:
memory optimization for zapper.
Solution:
remove zapper unnecessary code in the media module.
Verify:
t215.
Change-Id: I835a52262ff8e68d744b051507ba9fdbd4b279d9
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
PD#SWPL-119265
Problem:
kernel will panic if too many boot args
Solution:
dump them for debug
Verify:
t7
Change-Id: Ib78ee8d997836f02df0d4f8092c87435d4b15e29
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
PD#SWPL-115695
Problem:
softirq be processed in ksoftirqd
Solution:
not check if CPU has a RT task
Verify:
on T3
Change-Id: I821f0bf6c32db8ccdfc752b60f50e703f95cdfb9
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
PD#SWPL-114246
Problem:
The system crashs when echo function_graph >
current_tracer
Solution:
disable the function of "irq check" when enable
function_graph.
Verify:
SC2
Change-Id: I21247370b50550bce8d4551527a308b49e26b247
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
PD#SWPL-115907
Problem:
read/write register cost more time
Solution:
__nocfi when read/write register
Verify:
on SC2 ah212
Change-Id: Id2737b3037f8ee2d57e11fbd195e853fe7c0541f
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
PD#SWPL-114679
Problem:
smc call can nest in interrupt, and it may cause wrong long smc
warning by mistake
Solution:
only check smc status in hardlockup
Verify:
sc2
Change-Id: I12f3135e2bd06637a107c4c476e25b79338e0f1c
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
PD#SWPL-104071
Problem:
Hardlockup detect precision is from 8s to 24s and
too insufficient.
Solution:
Hardlockup detect precision is 9-11s.
Verify:
SC2
Change-Id: Ic035a3e8dafde891f2c428213c1c51a77adebed3
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
PD#SWPL-104071
Problem:
The interface that actively triggers
HardLockup is at an illegal address.
Solution:
The interface is 'params', and in
/sys/kernel/debug/aml_debug/,you can echo
sysrq=x to this parameter to panic.
Verify:
SC2
Change-Id: I7b8f784f0f0fc2a5674e3c7386e81f13d8ec6d6b
Signed-off-by: qiankun.wang <qiankun.wang@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-97906
Problem:
T3 Kernel 5.15 Android T Bringup - di
Solution:
sync DI code
Verify:
smith
Change-Id: I590e2d71a453849d48207cccc3442e44da59c2da
Signed-off-by: yufei.huan <yufei.huan@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>