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>
PD#SWPL-185687
Problem:
there is panic when envp_init stores over 32 members
Kernel panic - not syncing: Too many boot env vars at `reboot_mode=normal'
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.180-rksec-1.0 #2
Hardware name: Generic DT based system
[<b020a1b8>] show_stack+0x10/0x14
[<b0cbd7b4>] dump_stack+0x8c/0xa8
[<b0cad7a4>] panic+0x104/0x304
[<b1100b84>] start_kernel+0xa4/0x42c
[<b11004a4>] _sinittext+0x44/0x48
Solution:
set __setup return value as 1 to avoid envp_init full
Verify:
t5w
Test:
t5w
Change-Id: Ie0f5ada11318ab509bf7bd914e2af53213250f00
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
PD#SWPL-193384
Problem:
not support show irq status when printk
Solution:
display use '-' instead
Verify:
local
Change-Id: I36454bdc6cd2e39ad7057fe3127721407a65cf15
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-185970
Problem:
1, need modify sched_domain flags for GKI20
2, Some tasks have been running in apu before isolating cpu.
Solution:
when tasks were scheduled, if tasks shouldn't be run on the apu,
they will be migrated to other cpus.
sync form 5.15
318edc835 isolcpus: don't select isolate cpu for non-bind tasks. [1/1]
db7f29820 sched_domain: enable BALANCE_WAKE and disable WAKE_AFFINE [1/1]
Verify:
sc2
Change-Id: I5a9610ad210b58a4cf427956296a062d95458eaa
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
PD#SWPL-185970
Problem:
arm64 aml_flush_cache_all will corrupt some regs
Solution:
save and restore corrupted registers in flush cache
Verify:
S7D
Change-Id: I7535974fd10a1fe822e34b6af3b582c47354ccad
Signed-off-by: song.han <song.han@amlogic.com>
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>
PD#SWPL-185970
Problem:
kprobe some instruction will fail, eg: nop in arm64
different config or compiler may cause register_kprobe fail
Solution:
retry with next instruction
Verify:
t5m
Change-Id: I2311ed64e06d901a0410148eeb2f1d94c554be11
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
PD#SWPL-190589
Problem:
current CFS optimization is incompatible with EEVDF
Solution:
temporarily disable the feature
Verify:
on SC2
Change-Id: Ifc632b69a19738e7024687b7936305fa914117b0
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
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>