Commit Graph

102 Commits

Author SHA1 Message Date
qinglin.li c1b59c443a dmc_monitor: filter tvp alloc_from_cma function [1/1]
PD#SWPL-196060

Problem:
tvp use alloc_from_cma alloc protect memory
when dmc access this range, will be creat serror

Solution:
dmc filter tvp alloc_from_cma memory by pagetrace

Verify:
local

Change-Id: I8aff1a76e8f774ae7cc665f62756ef3a510ddd29
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-12-22 17:45:18 -08:00
dongqing.li 732dca472e ramdump: optimise print [1/1]
PD#SWPL-194715

Problem:
optimise print

Solution:
remove some ramdump print info

Verify:
sc2

Change-Id: Ic16cf2c5508724cdf4b22b573389f35f695dde4a
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-12-01 17:48:20 -08:00
qinglin.li 8bb75ecd0d dmc_monitor: filter media use scatter memory [1/1]
PD#SWPL-194719

Problem:
filter media use scatter memory

Solution:
media use alloc_page_boost_work_func alloc scatter memory
filter function alloc_page_boost_work_func

Verify:
local

Change-Id: Iafdbe4fc76b94cd857d232586d0f4b8c00bec2de
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-11-29 16:43:29 +08:00
qinglin.li 0c47a20216 dmc_monitor: optimise print [1/1]
PD#SWPL-194719

Problem:
optimise print

Solution:
use pr_debug print info

Verify:
log

Change-Id: I7b2a60259fef7ab7935d8467eeb796442983a1c7
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-11-27 06:02:49 -08:00
dongqing.li 58f74472f7 ramdump: fix buildin err for parse info. [1/1]
PD#SWPL-191355

Problem:
For the low_mem project, the ramdump driver is
built-in. If many kernel configs are removed
during kernel size trimming, it may lead to build
errors in ramdump parsing info.
The removed configs info can be found in CL 486868.

Solution:
Romove parse info of kimage_voffset when ramdump
drv is built-in.

Verify:
sc2

Change-Id: I36b533bd06e56ca66b87850d01c0b0ad57c3a73c
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-11-20 18:19:03 -08:00
qinglin.li b6bb6672fe ddr_tool: sync patch to 6.12 [1/1]
PD#SWPL-192391

Problem:
sync patch to 6.12

Solution:
sync 14-5.15 commit to 3de6c801e

Verify:
local

Change-Id: Ic45f5a6dec9f66cb1e97c2ce253d35ea87e07734
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-11-17 23:50:01 -08:00
Lei Zhang f592e8febc debug: optimize registers and pfn dump [1/1]
PD#SWPL-185970

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: I2d1505bd168fd9dfc634b46101a21172145eab87
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2024-11-12 23:58:51 -08:00
xing.xu 8b94b653b7 bandwidth: CF1 Single-frame Bandwidth Sampling [1/1]
PD#SWPL-179304

Problem:
Single-frame Bandwidth Sampling

Solution:
Chips before s6 use the DMC method to get the bandwidth
value of a single frame, chips after s6 use the decoder
internal method to get the bandwidth value of a single frame.

Verify:
s6.s7

Change-Id: I135d98a0087733c5df34c7e8f9be39f8f2c96741
Signed-off-by: xing.xu <xing.xu@amlogic.com>
2024-11-04 23:36:13 -07:00
qinglin.li 382ae522a9 ddr_tool: porting to kernel6.12 [1/1]
PD#SWPL-188342

Problem:
porting to kernel6.12

Solution:
1. porting to kernel6.12
2. remove print slab information

Verify:
local

Change-Id: Ia1e46e29146e37bf0040f29a2113949c72ddf2b2
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-10-25 07:31:31 -07:00
dongqing.li 71fc39c31f ramdump: support arm32/arm64 for ker6.12 [1/1]
PD#SWPL-188348

Problem:
ker6.12 souce code is old. And ramdump
is not working properly.

Solution:
1. sync ramdump.c from ker5.15.
2. enable CONFIG_AMLOGIC_RAMDUMP
3. modify TEXTOFFSET=0X0200800 for ker 32bit

Verify:
SC2_AH212

Change-Id: Id19ba0ef1302e9cf4cdf379d10c625519a8eef36
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-10-25 02:08:07 -07:00
Jianxiong Pan 450465a0a7 mm: aml_smmu: move aml_smmu ko to memory_ext directory. [1/1]
PD#SWPL-188508

Problem:
optee depends to aml_smmu ko.

Solution:
make aml_smmu independent.

Verify:
sc2.

Change-Id: Ief77a87d7862ebfacacaaa92e971b19b0e5e9ba0
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-24 00:27:10 -07:00
Jianxiong Pan 37543cc405 mm: aml_smmu: can not find the symbol. [1/1]
PD#SWPL-188508

Problem:
aml_smmu can not find the symbol.

Solution:
update the symbol

Verify:
sc2.

Change-Id: Ia4f3a29e0275ac0a053d8ee5f42e86f3396796c9
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-23 23:50:53 -07:00
Jianxiong Pan c4058b76a5 mm: 32bit: add filecache function. [1/1]
PD#SWPL-188508

Problem:
print filechche info.

Solution:
add filecache debug tool.

Verify:
sc2.

Change-Id: I0008db0adc16bab64d72e5154fac46f749e66630
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-23 23:37:22 -07:00
Wanwei Jiang a73692ccfe bringup: upgrade kernel from 6.11 to 6.12 [1/1]
PD#SWPL-188184

Problem:
upgrade kernel from 6.11 to 6.12

Solution:
AML_KERNEL_VERSION	3
UPSTREAM_VERSION	"5a81cc3248a2"
AML_PATCH_VERSION	"5a81cc3248a2"
MERGE_DATE		"2024-10-09"
1. modify build script
2. port auto patch and move common-mainline to common16-6.12
3. modify the code due to the change of
the remove output_poll_changed in struct drm_mode_config_funcs
4. modify the code due to the change of the remove GPIOF_DIR_OUT
5. modify the code due to the change of the remove no_llseek
6. modify the code due to the change of the struct fd
7. modify the code due to the change of the struct mem_cgroup_reclaim_iter
8. modify the code due to the change of the file unaligned.h

Verify:
local

Test:
bootup to console in fatload mode

Change-Id: I98629ea9e68fca121176682d31dc73b8a8c936f8
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-10-09 18:51:40 -07:00
Wanwei Jiang 911eeadc02 bringup: upgrade kernel from 6.6.10 to 6.6.11 [1/1]
PD#SWPL-183292

Problem:
upgrade kernel from 6.6.10 to 6.6.11

Solution:
1. modify auto patches
2. modify the code due to the change of
the remove function in struct platform_driver
3. modify the code due to the change of
the match function in struct bus_type
4. modify some page function to folio function
5. modify spi module due to some functions changed

Verify:
local

Change-Id: I92c266b6a1bbae363abd0ff50d7f3037e90bc624
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-09-26 15:05:50 +08:00
Jianxiong Pan e7f50e0dae mm: add aml memory debug tools. [1/1]
PD#SWPL-185599

Problem:
add aml memory debug tools

Solution:
enable aml smmu for pcie white list.
enable filecache, watchpoint, userfault, mem_debug, reg_access.

Verify:
sc2.

Change-Id: I2549778560672bc66dcdfe767b5f81f8585293d5
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-09-13 14:39:16 +08:00
dongqing.li 0839fd8d02 ramdump: support for ker6.6 sc2/sm1. [1/1]
PD#SWPL-160377

Problem:
need to support ramdump of sc2/sm1

Solution:
porting from ker5.15.

Verify:
ah212

Change-Id: I118c9409eb3d4b2dd87d859760b5bb4138091ee6
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-06-27 12:08:04 +00:00
Jianxiong Pan 2696df5867 mm: fix the aml_smmu not working problem. [1/1]
PD#SWPL-165128

Problem:
pcie unable to recognize the nvme device.

Solution:
update the aml_smmu code.

Verify:
sc2.

Change-Id: I3950d9b97f6d094c64ac1b2908db13156d5de451
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-04-12 00:15:38 -07:00
qinglin.li 1d6e8fabfb dmc_monitor: fix dmc error due to crash [1/1]
PD#SWPL-160944

Problem:
fix c2 reg error
fix port name is null due to strstr crash

Solution:
fix c2 reg error
fix port name is null due to strstr crash
update to dmc version to 1.5

Verify:
c2

Change-Id: I02f6528d0d61a3dff42852f8e479439993fadaa5
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-15 03:30:49 -08:00
qinglin.li 9c31897d06 ddr_bandwidth: irq request flag mismatch [1/1]
PD#SWPL-160944

Problem:
genirq: Flags mismatch irq 38.
00002084 (dmc_monitor) vs. 00000084 (ddr_bandwidth)

Solution:
fix irq use same irq flag

Verify:
local

Change-Id: I98e45e57ae4e1d1c57553b64ace0795f0f7f4eaa
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-15 03:30:45 -08:00
qinglin.li e9e86bec65 dmc_monitor: disabled dmc monitor alone with ddr_tool [1/1]
PD#SWPL-160189

Problem:
disabled dmc monitor alone with ddr_tool
modify dmc monitor depend on page trace
update dmc version to 1.4

Solution:
disabled dmc monitor with ddr_tool
modify dmc monitor depend on page trace

Verify:
local

Change-Id: Ib9d0463ee0734c3b8ae1dc27b1e0cacf69a605fa
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-15 03:30:37 -08:00
qinglin.li 5c44e983d1 dmc_monitor: fix io_mem array get error [1/1]
PD#SWPL-147355

Problem:
io_mem array get error

Solution:
fix io_mem array get error
update dmc version to 1.3

Verify:
local

Change-Id: I95b69d5c8a06b984858c73d6e2564c8d17214680
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-15 03:30:33 -08:00
qinglin.li 5992853bcb dmc_monitor: optimize port and subport name save [1/1]
PD#SWPL-147355

Problem:
optimize port and subport name save

Solution:
update dmc version to 1.2
optimize port and subport name save

Verify:
local

Change-Id: I2e293ad8b359cdef93475ee976ddc0562e1593e5
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-15 03:30:29 -08:00
qinglin.li e0a5e57585 dmc_monitor: fix irq thread null pointer [1/1]
PD#SWPL-147355

Problem:
old soc may creat a secure but irq thread not be init
when first irq set

Solution:
fix irq thread null pointer
update dmc version to 1.1

Verify:
g12a

Change-Id: I1f0e99db992d52f0acb8e66eb906f0d89bb52b32
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-15 03:30:25 -08:00
qinglin.li 783281ea84 dmc_monitor: use dmc irq thread when irq ratio is too high [1/1]
PD#SWPL-147355

Problem:
due to lockup when dmc irq ratio is too high

Solution:
use dmc irq thread when irq ratio is too high

Verify:
local

Change-Id: Ie13d584f81563e3c2e111fb5d6033f0e2aa0d337
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-03-15 03:30:22 -08:00
Jiucheng Xu 6c243f8c29 ddr_tool: add ddr bandwidth trace for 5.15 [1/1]
PD#SWPL-156027

Problem:
5.15 has no ddr bandwidth trace tool

Solution:
add tools

Verify:
G12A

Change-Id: Ifc4a471809078de7a991ac98e5cd26cb19ec0297
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
2024-03-15 03:30:18 -08:00
qinglin.li a0d971d5c6 ddr_tool: add t3 && t3x ddr priority node support [1/1]
PD#SWPL-151626

Problem:
add t3 && t3x ddr priority node support

Solution:
add t3 && t3x ddr priority node support

Verify:
local

Change-Id: I5cb708db11e60774664a22e13865d4f48e558fa6
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-15 03:30:15 -08:00
Qinglin Li ff64e0e0d1 ddr_bandwidth: fix irq not disabled when mode close [2/2]
PD#SWPL-141263

Problem:
irq not disabled when mode close

Solution:
fix irq not disabled when mode close

Verify:
local

Change-Id: I632b145626e81cddf9aef3a05f7c1ee644c9c478
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-15 03:30:11 -08:00
qinglin.li f9b8dc46b3 ddr_bandwidth: fix irq not disabled when mode close [1/1]
PD#SWPL-141263

Problem:
irq not disabled when mode close

Solution:
fix irq not disabled when mode close

Verify:
local

Change-Id: I1ba42fbe47860838683bdd7a117aabb32b617daa
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-15 03:30:07 -08:00
Wanwei Jiang 05ed255586 upgrade: android15-6.6 in 2024/03 [2/2]
PD#SWPL-160463

Problem:
record merge upstream information

Solution:
AML_KERNEL_VERSION      4
UPSTREAM_VERSION        "23e5041bd90d"
AML_PATCH_VERSION       "23e5041bd90d"
MERGE_DATE              "2024-03-13"

Verify:
a4/a5

Change-Id: I9e5545565e80832b588add194e1b22b1101cbfe4
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-03-14 19:02:50 +08:00
Dezhen Wang 17548f36a0 kernel6.6: support clang build for a4 and a5 [1/1]
PD#SWPL-156726

Problem:
support clang build for a4 and a5

Solution:
fix build error

Verify:
a4 a5

Change-Id: I9aa3e06010344c9a313365d3dcdf1b10b4f75904
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-02-21 04:05:40 -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
Jianxiong Pan ea5f9fa169 mm: move aml_smmu ko to memory_debug directory. [1/1]
PD#SWPL-150034

Problem:
reduce the ko number.

Solution:
move aml_smmu ko to memory_debug directory.

Verify:
local.

Change-Id: If537a6a6493a9944319caa344ad8e3a73c294179
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-01-19 03:11:39 -07: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
Jianxiong Pan 68d6934858 mm: enable file cache. [1/1]
PD#SWPL-150034

Problem:
enable filecache.

Solution:
enable filecache.

Verify:
local.

Change-Id: I26a748ad1ce98a6824bff67e93884356ccb6fdd3
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-01-02 20:01:37 -07:00
Jianxiong Pan e34c1c43ab mm: replace vendor hook with kprobe. [1/1]
PD#SWPL-150034

Problem:
no corresponding vendor hook.

Solution:
use kprobe to get not export function/variable.

Verify:
local.

Change-Id: I6c7abe40fd4d6e7802fe30b2426ace5cbb7ab067
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-29 01:36:17 -07:00
Jianxiong Pan 20b22833ba mm: enable pagetrace for amlogic-6.6. [2/2]
PD#SWPL-150034

Problem:
enable pagetrace for amlogic-6.6.

Solution:
update the function interface according to 6.6.

Verify:
local.

Change-Id: I48fef620a1da21a40f38da4abe59b44d211ce015
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-28 11:03:26 +08:00
qinglin.li e10fc94ead ddr_tool: bring up a4 && a5 dmc [1/1]
PD#SWPL-149336

Problem:
bring up a4 && a5 dmc

Solution:
bring up a4 && a5 dmc

Verify:
a4&&a5

Change-Id: I6c0f0fceb53d484d069afb8f842b73aaf2ff99a0
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-12-18 22:31:17 -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
qinglin.li 90c249a79b dmc_monitor: reserved zero address and enabled dmc monitor [4/4]
PD#SWPL-144091

Problem:
dmc not judge reserved memory failed if use reg function in dts

Solution:
modify alloc function in dts used to reserved memory

Verify:
Detail info

Change-Id: I2dfa087cbbc940273e6495f01eb5acdb7cb3c4b7
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-11-17 08:21:08 -07:00
qinglin.li c979889953 dmc_monitor: reserved zero address and enabled dmc monitor [3/3]
PD#SWPL-144091

Problem:
arm64 use reserved 512K memory

Solution:
arm64 used reserved 512K memory

Verify:
local

Change-Id: If9d847fc68d58a21b0063d9ff4e6afb685a7c4b1
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-11-16 02:51:35 -07:00
qinglin.li d604c3f806 dmc_monitor: reserved zero address and enabled dmc monitor [1/1]
PD#SWPL-144091

Problem:
reserved zero address and enabled dmc monitor

Solution:
reserved zero address and enabled dmc monitor

Verify:
local

Change-Id: Ief29049b1938a163b2f73e516e38c6c29c703f3b
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-11-13 20:37:16 -07:00
Jianxiong Pan ce218b6b98 mm: reduce the print log in momeory module. [1/1]
PD#SWPL-141371

Problem:
optimize memory log.

Solution:
reduce the print log.

Verify:
local.

Change-Id: Id5b9a9240bc94d49f6d311a1f4084ffdf0a5a13a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-05 22:23:43 -07:00
Jianxiong Pan 7cf0f34c3a dmc: print more page information in dmc. [1/1]
PD#SWPL-142086

Problem:
print more page info.

Solution:
whether page in buddy or slab.

Verify:
t5m.

Change-Id: Ic33a685e510c24cde706b8285cb4f62444d98d42
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-05 20:29:25 -07:00
Dezhen Wang 530db67545 ddr: upgrade the ddr tool to g12a [3/11]
PD#SWPL-133253

Problem:
G12A kernel upgrade from 4.9 to 5.15 U kernel basic - ddr tool

Solution:
G12A kernel upgrade from 4.9 to 5.15 U kernel basic - ddr tool

Verify:
sc2

Change-Id: I8e5995b832d3c54dec176a67a183b4b828cfc343
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-11-02 11:15:48 +08:00
qinglin.li 0b87f32de7 ddr_bandwidth: irq too much due to crash [1/1]
PD#SWPL-141263

Problem:
when ddr bandwidth irq handle not register but set,
will be due dmc irq too much,
if dmc and bandwidth use same irq num.

Solution:
not enabled bandwidth irq when irq handle not set

Verify:
sc2

Change-Id: Ie8622c8b8a9a623d936d37a43d3e56d039b83cd1
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-10-17 05:58:37 -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
Jianxiong Pan a72a96b533 dmc: add check for free pages. [1/1]
PD#SWPL-140453

Problem:
the newly released page is not filtered out.

Solution:
add check for free pages.

Verify:
local.

Change-Id: Ib8cfea7fb13cce9bef134864ce6f44c1dbccc7dc
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-09-20 01:29:26 -07:00
dongqing.li e9d42c748b ramdump: ker5.15 creat /sys/kernel/mdump/compmsg [1/1]
PD#SWPL-132538

Problem:
The core-dump file cannot be saved to /data in Android.

Solution:
a. Fix BUG for bad page state when lazy_clear_work is running.
b. Print the parameter infor required for the crash tools.
c. Support for storing crashdump files in Android /data/vender/ramdump/
1)  When a kernel panic occurs, flush cache all.
2)  Restart to uboot stage and compress the full DDR.
3)  Set kernel dts rsv mem based on compressed infor.
4)  Crop reserved memory sub nodes to reduce mem usage.
5)  Kernel stage parsing dts to configure rsv mem.
6)  Android init.rc read sysnode, and generate crash file.

Verify:
sc2_ah212

Change-Id: Ic6fba2c305f9e3171445f3b89afa02c75c27a080
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2023-09-15 02:53:46 -07:00
Dezhen Wang dadc15697a coverity: fix [1/1]
PD#SWPL-136722

Problem:
coverity errors

Solution:
fix the coverity errors

Verify:
local

Change-Id: I5b210b5c44ee6a0e34c1c8b9685fe2d38cd52b1b
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-09-03 21:53:42 -07:00