Commit Graph

7830 Commits

Author SHA1 Message Date
ruofei.zhao b8a855ff79 hdmitx: add hdmitx diagnostic information [1/1]
PD#SWPL-174866

Problem:
hdmitx needs to report diagnostic information

Solution:
add hdmitx diagnostic information

Verify:
SC2
S5

Test:
DRM-TX-127

Change-Id: Ieefeb0e7c0286229c857a762b967c2ba2d8573e9
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-11-07 00:40:40 -08:00
zhewen.luo a77f12abaf resman: support reporting error info. [1/1]
PD#SWPL-149860

Problem:
1.ErrorMonit requires additional debug
levels to be set to the driver.
2.ErrorMonit needs to receive the error
information from the driver in real time.

Solution:
resman driver needs to add nodes so that
ErrorMonit can get the error information
in real time.

Verify:
S905Y4

Change-Id: I8feaacc2e03b201a568b8abbdf77ba4c5e2e0859
Signed-off-by: zhewen.luo <zhewen.luo@amlogic.com>
2024-11-07 00:40:32 -08:00
nengwen.chen c2353ecfeb dts: s7d: add mxl258c serial-4wire dts [1/2]
PD#SWPL-177956

Problem:
s905x5m need to support PIP FCC.

Solution:
support D816 mxl258c serial-4wire.

Verify:
s7d bm201.

Change-Id: I0decc1fbeaa608dc062cb127ac93e46f049c9c8d
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
Signed-off-by: gongwei.chen <gongwei.chen@amlogic.com>
2024-11-07 00:40:08 -08:00
yuhua.lin b6200295f0 vpu: fix coverity issue [1/1]
PD#SWPL-190843

Problem:
coverity issue

Solution:
fix it

Verify:
t5m

Change-Id: I1b47e312b83a7b651c29fb9736f79244649eaffc
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-11-06 22:10:10 -08:00
Jianxiong Pan 4cb71ee5a1 config: sync loki optimization to adt4 lowmem project. [1/1]
PD#SWPL-190810

Problem:
adt4 memory optimization.

Solution:
sync loki optimization to adt4 lowmem project.

Verify:
adt4.

Change-Id: Ie92cfce8aadc4004cc37f85cc58a43ef0ce406c7
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-11-06 20:20:23 -08:00
saisai.chang 8641fe082b audio: adjust the output volume of TDMC [1/1]
PD#SWPL-186208

Problem:
1.the remote control cannot adjust the HDMI output volume
2.The audio module should not be controlled	by
	CONFIG_AMLOGIC_ZAPPER_CUT macro

Solution:
1.change the output source of HDMI to TDMC
2.change CONFIG_AMLOGIC_ZAPPER_CUT to CONFIG_AMLOGIC_AUDIO_CUT

Verify:
ap232

Signed-off-by: saisai.chang <saisai.chang@amlogic.com>
Change-Id: Ic6fbaef0e138e50d2ae3bb26e97adfb9d0d3f628
2024-11-06 18:45:40 -08:00
chenyang.liu cdc197db10 lcd: fix coverity defects from linux-5.15 [1/1]
PD#SWPL-190841

Problem:
lcd driver in linux-5.15 has coverity defects.

Solution:
fix defects

Verify:
none

Change-Id: Iabb3077719f4963c49d1cd2dfce48af225259856
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2024-11-06 17:52:25 -08:00
Zelong Dong afb4c6f668 ir: optimize wakeup event [1/1]
PD#SWPL-190167

Problem:
ir wakeup event would block suspend about 2s

Solution:
optimize wakeup event

Verify:
t6d

Change-Id: Ifebd3ce022f529eaff0259c7e24caf4fd6125ae7
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-11-06 17:45:39 -08:00
zhan.wang b05eff5711 amvecm: add iotcl to get chip cls [1/1]
PD#SWPL-191789

Problem:
add iotcl to get chip cls

Solution:
add iotcl to get chip cls

Verify:
verify on t5m

Change-Id: I2f578e0b0296da5c9a826963b9524572368164b9
Signed-off-by: zhan.wang <zhan.wang@amlogic.com>
2024-11-06 17:39:38 -08:00
Zhu Lv 494ed9917c bt: bt open fail [1/1]
PD#SWPL-191396

Problem:
bt open fail

Solution:
add reset hold time

Verify:
s5

Change-Id: Idb3006650f139f6d8e3b888702bd89a775754c57
Signed-off-by: Zhu Lv <zhu.lv@amlogic.com>
2024-11-06 17:38:32 -08:00
congyang.huang 5b6ccb5f2c drm: use mode hskew to indicate whether it's qms mode or vic mode [1/1]
PD#SWPL-190877

Problem:
need add flag to indicate whether it's qms mode or vic mode

Solution:
use mode hskew to indicate

Verify:
s7 qms

Test:
DRM-OSD-45

Change-Id: Ib675650b02d687438aa6a9eae3d846e6fac46c10
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-11-06 17:38:08 -08:00
Evoke Zhang be29aa7fd7 lcd: update chip init for venc and phy [1/1]
PD#SWPL-191449

Problem:
venc and phy init need check chip type

Solution:
update chip init for venc and phy

Verify:
ay301

Change-Id: Iefe657b541e9d91dbcc365e55576adb983385cfd
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-11-06 06:18:41 -08:00
zijie.hong 80e72c250f vin: k5.15-u coverity error cleanup [1/1]
PD#SWPL-190840

Problem:
coverity error

Solution:
modified

Verify:
k5.15-u

Change-Id: I9c839edeea788d4b22d399ba92aec3c717bf3b1e
Signed-off-by: zijie.hong <zijie.hong@amlogic.com>
2024-11-06 06:18:30 -08:00
lukang.jia 91ff6ba707 frc: frc coverity [1/1]
PD#SWPL-190800

Problem:
frc coverity

Solution:
N/A

Verify:
T3X

Change-Id: I62bad3ecac2e3cbebb87ed0b18eaf6aeeed6edbc
Signed-off-by: lukang.jia <lukang.jia@amlogic.com>
2024-11-06 00:33:57 -08:00
qiyao.zhou b07a4b7fd0 di_process: di not work for interlace stream [1/1]
PD#SWPL-191644

Problem:
bypass flag been set in dummy output,but not
reset for later frame

Solution:
Modify bypass flag set flow in DI process.

Verify:
s7

Change-Id: If26abb82e372df05914401727d273584a61f3434
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-11-05 22:39:02 -08:00
qinglin.li 3de6c801eb ddr_tool: coverity fix [1/1]
PD#SWPL-190779

Problem:
coverity fix

Solution:
coverity fix

Verify:
local

Change-Id: I63c28cec53c2395760eb0a12c53891cdc6110886
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-11-05 22:38:55 -08:00
Jianxiong Pan f46d4e56db config: sync loki optimization configs to trunk. [1/1]
PD#SWPL-189471

Problem:
memory optimization.

Solution:
remove useless configs.
CONFIG_KALLSYMS_ALL=n
CONFIG_SCHEDSTATS=n
CONFIG_BLK_CGROUP=n
CONFIG_EROFS_FS_PCPU_KTHREAD=y
CONFIG_EROFS_FS_PCPU_KTHREAD_HIPRI=y
CONFIG_RTC_NVMEM=n
CONFIG_NVMEM=n
CONFIG_NVMEM_SYSFS=n
CONFIG_HVC_DRIVER=n
CONFIG_SYS_HYPERVISOR=n
CONFIG_PPS=n
CONFIG_XZ_DEC_X86=n
CONFIG_XZ_DEC_POWERPC=n
CONFIG_XZ_DEC_IA64=n
CONFIG_XZ_DEC_SPARC=n

Verify:
sc2.

Change-Id: I310bf8daf2dc328b85e45122204b94e5827c2a97
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-11-05 22:38:44 -08:00
Jian Hu 67bf380128 clk: t6d: fix hangup when clk is builtin [1/1]
PD#SWPL-191355

Problem:
it hangs up when clk is builtin

Solution:
1.axi clock is a system clock, add critical flag for axi clock
2.let clk driver register earlier than the relying on it, this will
save the boot time.

Verify:
t6d

Change-Id: I334e473652fbb2b69c31261261f85262099f5ec1
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2024-11-05 22:35:25 -08:00
yaoyu.xu 55de42db94 hdmirx: close override when 420 [1/1]
PD#SWPL-191162

Problem:
420 abnormal after switching to 422.

Solution:
close override when 420.

Verify:
T3X

Change-Id: I9b2bf3bc99150e3dc6f0a16fa40159aefe0e450f
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-11-05 22:35:04 -08:00
Xingxing Wang 56f2b076d4 thermal: BUG: KASAN: global-out-of-bounds in strncasecmp+0xfc/0x214 [1/1]
PD#SWPL-189590

Problem:
container_of thermal_governor_list head is not thermal_governor structure,
then we can't use gov->name to visit.

Solution:
use sprint_symbol to convert gov->name, and then use the converted symbol
to compare with the target governor name.if match then set the target
governor ,else skip current node.
note:
1.this solution strictly rely on CONFIG_KALLSYMS, if CONFIG_KALLSYMS
is not set for gki20 project, then the solution would fail.
2.remember to configure default governor in config file for non-gki20
project.

Verify:
S5

Change-Id: Ie5b2ddcdb5bcc5c1b461e526fcc4107e0c8d016f
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-11-05 22:34:57 -08:00
yao liu 9d61e8e7bf amdv: display incomplete in dlg+stretch_zoom [1/1]
PD#SWPL-191318

Problem:
In strect_mode+dlg, there is vd1 crop and vskip,
3840x2160=>3840x809(crop 270+270+ vskip).
And netflix dv stream also contain AOI metadata,
AOI combined with VD1's crop information resulted in too many black border.

Solution:
update dv AOI info according to vd1 crop and vskip info.

Verify:
t5m

Change-Id: I5de3c02cb37390f5f5c1b060f1e3cb264eaefee5
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-11-05 22:34:24 -08:00
jiebing chen 1dae4adbbd Audio: add mixer driver support [1/1]
PD#SWPL-183230

Problem:
need to support mixer driver

Solution:
add mixer driver

Verify:
t6d

Change-Id: I29cb7ea70553da7e1c7ff67c8bf824e14a4893b2
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-11-05 22:33:51 -08:00
qiyao.zhou e759eb5b26 videoqueue: add config for 144/165 output [1/1]
PD#SWPL-191186

Problem:
Add config for 144/165 fps output.

Solution:
Add config for 144/165 fps output.

Verify:
t5m

Change-Id: I7145a3b9f397ca1fd48b79bc4807e40980a52df3
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-11-05 21:02:01 -07:00
rong.wang 4a94fb6044 deinterlace: di task loading high [1/1]
PD#SWPL-189702

Problem:
di main task grab di mem task resource;
di mem can't alloc memory

Solution:
modify the task flow

Verify:
S905Y4

Change-Id: Id82cde506fd1c6607b9606f7fa8f6a49cdd2de58
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2024-11-05 20:10:15 -07:00
ruofei.zhao a64bd94302 hdmitx21: fix qms_vic_lists array out of bounds issue [1/1]
PD#SWPL-190805

Problem:
qms_vic_lists array out of bounds

Solution:
fix qms_vic_lists array out of bounds issue

Verify:
BL201-S905X5

Test:
DRM-TX-75

Change-Id: I2c06f6e61120bba0c281fa3f761cffc3efd21b9c
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-11-05 19:28:35 -07:00
chen.xu 10bc2ddee4 video_composer: fix panic while dma addr out 4G [1/1]
PD#SWPL-190854

Problem:
while dma addr out 4G vc panic.

Solution:
1.need add code access to above 4G ddr.

Verify:
S6

Change-Id: I6155c730011658343c38df2227fe8b93d29d3158
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-11-05 19:28:22 -07:00
brian.zhu cf6e509b2e vpp: do not hskip for vd2 afbc 444 mode [1/1]
PD#SWPL-190264

Problem:
Do not hskip for vd2 afbc 444 mode

Solution:
use dw data for afbc 444 mode when src > max src

Verify:
t5m

Change-Id: Icaf17fd206678ec7f2b234f4acdecf9293aca383
Signed-off-by: brian.zhu <brian.zhu@amlogic.com>
2024-11-05 19:28:14 -07:00
Gaowei Zhao 423951e5d3 hdmirx: Optimize clear of edid segment [1/1]
PD#SWPL-190716

Problem:
EDID segment doesn't clear

Solution:
Skip edid offset judgment of current port

Verify:
t3x

Change-Id: Id7d6d062e1b75862179d4b609fe77908bf55f881
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-11-04 06:03:16 -07:00
zongdong.jiao 670775199d hdmitx: add mask for qms capability [1/1]
PD#SWPL-190878

Problem:
add mask for qms capability

Solution:
add mask for qms capability

Verify:
s7/ross

Test:
DRM-TX-38

Change-Id: I2f7a008e5d69507b99b954d71c92a0454ccac49d
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2024-11-04 06:02:46 -07:00
dongqing.li 5ab9ff40cf ramdump: free more memory to avoid compression fail [1/1]
PD#SWPL-190766

Problem:
Ramdump has a high probability of compression failure.

Solution:
Change the malloc size from 1MB to 512kb to free more mem.

Verify:
T5D loki

Change-Id: Ib2384556113092a642082e35f40da4e63694f6ce
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-11-04 06:02:37 -07:00
Pengcheng Chen 8c5c49a91f vpp: update vd crop info for amdv [1/1]
PD#SWPL-191318

Problem:
update vd crop info for amdv

Solution:
update vd crop info for amdv

Verify:
t5m

Change-Id: Ieaf380c85d0fe3e735f43d5878d6967460b3509c
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-11-04 06:02:19 -07:00
shaohui sheng 70d1c07b79 audio: Set 3d surround parameter error [1/1]
PD#SWPL-180122

Problem:
3d surround needs to set 6 parameters to enter the
register, but only 5 parameters are actually set.

Solution:
Modified to set 6 parameters into the register.

Verify:
test T6D and PA1

Change-Id: I83f56b33a89b2fb65a6899a36a77bbf4197e3841
Signed-off-by: shaohui sheng <shaohui.sheng@amlogic.com>
2024-11-04 06:01:57 -07:00
Dezhen Wang ffa9b1df58 script: build kernel for google [1/1]
PD#SWPL-190613

Problem:
build kernel for google

Solution:
fix google build script

Verify:
local

Change-Id: I8e425dccc46cc0aa300ab19b1ca65d42a9974ae4
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-11-04 05:42:55 -07:00
qianqian.cai 16eb0355cb deinterlace: adjust t6d di dmc priority [1/1]
PD#SWPL-191068

Problem:
adjust t6d di dmc priority

Solution:
adjust t6d di dmc priority

Verify:
t6d

Change-Id: Ia3f705657ef519ad8711cefcc20b7849beb61e6c
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2024-11-04 05:41:59 -07:00
Evoke Zhang 76f7aaccf1 lcd: optimize driver log [2/2]
PD#SWPL-185137

Problem:
need optimize driver log

Solution:
optimize driver log

Verify:
bc302

Change-Id: I472ae14740d8ba37821aa04665591f27e79447c2
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-11-04 05:41:37 -07:00
Liming Xue 9d205871bb thermal: kernel5.15 gpu cooling device bind failed [1/1]
PD#SWPL-188051

Problem:
thermal gpu cooling device bind failed, the nodename in thermal
gpu cooling is gpufreq_cool0, but the gpu uses bifrost, so the address
cannot be matched in bind

Solution:
change the thermal gpu cooling device nodename to bifrost

Verify:
sm1/g12b

Change-Id: I7dfdc01af7501e06b798114821181025563e29ca
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-11-04 05:41:24 -07:00
Liming Xue e6e5414cb7 T5M: thermal gpu cooling device bind failed [1/1]
PD#SWPL-184916

Problem:
thermal gpu cooling device bind failed, the nodename in thermal
gpu cooling is bifrost, but the gpu uses valhall, so the address cannot
be matched in bind

Solution:
change the thermal gpu cooling device nodename to valhall

Verify:
T5M

Change-Id: I5fe8c4394894a832eaff8a37bb376698b55fcb9e
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-11-04 05:41:13 -07:00
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
Feng Chen b6fefd28f2 nand: S4D adds partitions abnormally [1/1]
PD#SWPL-190919

Problem:
1.mistakes from SWPL-181442

T6D boot partition name: "bootloader" -> "bl2"

When S4 platform adding normal partitions,
partition with name "bl2e" will be matched
to process of add boot partitions.

2.inconsistent backups

Solution:
1.use strcmp replace strncmp
2.changes to 8 backups for S4D

Verify:
S4D

Change-Id: Ia0dee5e3397c529d6199495c24084150d24efba1
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2024-11-01 09:51:00 -07:00
chen.xu aeea6a041a video_composer: fix dewarp rotate blurred screen [1/1]
PD#SWPL-190323

Problem:
dewarp rotate blurred screen.

Solution:
1.Buffer address overflow.

Verify:
S6

Change-Id: Ied264524a021ac350f30ae5f4fefb9638e05c893
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-11-01 09:50:55 -07:00
yao liu 071121b0ed amdv: add rdma pre vsync for t5m [1/1]
PD#SWPL-189881

Problem:
DV write 1a73 bit16 by postvsync rdma, vpp
write 1a73 bit28 by prevsync rdma. Different
rdma channel will lead to write error.

Solution:
add prevsync and postvsync auto detect for amdv

Verify:
t5m

Change-Id: I2757cf24c0d40491b6978ce3594e973cf432709d
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-11-01 09:50:19 -07:00
yao liu 305666acff amdv: t3x slt [1/1]
PD#OPS-8640

Problem:
t3x slt function

Solution:
add t3x slt function

Verify:
t3x

Change-Id: I4667fd1eb43f74b801c83a6c7dc75e802626577e
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-11-01 09:50:10 -07:00
qiyao.zhou 6fcc39d9c0 s5: enable di in display side for s5 [1/3]
PD#SWPL-186512

Problem:
Android U support di backend for s5.

Solution:
Android U support di backend for s5.

Verify:
s5

Change-Id: I91de8156994914e16da8cda4b448a7252c709c97
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-11-01 09:50:03 -07:00
Yu Tu 98671376a2 pci: clean coverity error [1/1]
PD#SWPL-190822

Problem:
clean coverity error

Solution:
modified code

Verify:
sc2

Change-Id: Iefef6c015b1a4271928ce9f162a23e06cabf23d7
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-10-31 03:10:59 -07:00
Yu Tu f77b77b3c9 uart: clean coverity [1/1]
PD#SWPL-190834

Problem:
clean coverity

Solution:
modified code

Verify:
sc2

Change-Id: I141d90acfcf42495fefa5b51ab78be74567b0b88
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-10-31 03:10:46 -07:00
shuanshuan.jiang bb2b2444c9 camera: fix coverity issue [1/1]
PD#SWPL-190770

Problem:
coverity issue: the function of "parse_power"
may cause memory - corruptions

Solution:
using static value to save label of gpio

Verify:
local

Change-Id: I95b79ca2ed461959e9be6ddd731429f79e4a2e7e
Signed-off-by: shuanshuan.jiang <shuanshuan.jiang@amlogic.com>
2024-10-31 03:10:40 -07:00
Jianxiong Pan b0a1afc847 mm: reduce cma isolate failed print. [1/1]
PD#SWPL-190181

Problem:
isolate failed print too much.

Solution:
reduce cma isolate failed prints.

Verify:
local.

Change-Id: I2fc12f448bb7513ce6372a811408b24b0ee91f63
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-31 03:10:33 -07:00
he.he 4d85091474 usb: clean usb coverity [1/1]
PD#SWPL-190835

Problem:
clean usb coverity

Solution:
clean usb coverity

Verify:
all

Change-Id: I0522381ae418c83e1024c4edc1ca31eec2f6870b
Signed-off-by: he.he <he.he@amlogic.com>
2024-10-31 03:10:27 -07:00
Pengcheng Chen bab2e6e82c vpp: add lcevc support for t5w [1/1]
PD#SWPL-191061

Problem:
add lcevc support for t5w

Solution:
add lcevc support for t5w

Verify:
t5w

Change-Id: I742c0ffcfb40b31991d0271eca295c292c88f466
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-10-31 03:10:07 -07:00
lele xiang 1b5bbe3525 codec_mm: CF1 codec_mm new secure memory control mode. [1/1]
PD#SWPL-188127

Problem:
tee provide the new interface tee_sectbl_secmem_set
which can support little-grained memory protection

Solution:
support some projects that do not open CONFIG_AMLOGIC_TEE

depends on CL:
448900
482499
473557

Verify:
C302X

Change-Id: I72482ebdea228c12d066d9a1ee34b98ac8564138
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2024-10-31 03:09:57 -07:00