Commit Graph

115 Commits

Author SHA1 Message Date
Jianxiong Pan 8add3be84b break_gki: 64bit: add lowmem.fragment config. [1/1]
PD#SWPL-188146

Problem:
add defconfig for lowmem optimization.

Solution:
add lowmem.fragment config.

Verify:
adt4.

Change-Id: I3a1263c2b56a3558ff06026c3f85dc6bdb1444c6
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-11-02 09:33:19 -07:00
Lei Zhang aa362326fe cpufreq: optimize cpu frequency strategy [1/1]
PD#SWPL-160731

Problem:
cpu freq drop quickly in RT scene

Solution:
optimize cpufreq strategy, not drop too quickly

Verify:
on T7C

Change-Id: I42d3bcf445a0496f393a7f491c99a593e6b18f17
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2024-10-11 01:09:02 -07:00
qiankun.wang f839f8764e iotm: fix zero address memory corruption. [1/1]
PD#SWPL-170602

Problem:
iotm may access zero address after initializing iotm.

Solution:
Multiple pulses are triggered so that the AXI_ADDR
can points to the correct ddr address.

Verify:
t6d

Change-Id: Ia4355833d82e729dd2ed8fb9674fd065ed155617
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-09-21 11:59:45 +00:00
Jian Hu c3dfc99b4a 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: Id717cf132b5a5ec97a2be2c710ed9fddbbd9e0ae
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2024-09-18 03:14:13 -07:00
qiankun.wang 71faedf8bb IOTM: ensure trace data integrity. [1/1]
PD#SWPL-170602

Problem:
printk messages dropped when dump trace in NMI processing.
iotm may write 0x0 when restart iotm.

Solution:
preempting status is properly managed during NMI processing.
start/stop iotm according to write IOTM_CTRL_MODE.

Verify:
t6d

Change-Id: Id8886f2b9a7e8def8d0243fdedcd88b79ed7e208
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-09-14 01:44:05 -07:00
song.han 23b67f45b1 IOTM: support iotm function on t6d [1/2]
PD#SWPL-170602

Problem:
support iotm function on t6d

Solution:
support iotm funciotn on t6d

Verify:
t6d

Change-Id: Ifb5e32d0ff3ee455dae60088133c01514188159f
Signed-off-by: song.han <song.han@amlogic.com>
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-09-10 04:47:00 -07:00
song.han ba1bb225eb iotrace: add preempt protections at hooks [1/1]
PD#SWPL-179411

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: Ib6a13e104aeb697e84e331152f6ea41ef6d11b35
Signed-off-by: song.han <song.han@amlogic.com>
2024-08-13 05:44:40 -07:00
wenlong.zhang d30cc6178f drm: add rdma table for drm osd registers [1/1]
PD#SWPL-101847

Problem:
drm write registers to rdma table one by one, due to rdma table update
and rdma manager flush to real register are out of sync, so we want to
creat a fake table, the fake table will copy to rdma table after
pipeline register write done, and then config rdma vsync

Solution:
add rdma table for drm osd registers, and it can dynamic switching by
this node /sys/class/drm/card0/crtc0/rdma_table_switch.
echo 1 > /sys/class/drm/card0/crtc0/rdma_table_switch switch off
echo 0 > /sys/class/drm/card0/crtc0/rdma_table_switch switch on

Verify:
T3x s7 s5

Test:
DRM-OSD-33

Change-Id: I053daa7daaab672f8b1e9fc2c38a2d60552d6288
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-07-17 23:57:23 -07:00
song.han 7629ed7270 lockup: fix fiq dump crash [1/1]
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>
2024-07-08 04:03:17 -07:00
Yan Wang c77cb17908 MTE: debug: update flag according mte status. [1/1]
PD#SWPL-175090

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: Ic1416ae5262b548f681a02ccbe15e4d98f0dc532
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
2024-07-05 10:44:47 +08:00
song.han a14fb05934 iotrace: call stack support [1/1]
PD#SWPL-175591

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: Ic8142284af335f22cf5fe0aceb438e2119ec7373
Signed-off-by: song.han <song.han@amlogic.com>
2024-07-03 23:11:16 -07:00
Hanjie Lin fa9d800873 debug: sched: place_entity optimize for arm32 [1/1]
PD#SWPL-163170

Problem:
place_entity optimize only take effect in arm64

Solution:
support arm32 too

Verify:
sc2

Change-Id: Ieff1908e72fdb2282866ea1309f480d068772482
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2024-05-13 13:45:18 -07:00
Jiucheng Xu b3ce6bdbe6 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-05-08 01:58:30 -07:00
qiankun.wang 09e6c2d717 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:
sc2

Change-Id: Ie3f3661511313d2ab98da9826dd717e0e730adee
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-03-22 00:12:56 -07:00
song.han 76e8391454 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-03-11 02:57:39 -08:00
Hanjie Lin 318edc8359 isolcpus: don't select isolate cpu for non-bind tasks. [1/1]
PD#SWPL-151292

Problem:
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.

Verify:
T5M

Change-Id: I97a91f1a40425a3ab26801de9a6bcb4b19c33019
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2024-02-01 07:51:08 -07:00
qiankun.wang 89a73decb1 iotrace: iotrace vendor hooks and optimization [2/2]
PD#SWPL-142603

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-25 22:27:19 -07:00
Wanwei Jiang 9593e19a01 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 02:45:35 -07:00
Hanjie Lin e25962c7b7 isolcpus: retry register housekeeping_cpumask kprobe [1/1]
PD#SWPL-146197

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: I0a99d459a260e3aefa3565f03106ed4ea04741ee
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2024-01-08 04:45:29 -07:00
Jianxiong Pan 26b4e21456 c3: remove c3 irrelevant configuration. [1/1]
PD#SWPL-147493

Problem:
c3 memory optimization.

Solution:
remove c3 irrelevant configuration.

Verify:
build pass.

Change-Id: If75afae10b134d272ba57aaad05e8007c70cd560
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-01-04 00:27:09 -07:00
Hanjie Lin 22eaadbdbd sched: change sched_task_high_prio from 110 to 118 [1/1]
PD#SWPL-147985

Problem:
little-high-prio interactive task schedule latency maybe very big
when task group schedule enable

Solution:
increase sched_task_high_prio to optimize schedule latency

Verify:
sc2

Change-Id: I9c0448e48c391432fc7d31805970fcbaceb6bb80
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2023-12-18 00:24:58 -07:00
Hanjie Lin db7f298200 sched_domain: enable BALANCE_WAKE and disable WAKE_AFFINE [1/1]
PD#SWPL-147985

Problem:
need modify sched_domain flags for GKI20

Solution:
modify

Verify:
sc2

Change-Id: I72d8e5abbdea501a001490402c8cd725c629b73a
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2023-12-18 00:24:39 -07:00
Lei Zhang 8594f23db1 debug: optimize registers and pfn dump [1/1]
PD#SWPL-144211

Problem:
n/a

Solution:
1 not dump registers and pfn when warning
2 enable user fault dump
3 enable pfn pagetrace dump

Verify:
on SC2

Change-Id: Id0329bde1dd2d91fc818c12cd502796c3cdf123d
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2023-12-14 22:31:07 -07:00
qinglin.li bcb16f6f67 printk: enabled debug printk for gki2.0 [1/1]
PD#SWPL-140356

Problem:
debug printk not enabled for gki2.0

Solution:
config AMLOGIC_DEBUG_PRINTK to m for gki2.0

Verify:
ohm

Change-Id: Ife312f1fc5237fd810d192919bf1558fd9255fec
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-12-10 22:45:14 -07:00
Lei Zhang 04389a90d1 isolcpus: optimize housekeeping_cpumask [1/1]
PD#SWPL-146197

Problem:
kprobe housekeeping_cpumask fail in common14-5.15

Solution:
optimize kprobe address

Verify:
on T5M AY301

Change-Id: Ic39389877cb9029eac9aabec5badc4ebc192dcac
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2023-12-10 21:07:20 -07:00
jian zhou a5c0659665 audio: optimize the audio log [1/1]
PD#SWPL-144236

Problem:
optimize the audio log

Solution:
optimize the audio log

Verify:
t5m

Change-Id: Ifc7c4d7e0a60e88aa0894487a2ee540441feff71
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2023-12-07 22:29:54 -07:00
Qiankun Wang 90170a9ce7 Revert "smp: apu_enable=0 can't hide cpu completely. [1/1]"
This reverts commit 36722fe8dd.

Change-Id: I7a302e023d25a8805ef63a373120776475af33f7
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-12-05 22:14:16 -07:00
qiankun.wang 36722fe8dd smp: apu_enable=0 can't hide cpu completely. [1/1]
PD#SWPL-119162

Problem:
Function "aml_isolcpus_init" still registers kprobe
when "apu_enable=0" was added to initargs.

Solution:
Function "aml_isolcpus_init" will return directly
when "apu_enable=0".

Verify:
t5m

Change-Id: I91d92d3e6fb6c1cceb3078d0054c0b848bfdd731
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-12-05 02:25:17 -07: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
Hanjie Lin 875fa4747f isolcpus: add amlogic support and boot optimize [1/1]
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>
2023-08-09 21:58:46 -07:00
qiankun.wang f5412875b9 secmon: modify the wrong config [2/2]
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>
2023-08-09 04:29:35 -07:00
song.han e7971b4f06 smc: do not disable preempt with noret smc [1/1]
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>
2023-08-04 02:18:50 -07:00
Hanjie Lin b257fa1e5d debug: GKI20 clean [2/6]
PD#SWPL-132209

Problem:
GKI20 code clean

Solution:
1, clean irq_check function
2, clean smc_thr and psci smc
3, clean AMLOGIC_BGKI_DEBUG_IOTRACE
4, clean CONFIG_AMLOGIC_BGKI_DEBUG_MISC
5, restore trace_android_vh_ftrace_format_check
6, sched_show_task optimize
7, change cpupri_check_rt kretprobe to kprobe
8, iotrace dump use unbound workqueue

Verify:
sc2

Change-Id: Idcdf9010cfd960b80c493e58b3c81bec8468ac84
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2023-07-25 22:16:21 -07:00
Jianxiong Pan e61f35dc14 zapper: memory optimization about usb3, defconfig. [2/2]
PD#SWPL-126879

Problem:
memory optimization.

Solution:
disable usb3
delete useless config

Verify:
t215.

Change-Id: Ie23b7cd2e1ca96100a2534928293d8211917622a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-07-05 21:03:06 -07:00
qiankun.wang 0335d01014 iotrace: save register value in IO-R-E [1/1]
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>
2023-06-29 06:56:16 -07:00
qiankun.wang 52a028cac6 ramoops: don't parse ftrace buf when shutdown or cold boot [1/1]
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>
2023-06-28 06:58:47 -07:00