Commit Graph

6320 Commits

Author SHA1 Message Date
yao liu 17c52ec792 amdv: ko crash when play error video [1/1]
PD#SWPL-161888

Problem:
metadata error and dolby source code stuck in
metadata_parser_process

Solution:
drvier add error check, treat as sdr when error
count > 10.

Verify:
s5

Change-Id: I2eb939ffbe5fa5fc4ae462c40e2d6f00fba3e025
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-06-18 05:51:08 -07:00
huijie.huang 91ed26090c lcd: support dccd parsing flow [2/3]
PD#SWPL-139062

Problem:
DCCD support

Solution:
Support load dccd

Verify:
T5M

Change-Id: I3f30b90b6e27fff1566902b9da848280fe6aa532
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2024-06-18 03:06:22 -07:00
qinglin.li 091b66b611 ddr_tool: support sc2 and t5w priority [2/2]
PD#SWPL-173670

Problem:
support sc2 and t5w priority

Solution:
support sc2 and t5w priority

Verify:
local

Change-Id: I010790af9ee2c8e6fe46d2a426f3b1d9a17b4491
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-06-18 01:56:35 -07:00
lizhi.hu bbda9af34e lcd: fix mode change workflow [1/1]
PD#SWPL-171548

Problem:
cannot display after DRM mode change

Solution:
drm use (vout_server->disable + mode_change) to adjust reso
need reenable lcd when mode_change

Verify:
t3x_bc302

Change-Id: I00baebdcfda1f40c9e264514f5a21cc9e434d0ba
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-06-18 01:55:47 -07:00
Bichao Zheng f4b6a8586a spinand: add W25N01KV support [2/2]
PD#SWPL-148922

Problem:
add W25N01KV support.

Solution:
add the nand id into amlogic nand flash id table

Verify:
s1a

Change-Id: Ia335633779e0e9ee4b70656d20ea0c84e3249688
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2024-06-18 01:55:33 -07:00
jiebing chen 7acf1fe8b1 Audio: enable spdif in pin for s7 [1/1]
PD#SWPL-173815

Problem:
need to enable for spdif in pin for hdmi arc

Solution:
enable spdif pin in audio dtsi

Verify:
use s7

Change-Id: I85b7b02fd56550d4958a36a9e46f82a66e25f887
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-06-18 01:55:25 -07:00
Yongjie Zhu 43223afc2c uvm: fix coverity error about kernel 5.15 [1/1]
PD#SWPL-168349

Problem:
coverity check fail

Solution:
fix errors

Verify:
ohm

Change-Id: I1f614b1d1b33c44995e3d737dd6b8bffc324eea0
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2024-06-18 01:55:11 -07:00
yicheng shen 57729456b5 hdmirx: optimize phy rterm flow [1/2]
PD#SWPL-167196

Problem:
optimize phy rterm flow

Solution:
optimize phy rterm flow

Verify:
t3/t5m/txhd2/t3x

Change-Id: Iefba615e76a0e3a734f18f8367770030df251800
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2024-06-17 21:25:07 -07:00
qianqian.cai fb09e546bc deinterlace: sys allocate mm fail [1/1]
PD#SWPL-172501

Problem:
sys allocate mm fail

Solution:
add CODEC_MM_FLAGS_CMA for cma allocate
from nanxin decoder moduler

Verify:
t5m

Change-Id: I856601d37f60883f951280b81355fe64e94d9454
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2024-06-17 20:03:08 -07:00
qianqian.cai e80cc7dc27 deinterlace: bypass for di pre-vpp link [1/1]
PD#SWPL-172786

Problem:
bypass pre-vpp link

Solution:
when first not bypass

Verify:
t5d

Change-Id: I9c26168f5b3aa156e473ea346947e6cd7693742c
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2024-06-17 20:03:03 -07:00
qianqian.cai 988c27ea91 deinterlace: t5w arb error [1/1]
PD#SWPL-172577

Problem:
arb error

Solution:
add  protect for arb

Verify:
t5w

Change-Id: Ie005af4469d05a9c807a3280bf7e17b1ce01306a
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2024-06-17 07:39:03 -07:00
Gaowei Zhao d86ec6a9e4 hdmirx: Fix screen flicker issue [1/1]
PD#SWPL-172215

Problem:
Some source devices do not send DRM packet per frame.

Solution:
Ensure to send one DRM packet per frames

Verify:
T3X

Change-Id: If92f8004e345c1aa167222b66e137fd63e75a10f
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-06-17 06:03:22 -07:00
xiang.wu1 3e99d70844 hdmitx: add soundbar switch API on hdmi tx driver [1/1]
PD#SWPL-172191

Problem:
[U] need add soundbar switch API on hdmi tx driver

Solution:
1.add sounbar_en node to control soundbar switch
write 1 is on, write 0 is off
2.if soundbar is on, not send hpd event to android
if soundbar is off, keep the original process

Verify:
T7

Test:
DRM-TX-79,DRM-TX-80,DRM-TX-81,DRM-TX-82,DRM-TX-122

Change-Id: I4d2c78064a3d158eca038cbbae945a8331dac76d
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-06-17 06:03:18 -07:00
he.he 48e96cc4a5 usb: black screen display after monkey test [1/1]
PD#SWPL-173442

Problem:
Memory leakage
open usb 2.0 camera fail:SH-20175

Solution:
related host 011

Verify:
t3

Change-Id: I3bd52c35f2aef31f3cb4dbb2eb50f97962d0b032
Signed-off-by: he.he <he.he@amlogic.com>
2024-06-17 03:53:20 -07:00
yudong.cai 9f85040a82 vdin: vdin memory optimization [1/1]
PD#SWPL-173184

Problem:
kernel 5.15 vdin memory optimization

Solution:
delete function

Verify:
t5m

Change-Id: I75fbb0bb296911754bd1557a8f69eabb37149c5d
Signed-off-by: yudong.cai <yudong.cai@amlogic.com>
2024-06-17 03:53:15 -07:00
xiangyang.yan 4c6736039d eth: change txhd2/s1a analog setting [1/1]
PD#SWPL-173748

Problem:
change txhd2/s1a analog setting

Solution:
change txhd2/s1a analog setting

Verify:
S805C1-BG201

Change-Id: I6c08114e678867f25e04efe39c3533453f8a8d4d
Signed-off-by: xiangyang.yan <xiangyang.yan@amlogic.com>
2024-06-17 03:36:04 -07:00
donghui.wang 32a15e6656 ambilight: add ioctl api for get data [1/1]
PD#SWPL-173586

Problem:
miss ioctl api for get data

Solution:
add ioctl api for get data

Verify:
t3x

Change-Id: Ia6f1f69f22ec8e5c68c23c766b5abc48a10c1d60
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-06-17 03:35:52 -07:00
qiang.wei 815d041375 C3: aw409/aw402 256m board tee support [1/1]
PD#SWPL-163726

Problem:
aw409/aw402 256m board tee support

Solution:
aw409/aw402 256m board tee support

Verify:
C3_AW409

Change-Id: Ia53233659215fbab51712765091581f6fdada302
Signed-off-by: qiang.wei <qiang.wei@amlogic.com>
2024-06-16 23:43:11 -07:00
qinglin.li 7972b99614 ddr_tool: support sc2 and t5w priority [1/1]
PD#SWPL-173670

Problem:
support sc2 and t5w priority

Solution:
support sc2 and t5w priority

Verify:
local

Change-Id: Ibe6c3858e04eb60f59b6d44b66a9c0dab7b6f44c
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-06-16 23:03:08 -07:00
honghai.song 9ad3e57451 T5W: limit t5w dts cma range to 32bit ddr range [3/3]
PD#SWPL-170753

Problem:
limit t5w dts cma range to 32bit ddr range

Solution:
limit t5w dts cma range to 32bit ddr range

Verify:
on T5W

Change-Id: Ic2af320507a85a481df708006eb7287da164f202
Signed-off-by: honghai.song <honghai.song@amlogic.com>
2024-06-16 20:05:36 -07:00
Jiacai.Liu 6b63779b8f s4d: CB linux dts modify [1/1]
PD#SWPL-170979

Problem:
s4d linux platform need modify

Solution:
s4d linux dts modify

Verify:
local s4d_ap232

Signed-off-by: Jiacai.Liu <jiacai.liu@amlogic.com>
Change-Id: Iba4204265a610fae3f588401d3a32e6fc047ec72
2024-06-16 20:05:18 -07:00
shihong.zheng 8582af4d3a media: h266 format define. [1/1]
PD#SWPL-172885

Problem:
media_moduls h266 code depend on h266 format define.

Solution:
define h266 format for decoder

Verify:
s6 pxp

Change-Id: Ia001b35292691811425de6b7e8c98e9e3e65575d
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
2024-06-16 20:05:14 -07:00
guoqing.sun a821bcabc1 USBCI: CB2 Null pointer dereferences. [1/1]
PD#SWPL-172788

Problem:
Dereference before null check

Solution:
fix it

Verify:
local

Change-Id: I85ab490a794d717299674b31f5ea60ff8a0f5419
Signed-off-by: guoqing.sun <guoqing.sun@amlogic.com>
2024-06-14 01:56:50 -07:00
yuhua.lin 5a7edf7493 ge2d: display shadow when ge2d rotate 180 [1/1]
PD#SWPL-173607

Problem:
display shadow when ge2d rotate 180

Solution:
1. do not use repeat function
2. modify x_chr_phase

Verify:
t5m

Change-Id: I4d0ae458cbf8f79c73be2fe9e064ea2e2b752362
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-06-13 23:56:53 -07:00
dian.shao 23fbeb25e1 usb: nak retry time too long [1/1]
PD#SWPL-173238

Problem:
Nak retry time too long.

Solution:
Modify reg params.

Verify:
s7.

Change-Id: I9ab30914f44125e967ec9047e6cdb5884faf1e91
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-06-13 22:40:40 -07:00
gerrit autosubmit d173507458 Merge "yocto: CF1 Add s7_bo201 dts [1/1]" into amlogic-5.15-dev 2024-06-13 22:40:33 -07:00
zhenyu.gao 1226a16e66 yocto: CF1 Add s7_bo201 dts [1/1]
PD#SWPL-172322

Problem:
New featrue

Solution:
Add s7_s805x3_bp201_linux_1g.dts
Add s7_s805x3_bp201_linux_512M.dts

Verify:
jenkins

Signed-off-by: zhenyu.gao <zhenyu.gao@amlogic.com>
Change-Id: I0483cc418caa2f0444f7e9fb184da59f03ecc8f7
2024-06-13 22:40:32 -07:00
congyang.huang 4011b879cf drm: use the appropriate sequence_id to decide attr during set mode [1/1]
PD#SWPL-172323

Problem:
hdmi block screen while entering recovery

Solution:
use appropriate sequence_id to prevent the failure of
drm set mode during recovery mode

Verify:
s7

Test:
DRM-OSD-2

Change-Id: Ic2e50120abc4edbd25d8de34126f2d0b716e7584
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-06-13 01:47:25 -07:00
Haotian Guo 7ae7cc951c hdmirx: move hdp_c_ctrl [1/1]
PD#SWPL-170980

Problem:
Writing hdp_c_ctrl conflicts

Solution:
move hdp_c_ctrl

Verify:
t7

Change-Id: Ie3f2c25a75ad81e1cb01d7aa7e9b35c255169229
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2024-06-13 01:47:13 -07:00
zongdong.jiao 65c0df5159 hdmitx: fix gpio_to_desc warning [1/1]
PD#SWPL-170731

Problem:
prk: [ 2.356825@0]h invalid GPIO 2
prk: [ 2.356894@0]h ------------[ cut here ]-----------
prk: [ 2.356917@0]h WARNING: CPU: 0 PID: 0 at drivers/gpio/gpiolib.c:106
	gpio_to_desc+0xd4/0xdc
prk: [ 2.356923@0]h Modules linked in:
prk: [ 2.356925@0]h
prk: [ 2.356932@0]h CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.9.269 #1
prk: [ 2.356933@0]h Hardware name: gxl_p212_2g23 (DT)
prk: [ 2.356941@0]h PC is at gpio_to_desc+0xd4/0xdc
prk: [ 2.356943@0]h LR is at gpio_to_desc+0xd4/0xdc

Solution:
Correct the gpio value judgement

Verify:
gxl/s905x

Test:
DRM-TX-38

Change-Id: Ic9e9762df166ce9359848bd053efcdd790473528
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2024-06-13 01:47:02 -07:00
Matthew Shyu 3313854231 crypto: fix driver stuck when invalid key set [1/1]
PD#SWPL-172313

Problem:
When invalid key set, the driver stuck at waiting for owner bit.

Solution:
If the DMA meets error during processing, it will skip setting owner
bit.  Therefore, we should only wait for owner bit if everything is
good.

Verify:
S4D

Change-Id: Ic41998f568e78759e65a1c034ef30ae1eebd132a
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
2024-06-13 00:58:33 -07:00
Pengcheng Chen a739a2eb19 codec_io: skip ioremap when dts resource not get [1/1]
PD#SWPL-169423

Problem:
skip ioremap when dts resource not get

Solution:
skip ioremap when dts resource not get

Verify:
txhd2

Change-Id: Idaa4b9f95ed239497c34a9def8e85cfb455f9841
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-06-12 23:44:47 -07:00
jialong.jiang b385842d23 amdv: t7 flashes blue screen when switching to HDMI. [1/1]
PD#SWPL-173236
PD#SH-19865

Problem:
t7 flashes blue screen when switching to HDMI.
do not detunnel for first dv frame.

Solution:
do parser/control_path when hdmi_inst_id changed.

Verify:
t7

Change-Id: I0d54b1865dbfb3c1e661c07e1341cd27a4604ac5
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2024-06-12 23:44:34 -07:00
hai.cao 1d8c9d64d2 video: safa scale down need disable analy_en [1/1]
PD#SWPL-172285

Problem:
safa scale down need disable analy_en

Solution:
fix it

Verify:
s7d

Change-Id: Id195541e5bbc261ff51752e7c3df4f2a879e70f5
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-06-12 19:58:33 -07:00
Jiacai.Liu 4db7b228c6 t5w_lw: add 1g t5w linux dts file [1/1]
PD#SWPL-172372

Problem:
add 1g t5w linux dts file
add linux dts check in makefile

Solution:
add 1g t5w linux dts file
add linux dts check in makefile

Verify:
local

Signed-off-by: Jiacai.Liu <jiacai.liu@amlogic.com>
Change-Id: I4bcbd645659e5badf38ec72bfb6fb1098f951396
2024-06-12 13:41:06 -07:00
haitao.liu 06a69bbd93 vdin: optimize the stopping process [1/1]
PD#SWPL-168740

Problem:
video flicker when changing dlg from OFF to ON

Solution:
1.disable vlock after video path unreg
2.video path unreg before vdin stopped

Verify:
t5w

Change-Id: I26fa30245a64f05d8a372e39ae2f32a8cdb0a44f
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-06-12 13:41:00 -07:00
xiaotao.wei b901af4b83 ion: disable ion-dev config in kernel 5.15 [1/1]
PD#SWPL-160915

Problem:
dmaheap should be used in kernel 5.15

Solution:
1.disable ion-dev config and use dmaheap instead
2.disable ion-fb/heap-fb on linux
3.resize gfx-heap to max size of fbdev and wayland-drm backend,
refer to https://confluence.amlogic.com/display/SW/dma+heap+size+for+Linux

Verify:
s7

Change-Id: I17eb17ef3a327fb9648785ac413a3e239012bde8
Signed-off-by: xiaotao.wei <xiaotao.wei@amlogic.com>
2024-06-12 13:40:36 -07:00
lizhi.hu 578a7fb4b5 vout: add connector_type compact [1/1]
PD#SWPL-166373

Problem:
display error in case of uboot2015 + kernel5.15

Solution:
add connector_type env as vout for compatibility

Verify:
t5w_yocto

Change-Id: I1b222070224e431b40eb842b2f7318e9bc075f60
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-06-12 04:53:33 -07:00
chao.zhang 554cc7d95a pdvfs: enable s7 cpu pdvfs [1/1]
PD#SWPL-167298

Problem:
enable s7 cpu pdvfs of s805x3

Solution:
use different index by efuse vmin

Verify:
S7

Change-Id: Ia911433c2e56b2a5394d2072b29fcd24d1fe97c3
Signed-off-by: chao.zhang <chao.zhang@amlogic.com>
2024-06-12 02:14:52 -07:00
Rong Chen 29a2603f07 mmc: clean coverity [1/1]
PD#SWPL-168329

Problem:
clean coverity

Solution:
clean coverity

Verify:
g12a

Change-Id: I09f90815caad67603dd2b6254a434183a2f6e8c3
Signed-off-by: Rong Chen <rong.chen@amlogic.com>
2024-06-11 22:35:24 -07:00
honghai.song 136bd31a09 T5W: limit t5w dts cma range to 32bit ddr range [1/1]
PD#SWPL-170753

Problem:
limit t5w dts cma range to 32bit ddr range

Solution:
limit t5w dts cma range to 32bit ddr range

Verify:
on T5W

Change-Id: Icdc0cc7377b445f8f471b6e3711a8878c6350ca3
Signed-off-by: honghai.song <honghai.song@amlogic.com>
2024-06-11 22:35:19 -07:00
chen.xu 8f7b8d6dd3 video_composer: fix use dewarp rotate vc set crop to vpp [1/1]
PD#SWPL-171604

Problem:
use dewarp rotate vc set crop to vpp

Solution:
support

Verify:
T7C

Change-Id: Iaac141168c7ee7be57fd1b43af10e288193bb1cd
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-06-11 22:35:15 -07:00
jialong.jiang bfd46f74c8 amdv: add interface to set hlg source min/max [1/1]
PD#SWPL-171414

Problem:
hlg min/max is fixed value

Solution:
add interface to set hlg source min/max

Verify:
tm2

Change-Id: I668123a824a4bc63f67981272fb3952ea2bae5a7
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2024-06-11 03:45:35 -07:00
yaoyu.xu 876eac68ea hdmirx: do not use vcbus mute unless game [1/1]
PD#SWPL-170597

Problem:
screen split when signal change.

Solution:
do not use vcbus mute unless game.

Verify:
t3x

Change-Id: I8586dd44c8b7d3b56d1f59dc46c629eabb93e5d5
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-06-11 03:45:21 -07:00
mingyang.he 01cc3bcfbe drm: flash screen before bootanimation [1/1]
PD#SWPL-170497

Problem:
handle8(vpp1) and handle9(vpp2) write same reg with different val

Solution:
set VPP_INTF_OSD3_CTRL in handle9(vpp2) only

Verify:
t3x

Test:
DRM-OSD-13

Change-Id: I0443e4fa05674f205c81c1a3ca70b843f715189c
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-06-11 01:50:12 -07:00
Dezhen Wang fdb27f127d upgrade: change s7&s7d to gki_20 [1/1]
PD#SWPL-171423

Problem:
change s7&s7d to gki_20

Solution:
change s7&s7d to gki_20

Verify:
Detail info

Change-Id: I4f5e2e2ce5e486d5632c7acb4b2159f9e7ad2e3c
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-06-11 01:49:55 -07:00
congyang.huang a6d9be6753 drm: add protection for logo load [1/1]
PD#SWPL-172336

Problem:
drm logo init failed

Solution:
add protection for logo load

Verify:
ohm

Test:
DRM-OSD-2

Change-Id: I31c9f580d5a181e5bcb33a211d4b7bbd3a3d8864
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-06-11 01:49:50 -07:00
qiyao.zhou 6ae4cac925 diprocess: move thread flow in diprocess. [1/1]
PD#SWPL-171533

Problem:
create thread would pending hwc process.

Solution:
Move thread flow to open and release flow.

Verify:
t5w

Change-Id: Ia1cea13985756eb66445484dd9afbf65ca2be95e
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-06-11 01:49:21 -07:00
chuangcheng.peng f602f0d40b demux: add pts adjust for t5w chip [1/1]
PD#SWPL-172223

Problem:
video not smooth

Solution:
add pts adjust for slow es

Verify:
verified at project

Change-Id: I74df9a677aca67a243d1c00b1be5bcfcaf5ce27e
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-06-11 01:49:11 -07:00
yaoyu.xu 11e6779c74 dsc: dsc flow modify [1/1]
PD#SWPL-165955

Problem:
some dsc format can not decode.

Solution:
adjust dsc settings.

Verify:
t3x

Change-Id: If89605bbaeed3f40b59d4c53a4721de2929f4f23
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-06-11 01:49:03 -07:00