Commit Graph

122 Commits

Author SHA1 Message Date
biao.sun c5076ee716 meson_atrace: add memory alloc and meminfo event [1/1]
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>
2025-01-10 02:56:38 -08:00
Jian Hu 68bc14b23e drivers: correct __setup return value. [1/1]
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>
2025-01-07 01:47:53 -08:00
Dezhen Wang 9e4283999e debug: sync debug/audio_utils.c patch from 5.15 [1/1]
PD#SWPL-196412

Problem:
sync common_drivers/drivers/debug/audio_utils.c patches
from amlogic-5.15-dev to amlogic-6.12-dev branch

Solution:
sync patch

Verify:
Local

Change-Id: I802292b9bc2106e7779752d52235e8cacd4f7779
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-12-19 20:57:30 -08:00
qiankun.wang 227287e31c debug: module_params clean. [1/1]
PD#SWPL-195506

Problem:
too many module_params extend boot time.

Solution:
Use key-val to obtain module_params information.

Verify:
sc2

Change-Id: Id04543738a7a6d179b815910a75482cca9b011d7
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-12-16 00:32:23 -08:00
qinglin.li 8837565c66 printk: not support show irq status when printk [1/1]
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>
2024-11-26 23:59:27 -08:00
Jiucheng Xu f460340bf7 f2fs: revert f2fs preserve direct write semantics [1/1]
PD#SWPL-165832

Problem:
The patch clean file cache and impact direct IO performance

Solution:
revert to improve direct IO performance.

Verify:
T7

Change-Id: I349d40ac2af425bbd969256c27fda6e810f9085d
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
2024-11-25 05:59:05 -08:00
qinglin.li 4cf4190da3 kernel6.12: upgrade kernel [1/1]
PD#SWPL-190713

Problem:
upgrade kernel

Solution:
AML_KERNEL_VERSION      4
UPSTREAM_VERSION        "773209423d7b"
AML_PATCH_VERSION       "773209423d7b"
MERGE_DATE              "2024-11-14"

Verify:
local

Change-Id: I78801d5b69c7ddcb6e6f4d5718b9f1f2d44b3ef5
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-11-13 19:24:25 -08:00
Hanjie Lin ce6122cee7 sched: optimize sched flag and correct cpu selecting for non-bind tasks [1/1]
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>
2024-11-13 00:42:18 -08:00
song.han 9114c81635 lockup: fix fiq dump crash [1/1]
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>
2024-11-12 23:59:33 -08:00
gerrit autosubmit 4abc089add Merge "MTE: debug: update flag according mte status. [1/1]" into amlogic-6.12-dev 2024-11-12 23:59:24 -08:00
Yan Wang 4bb9b1f44b MTE: debug: update flag according mte status. [1/1]
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>
2024-11-12 23:59:21 -08:00
song.han 1c19296009 iotrace: call stack support [1/1]
PD#SWPL-185970

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: I8f5785f1a2518297b2a7dab609414356d78fa108
Signed-off-by: song.han <song.han@amlogic.com>
2024-11-12 23:59:07 -08:00
Lei Zhang 127a283ec4 isolcpus: retry register housekeeping_cpumask kprobe [1/1]
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>
2024-11-12 23:58:24 -08:00
qiankun.wang fb2869504a debug: clean coverity. [1/1]
PD#SWPL-190780

Problem:
clean coverity

Solution:
modify code

Verify:
local

Change-Id: I38d71c0b857292a9260c84020ff2bd4ec7f9e933
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-11-12 21:59:42 -08:00
pengzhao.liu d6c287a046 kernel: a1 6.6 bringup to console [1/1]
PD#SWPL-182757

Problem:
kernel: a1 6.6 bringup to console.

Solution:
kernel: a1 6.6 bringup to console.

Verify:
a1 ad403

Change-Id: I595de3720c07bd186d51f503f73cf4e8d2ef539a
Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
2024-11-08 04:06:07 -08:00
Lei Zhang 490811e23b sched: disable CFS optimization [1/1]
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>
2024-10-25 02:22:55 -07:00
Ao Xu 6cc9aab0a3 drm: sync 5.15 CL to 6.12 drm driver [1/1]
PD#SWPL-188410

Problem:
6.12 drm driver bringup

Solution:
sync 5.15 CL to 6.12 drm driver
delete CONFIG_AMLOGIC_KERNEL_VERSION related code

Verify:
sc2

Test:
DRM-OSD5,DRM-OSD-16

Change-Id: I27819e8d5c733961e0816a84050d0367f22df8fe
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-10-17 22:46:45 -07:00
song.han 095ef042a5 iotrace: add preempt protections at hooks [3/4]
PD#SWPL-185970

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: I4cfd069ca0b4ba2c9bd6e8202391577aff09d227
Signed-off-by: song.han <song.han@amlogic.com>
2024-10-15 04:30:08 -07:00
Lei Zhang 0dabda8673 DEBUG: bring up basic debug function [2/4]
PD#SWPL-185970

Problem:
N/A

Solution:
N/A

Verify:
on SC2

Change-Id: Ie4c90d8be99231ef0272309351ef8defd99e850a
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2024-10-15 04:29:17 -07:00
Dezhen Wang 490f387893 upgrade: android15-6.6 in 2024/03 [2/2]
PD#SWPL-177341

Problem:
record merge upstream information

Solution:
AML_KERNEL_VERSION      6
UPSTREAM_VERSION        "a8759911ea10"
AML_PATCH_VERSION       "a8759911ea10"
MERGE_DATE              "2024-07-16"

Verify:
a4/a5

Change-Id: Iceb68a4d0088ff692d57aeaac7ceadd571756e6d
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-07-30 12:46:50 +00:00
qinglin.li 617fe04d9f kernel6.6: build sm1 with gx64 script [1/1]
PD#SWPL-160351

Problem:
build sm1 with gx64 script

Solution:
build sm1 with gx64 script

Verify:
local

Change-Id: I3b72d88a38a1a24636d6a662fc696a90cdc54673
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-06-27 12:14:30 +00:00
qiankun.wang 511d33d95a arm64: traps: delete the do_undefinstr hook. [1/1]
PD#SWPL-160370

Problem:
Native functions optimize the user_fault
processing process.

Solution:
delete the vendor hook function.

Verify:
T3

Change-Id: Ie986a483b3e6cabad6ba9b59f6662dd9d81441da
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-06-27 07:41:32 +00:00
song.han 57ec7b9e8b 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-06-27 07:40:34 +00:00
qiankun.wang ea49ee09c0 debug: optimize module_param nodes. [1/1]
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>
2024-02-01 07:51:39 -07:00
qiankun.wang 39148c4643 iotrace: iotrace vendor hooks and optimization [1/1]
PD#SWPL-149337

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-29 04:02:16 -07:00
Wanwei Jiang ba45b5379c kernel: upgrade on 20240122 [1/1]
PD#SWPL-155082

Problem:
upgrade on 20240122

Solution:
upgrade on 20240122

Verify:
a4/a5 sc2

Change-Id: Ic1a3a420615107dec3847c7cc3a84d324c248844
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-01-22 19:41:35 +08:00
Wanwei Jiang dbcad9eacb audio: fixed kernel panic [1/1]
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>
2024-01-19 08:17:30 -07:00
Hanjie Lin 8e35d620c0 debug: sched: bringup [1/1]
PD#SWPL-150085

Problem:
debug sched compatible

Solution:
debug sched compatible

Verify:
sc2/a5

Change-Id: I4d4d70dd03655a4f8a2beb034aae4826fd82fec8
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2024-01-16 20:29:42 -07:00
Wanwei Jiang 9e97825b1e kernel: upgrade on 20240112 [1/2]
PD#SWPL-153832

Problem:
upgrade on 20240112

Solution:
upgrade on 20240112

Verify:
a4/a5 sc2

Change-Id: Ia5fafbfd5e2e31f06ebf6f5a1cc973b40ab922f1
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-01-12 11:52:01 +08:00
Dezhen Wang bcfa0ee2e4 bring up: revert compatibility code for kernel 6.6 [1/1]
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>
2024-01-11 18:46:45 -07:00
Wanwei Jiang c73f5afdef module: disable module_param [1/1]
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>
2024-01-09 19:58:31 +08:00
qiankun.wang 407be5ff67 iotrace: notify_call update core_layout base. [1/1]
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>
2024-01-03 20:12:09 -07:00
qiankun.wang 31a56804f0 apu: compatible cpu_isolate function. [1/1]
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>
2023-12-29 01:20:55 -07:00
Dezhen Wang e93cf9ea7f kernel6.6: bring up fix some code problem [1/1]
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>
2023-12-21 00:09:33 -07:00
Wanwei Jiang 43461aec82 kernel6.6: bring up [1/1]
PD#SWPL-145682

Problem:
bring up kernel6.6

Solution:
1. porting kernel6.6
2. compatible with different kernel versions
3. bring up kernel6.6

Verify:
sc2 c2 a4 a5

Test:
None

Change-Id: Ie22af0abc8ea96261e8a8cc7804b58565aedd904
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-14 16:55:55 +08:00
qiankun.wang 6360d268f9 apu: t3x: can't enable EAS [1/2]
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>
2023-11-09 00:15:26 -07:00
song.han 18fc618fcb debug: lockup and panic flow optimize [1/1]
PD#SWPL-144359

Problem:
add debug feature

Solution:
show sysrq't' when rcu stall panic
fiq dump other cpu stack when hardlockup panic
improve watchdog panic notifier priority
disable watchdog when set panic_print

Verify:
s4

Change-Id: I6af43456105a3cf802d54608d62cbb25d327a73e
Signed-off-by: song.han <song.han@amlogic.com>
2023-11-03 04:15:36 -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 8cda503afd iotrace: fix dump iotrace log bug [1/1]
PD#SWPL-141645

Problem:
auto dump iotrace log may cause kernel panic

Solution:
fix iotrace bug

Verify:
t5m

Change-Id: I1a30b24672cd8ca5fae641aed5d3837553d72bc9
Signed-off-by: song.han <song.han@amlogic.com>
2023-10-07 02:33:42 -07:00
Lei Zhang cbaf477137 revert "softirq: not check if CPU has a RT task" [1/1]
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>
2023-09-21 02:09:44 -07:00
Jianxiong Pan cca80c3423 zapper: rename CONFIG_AMLOGIC_ZAPPER_CUT_C1A. [1/1]
PD#SWPL-140594

Problem:
rename CONFIG_AMLOGIC_ZAPPER_C1A.

Solution:
CONFIG_AMLOGIC_ZAPPER_CUT_C1A.

Verify:
build pass.

Test:
run on s1a board normally.

Change-Id: I3a8ab8d81af2c4d14b51c117ac16d75f3980adac
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-09-20 04:40:01 -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 afcf37f44f arm64: traps: optimize do_undefinstr print [1/1]
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>
2023-09-17 22:49:00 -07:00
liang.wu 8ac86ed98d zapper: Add CONFIG_AMLOGIC_ZAPPER_NET_CUT [1/2]
PD#SWPL-120856

Problem:
Zapper 2K S1A - 128M DDR - optimization net core

Solution:
define CONFIG_AMLOGIC_ZAPPER_NET_CUT

Verify:
Zapper 2K S1A

Change-Id: Ic8712c8fa62b2fddd577598ec20d22e507dd522a
Signed-off-by: liang.wu <liang.wu@amlogic.com>
2023-09-15 02:53:58 -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
song.han 27904ea8df iotrace: fix kasan report in iotrace driver [1/1]
PD#SWPL-137772

Problem:
kasan report when dump iotrace log

Solution:
fix kasan report

Verify:
s4_ap222

Change-Id: I96548430df38007f217c9888e6110901f0184820
Signed-off-by: song.han <song.han@amlogic.com>
2023-08-31 21:58:42 -07:00
qinglin.li 9f54c42bbd break_gki: adjust break gki config [2/2]
PD#SWPL-137861

Problem:
adjust break gki config

Solution:
CONFIG_AMLOGIC_BREAK_GKI_20 only break gki2.0
CONFIG_AMLOGIC_BREAK_GKI break gki 1.0 and 2.0

Verify:
local

Change-Id: Ic86c771027980aa24c638d5f89c014240d65ec91
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-08-30 20:13:49 -07:00
dongqing.li 26df3302ed ramdump: ker5.15 flush cache all when kernel panic. [1/1]
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>
2023-08-30 06:18:47 -07:00
Jianxiong Pan b75016a67d zapper: remove c1a relate code. [1/1]
PD#SWPL-126879

Problem:
memory optimization.

Solution:
remove c1a relate code.

Verify:
s1a.

Test:
run on s1a board normally.

Change-Id: Idbd24a529666278295724f26d10f1a720877ca6a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-08-15 20:09:03 -07:00