PD#SWPL-109963
Problem:
All module_param nodes are deleted in kernel_6.6.
Solution:
Commit the nodes that need to be used.
Verify:
SC2
Change-Id: I3a43fd622e983cf6429e8d94edb6b020c0618f08
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
PD#SWPL-154489
Problem:
kernel panic
Solution:
modify the type of the kunmap function parameter to struct *page
Verify:
soddy
Change-Id: If7e6aebfc5f423061af4af65a3b25ca802dcc4ea
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
PD#SWPL-151245
Problem:
kernel6.6 will not distinguish different versions of kernel.
so we do not make compatibility code in 6.6.
Solution:
revert compatibility code for kernel 6.6.
Verify:
local
Test:
local
Change-Id: I24b8acac62cec05ffb2f637a86f91789f1d0b905
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
PD#SWPL-151470
Problem:
many of module parameters are no longer in use, but have not been deleted,
which affects memory and performance. all module parameters are now
disabled and can only be used after the application is approved.
Solution:
disabled all module parameters
Verify:
a4 a5
Test:
none
Change-Id: I27ee98a0437542d7b8a3da437c1525e0afded6b1
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
PD#SWPL-150084
Problem:
the vendor hooks "module_base_hook" was deleted
in kernel6.6.
Solution:
update module curr core_layout base by function
"blocking_notifier_call_chain".
Verify:
sc2_ah212
Change-Id: I058678a8ef29ade90da3f6d59d89578cc7fd7952
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
PD#SWPL-150130
Problem:
"enum hk_flags" does not exist "linux/sched/isolation.h"
in kernel6.6.
Solution:
use "int" to replace it.
Verify:
sc2_ah212
Change-Id: I5def0e6618b2dc0492ba13e0f6fe1242a3093113
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
PD#SWPL-150782
Problem:
bring up kernel6.6
Solution:
fix some code problem
Verify:
sc2 c2 a4 a5
Test:
local
Change-Id: I6b9affa83e6d46f6b857f4b542991bc70de4bfb5
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
PD#SWPL-143865
Problem:
t3x can't enable EAS because of apu.
Solution:
t3x can enable EAS when system supports
the hide cpu.
Verify:
t3x
Change-Id: Ie20fa9a01af1da9bcb5e655b5c54ecd9aa322f0f
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
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
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>