PD#SWPL-175587
Problem:
arm64 aml_flush_cache_all will corrupt some regs
Solution:
save and restore corrupted registers in flush cache
Verify:
S7D
Change-Id: I6e9d7edc4643fa340c592806f725d37666a0b8a6
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-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-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-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-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-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-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:
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>