Commit Graph

4537 Commits

Author SHA1 Message Date
Jianxiong Pan 455d10eff1 zapper: disable hdmitx20 and mbox. [1/1]
PD#SWPL-126879

Problem:
s1a memory optimization.

Solution:
disable hdmitx20 and mbox.

Verify:
s1a.

Test:
s1a.

Change-Id: I317718936fdc14ec3b30faae7672fea66ac4541c
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-03 04:25:04 -07:00
mingyang.he 7385476aee drm: fix screen flash when video is playing while osd closed [1/1]
PD#SWPL-144746

Problem:
flash screen after osd disappear when play some h264/mpeg2 stream

Solution:
manipulate specific postblend reg and mif reg in the same vsync

Verify:
t7c

Test:
DRM-OSD-133

Change-Id: I651d4df3e0d4e82eadafa848e3aba2088028ea40
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2023-12-01 06:25:58 -07:00
ruofei.zhao 71f39f244f hdmitx: remove 640x480p60hz resolution [1/1]
PD#SWPL-145306

Problem:
when resolution switch to 640x480p60hz,
it will display no signal for 10s during boot up

Solution:
remove 640x480p60hz resolution

Verify:
S5/SC2

Test:
DRM-TX-66

Change-Id: I0c4373e9554c75bb1941dbab465b30e1d8f8d175
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2023-12-01 06:25:54 -07:00
xiang.wu1 fd267fc2d6 hdmitx: attach vinfo in set_current_vmode [1/1]
PD#SWPL-144323

Problem:
always hdr, when uboot enters the kernel, it will send the
sdr package first and then the hdr package, causing the TV
to flash black once or the color will darken.

Solution:
When the kernel starts up, vout takes priority over vpp.
the HDR/DV module will use vinfo information, it needs
to attach vinfo after the EDID is parsed and before the
HDR/DV module is enabled.

Verify:
ohm

Test:
DRM-TX-70

Change-Id: Ifb8e4700e33db96a2298d57d5413a8fceb232fc0
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-12-01 04:17:31 -07:00
qi duan ae6498c40e usb: txhd2 otg usb wr_outstanding tune [1/1]
PD#SWPL-146713

Problem:
data read from udisk on otg usb port is error

Solution:
set u2drd wr_outstanding as 0

Verify:
be311

Change-Id: I12a5e155f73526f31afd0f4ae48b9ee031fe2450
Signed-off-by: qi duan <qi.duan@amlogic.com>
2023-12-01 00:13:27 -07:00
Jian Cao 00af39e5bc video_processor: set an initial value for composer info [1/1]
PD#SWPL-138887

Problem:
kernel panic and pc is at set_alpha_scpxn+0x24/0xb4

Solution:
composer info addr is wrong
set an initial value for it

Verify:
g12a

Change-Id: I7d5806e41f1a7bf6a2c4520be6eb87b275a52964
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2023-12-01 00:13:17 -07:00
zhenteng.tian 4666dadb2a aicolor: checkout if aicolor is done before pq. [1/1]
PD#SWPL-146859

Problem:
kernel panic in ai_color_proc function.

Solution:
checkout if aicolor is done before access ai_color value.

Verify:
T3X

Change-Id: I08d563697861ba4b9fe3af53f94146daa9be3cfd
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2023-12-01 00:13:12 -07:00
zhenteng.tian 18ccf9769d ai: add dump vframe flow in aipq, aisr and so on. [1/2]
PD#SWPL-143281

Problem:
Add dump vframe flow in aipq, aisr and so on.

Solution:
Add dump vframe flow in aipq, aisr and so on.

Verify:
T3

Change-Id: Ib3b0bf62ba09d5cae40ce86730c2838f932e57e6
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2023-12-01 00:13:07 -07:00
qiyao.zhou 82de4bc6b3 vicp: multi-play abnormal in small window. [1/1]
PD#SWPL-148070

Problem:
VICP use dw data with error bitdepth.

Solution:
When use dw data,the bitdepth is det to 8.

Verify:
s5

Change-Id: Ia551c740166b41c7454debb848e79528527927d9
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-11-30 22:21:23 -07:00
Jian Cao 518d38f6f5 rdma: fix register configuration delay due to missing rdma_done [1/1]
PD#SWPL-144410

Problem:
appear display abnormal phenomenon during local playback sometimes

Solution:
check rdma_done and vsync timestamp
use latter one to do the next rdma_config

Verify:
t3x

Change-Id: Iffc4ed81a33ddf0644a3e21d2c696865f9bdfdcf
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2023-11-30 22:21:13 -07:00
Song Zhao d7003b7d1d msync: fix no audio case in amaster mode [1/1]
PD#TV-97019

Problem:
audio won't arrive in some case, leading to playback stucks.

Solution:
start a time to monitor the arrival of audio, if it expires, kick off
the wall clock.

Verify:
TM2 + Platco

Signed-off-by: Song Zhao <song.zhao@amlogic.com>
Change-Id: I747de9a244f393fc41f580b4e1617e4b367be426
2023-11-30 18:13:08 -07:00
Yu Tu 49d6c9d77a pcie: s5 pcie with W2 run GNE1 crash when resume [1/1]
PD#SWPL-147874

Problem:
s5 pcie with W2 run GNE1 crash when resume

Solution:
add delay so wait for phy and host work well when resume

Verify:
s5

Change-Id: Id528a9875f968cddadcbe1ca6e5406d4db1cafbf
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-11-30 16:07:34 -07:00
Pengcheng Chen 7c4dfef88b vpp: fix vpp1 hdmi rx small window display blurred [1/1]
PD#SWPL-145950

Problem:
vpp1 hdmi rx small window display blurred

Solution:
correct vpp1 vd2 vskip calc

Verify:
T3X

Change-Id: Ia0fbf46b00caf5e980490613127d4d224bc86e3d
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-11-30 16:07:27 -07:00
haitao.liu 33148b99f9 vdin: no sw reset on chips before t5 [1/1]
PD#SWPL-145959

Problem:
software reset on g12b casue system crash

Solution:
sw reset on chips after or equal to t5

Verify:
t5m

Change-Id: Ia186e87d6c87a6396488274d8ddf683aefebe86f
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-11-30 16:07:23 -07:00
dezhi kong 473502ad80 dmaheap: fix memory leak [1/1]
PD#SWPL-147527

Problem:
dmaheap-cma sgt memory leak

Solution:
add free for sgt

Verify:
AndroidT kernel5.15 ohm

Change-Id: Ic94afb1439d4b39d121535302f1d555cdd77d118
Signed-off-by: dezhi kong <dezhi.kong@amlogic.com>
2023-11-30 16:07:16 -07:00
jian zhou 394a7159eb audio: doesn't disconnect earctx output when trigger start and stop earc [1/1]
PD#TV-93160

Problem:
the signal is disconnected when trigger start and stop earc.

Solution:
1.only for arc mode,doesn't disconnect earctx output when
trigger start and stop earc.
2.when mute, add req_frddr_rst bit and keep_req_ddr_init bit control.
3.as earc mat, earc is not 8 channel align, earc need disconnect
when trigger start and stop earc.

Verify:
t5m

Change-Id: Id4eee46c99ecb4e115f79379548c25d55d7a445d
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2023-11-30 16:07:11 -07:00
Jian Cao f5d6a3a083 osd: support dim color debugging and blank functions for legacy viu2 osd [1/1]
PD#SWPL-145446

Problem:
dim color debugging and blank functions are not supported

Solution:
add this support

Verify:
t5d

Change-Id: Iceebb81648264e96848adb9d2a870ecc5c5fc30e
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2023-11-30 04:05:19 -07:00
yiting.deng ba72e92731 pll:s4: use udelay() func to delayed [1/1]
PD#SWPL-147922

Problem:
usleep_range() is not used in atomic context, when enable
hifi_pll_dco will dump_stack

Solution:
replace usleep_range() with udelay()

Verify:
s4_ap222

Change-Id: I16d4885ff520d4065d631f5608bbc80b4f0ccb48
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2023-11-30 02:21:17 -07:00
yicheng shen 2fc1eca2a0 hdmirx: turn off hdmirx clks when shut down [1/1]
PD#SWPL-146122

Problem:
hdmirx 2m and 5m clk were not turned off when shut down

Solution:
turn off hdmirx 2m and 5m clk when shut down

Verify:
T5M/TXHD2/T7

Change-Id: I864a6465f71c2324a183d766aab1bf5acfc20241
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2023-11-30 02:21:10 -07:00
chengshuo.wang 7870466b81 wifi: fixed iw reg set [2/2]
PD#SWPL-143087

Problem:
1.iw reg set failed

Solution:
1.fixed iw reg set

Verify:
ok

Change-Id: I51e0d3b1dd1239b0e8a901cedb7a687b93260257
Signed-off-by: chengshuo.wang <chengshuo.wang@amlogic.com>
2023-11-30 00:19:12 -07:00
gerrit autosubmit 33d79dcc7f Merge "amdv: case5362 fail [1/1]" into amlogic-5.15-dev 2023-11-29 23:19:09 -08:00
yao liu 89ffcff922 amdv: case5362 fail [1/1]
PD#SWPL-144908

Problem:
1.case5362 fail after running other top1 case
2.bypass precision logic

Solution:
1.need reset top1_stats.enable
2.improve bypass precision logic when top1 missed

Verify:
t3x

Change-Id: I6b31d352d2fd2c55b267a10517dde5a0ea11ab5c
Signed-off-by: yao liu <yao.liu@amlogic.com>
2023-11-30 00:19:08 -07:00
donghui.wang 490a7b10ea ldim: fix config h/v active size [1/1]
PD#SWPL-147884

Problem:
get wrong h/v size when bootup

Solution:
get panel basic timing for h/v size

Verify:
t5m

Change-Id: Ib07ca87c379599b65949d635c39825470b5d559e
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-11-29 22:17:50 -07:00
lizhi.hu f66218a68b lcd: fix t3x vbyone p2p_ch_swap reg [1/1]
PD#SWPL-147508

Problem:
vbyone p2p_ch_swap set but not restored

Solution:
fix p2p_ch_swap

Verify:
t3x_bc302

Change-Id: I12c60ef137de8b6b1e710bb65148ae8d5ddec52f
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2023-11-29 22:17:47 -07:00
xiang.wu1 0b9451cbeb hdmitx: adjust the send packet process during the switch resolution [1/1]
PD#SWPL-141537

Problem:
avi colorimetry bt2020 is lost during switch resolution

Solution:
To maintain a relatively clean resolution switching process,
clear all pkt before the resolution switching process.
After the resolution switching is completed, the DV/HDR module
will call back the packet sending function as needed. Colorimetry
and other parameters are updated when the packet sending
function is called.
1. add clear pkt in disable module
2. add detach vinfo in disable module
3. clear some unnecessary colorimetry bt2020 setting in 20

Verify:
A311D/ohm

Test:
DRM-TX-17, DRM-TX-18, DRM-TX-19

Change-Id: Id059bd92499df01fe93690f6507f7f7f14d22795
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-11-29 22:17:40 -07:00
min.yang 842b8dfbc9 dvb-extern: add tuner module debug cmd (V1.18) [1/1]
PD#SWPL-147712

Problem:
remove tuner debug prop

Solution:
debug through dvb-extern

Verify:
verified by smith

Change-Id: I29a5430ee81a2996fb485191ad68516a12f0991c
Signed-off-by: min.yang <min.yang@amlogic.com>
2023-11-29 22:17:08 -07:00
jian zhou dd13a73f3a audio: merge eARC tx and spdif related fix to reference [1/1]
PD#SWPL-146976

Problem:
merge eARC tx and spdif related fix to reference

Solution:
TV-92533 fix earc tx clock tuning error
TV-98495 when stream start, spdif get data from frddr

Verify:
t5m

Change-Id: I434ffe1c22689a09b6b8f1f0f85b0fc1e476d244
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2023-11-29 20:17:11 -07:00
Haotian Guo 2c99b9bdd0 hdmirx: set open flag when resume [1/1]
PD#SWPL-146138

Problem:
When resuming, the open flag is not set, and the state machine cannot jump

Solution:
set open flag when resume

Verify:
t7c

Change-Id: Id11a8018ac3a46eed390fb4b57e2b2cd59f73fff
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2023-11-29 06:07:46 -07:00
Jianxiong Pan e05a3e30ea mm: autopatch: remove useless printing of vendor in migrate. [1/1]
PD#SWPL-147434

Problem:
optimize printing.

Solution:
remove useless printing of vendor in migrate.

Verify:
local.

Change-Id: I1ed16b1499e5ea709dd0072e5cc1db5fe1fe1305
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-29 06:07:42 -07:00
qing.zhang 9537045ed1 audio: samesource control on ott t7c [1/1]
PD#SWPL-147685

Problem:
1. samesource not enable for ott

Solution:
1. add control for tdm samesource

Verify:
verify by ott t7c

Change-Id: I0304965b16e9f602f3bbf3d1a9893b6af5b76658
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2023-11-29 06:07:39 -07:00
Chuan Liu f9bdbb5eab clk_msr: add node in sysfs [1/1]
PD#SWPL-143834

Problem:
The user version has no debugfs and cannot get clk_measure through the node

Solution:
add node in sysfs

Verify:
c3-aw419

Change-Id: I874d53767350d0da96473819c32262f0b7442691
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-11-29 06:07:25 -07:00
Wentao.Sun 84633b5ca1 dts: provisionkey: move node to dtsi [1/1]
PD#RSP-5732

Problem:
move provisionkey node to dtsi

Solution:
move provisionkey node to dtsi

Verify:
AndroidT + sc2_ah212

Change-Id: I5d3e3a66141ed92a026f191d1ff5593f8c43b8ec
Signed-off-by: Wentao.Sun <wentao.sun@amlogic.com>
2023-11-29 06:07:14 -07:00
Wentao.Sun 37fb9ca970 dts: s4d: modify reserved memory [1/1]
PD#RSP-5732

Problem:
secos node is not used after kernel 5.15

Solution:
combine bl31 and bl32 reserved memory to secmon node

Verify:
S4d_s805c1a

Change-Id: Ic9c6238138e66afb2afd59e0065b4e55dbda6132
Signed-off-by: Wentao.Sun <wentao.sun@amlogic.com>
2023-11-29 06:07:10 -07:00
qiyao.zhou eb04798445 vicp: multi-play abnormal in IPTV. [1/1]
PD#SWPL-147819

Problem:
VICP scaler param config has bug.

Solution:
1.use dw vframe when output size is 1/16 of input.
2.modify post scaler config.

Verify:
t3x

Change-Id: Ib612993e77adcea497fa9bd4ee917b0b2486e26d
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-11-29 02:20:43 -07:00
zhicheng.huang 8925b0e7c4 dtv_demod: fix dvbc blind scan init issue(V3.5.25) [1/1]
PD#SWPL-79478

Problem:
fix dvbc blind scan init issue

Solution:
1.fix dvbc blind scan init issue
2.AMLDTVDEMOD_VER V3.5.25

Verify:
s4d, t5m

Change-Id: I1c520032ee92f356c169d6a10246588e1ecfa9af
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2023-11-29 02:20:38 -07:00
haitao.liu 05e4956611 vdin: optimizing dump buffer [1/1]
PD#SWPL-146774

Problem:
dump buffer abnormal when hsize non-8-byte align

Solution:
do 8 bytes swap of excess bytes in every line

Verify:
t3x

Change-Id: I992bf98ea7a0c7f37254446610b9c57a3c8ecccf
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-11-29 02:20:35 -07:00
bowen cheng 83f73696ce cec: Init cec function from register [1/1]
PD#SWPL-69530

Problem:
wakeup logic don't follow UI cec on/off

Solution:
Init cec function from register

Verify:
T982

Change-Id: Ia4ec3a52ad29554b689379b06e58bd2a693aef85
Signed-off-by: bowen cheng <bowen.cheng@amlogic.com>
2023-11-29 02:19:29 -07:00
Doosan Baek c52457801a KT: modify key clean for IV slot [1/1]
PD#SWPL-147883

Problem:
IV slot does not need cleaning.

Solution:
IV slot is not clean.

Verify:
S1A

Change-Id: Id5f9bf3b95573cacb53de2e85796b10ce96ea7be
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2023-11-29 00:33:37 -07:00
Liang Yang a856f9ff4a spi-nand: device encryption [1/1]
PD#SWPL-130883

Problem:
need to support inline partition encryption

Solution:
add support inline partition encryption in
spi nand driver

Verify:
s1a

Change-Id: Iadb9b9ae121939ef37a3abbd603a5eec17500739
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
2023-11-29 00:33:11 -07:00
zhou.ning b95800e1d6 TXHD2: some dts files synchronizes the configuration [1/1]
PD#SWPL-142734

Problem:
301.dts has problems in some cases.

Solution:
synchronizes the configuration

Verify:
txhd2

Change-Id: I2513683063bda0acc1526c210e4f393ae2c6f674
Signed-off-by: zhou.ning <zhou.ning@amlogic.com>
2023-11-28 22:15:30 -07:00
dian.shao 46ce70eb57 usb: txhd2 phy [1/1]
PD#SWPL-147762

Problem:
phy config & driver fix.

Solution:
fix them.

Verify:
be311.

Change-Id: I4f1524b67f64f2cfc52d8cee76acc037a07b81b4
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2023-11-28 22:15:26 -07:00
Pengcheng Chen 082be53a3d vpp: fix vpp in padding not work with 4k120hz out [1/1]
PD#SWPL-147652

Problem:
vpp in padding not work with 4k120hz out

Solution:
add vpp_index == PRE_VSYNC case

Verify:
T3X

Change-Id: I6f8b31ca07c36cb6fc0afba60ba2c0302bd75574
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-11-28 19:57:04 -07:00
mingxiu.sun 15a3f407ab vdin & hdmirx: modify colorimetry delivery method [1/1]
PD#SWPL-125462

Problem:
open the HDMI2.0 ,the color of image is changed

Solution:
add vf info for colorimetry

Verify:
t5m kernel5.15

Change-Id: I126786f130d59fe2977ad8ea46b921aadd302d67
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2023-11-28 08:19:14 -07:00
linfang.zhao c1a543b990 drm: display abnormally [1/1]
PD#SWPL-146003

Problem:
osd1 and osd2 support afbc,but osd3 not support afbc

Solution:
add config in dtsi to distinguish whether different osd support afbc

Verify:
T5W

Change-Id: I3110e1de3ba6377be611d2d80ea0af593eeb10d4
Signed-off-by: linfang.zhao <linfang.zhao@amlogic.com>
2023-11-28 06:33:23 -07:00
bowen cheng d8b1a04ec0 hdmirx: optimize cable_clk unstable process [1/1]
PD#SWPL-144765

Problem:
cable_clk unstable cause load EQ frequently

Solution:
need counter check after load EQ

Verify:
T7C

Change-Id: I0c5dec77890d9768ec261cafecc4701ea9d273b3
Signed-off-by: bowen cheng <bowen.cheng@amlogic.com>
2023-11-28 06:33:19 -07:00
yao zhang1 55f45aed42 configs: kernel cut for Amlogic hybrid android U [2/2]
PD#SWPL-143565

Problem:
Optimize kernel size.

Solution:
kernel cut for Amlogic hybrid android U.

Verify:
sm1/g12a

Change-Id: I583f9221b1ffc03cf5946128ee9b855d69b09a38
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2023-11-28 06:33:14 -07:00
congyang.huang c502d13b17 drm: add osd security support [1/1]
PD#SWPL-142625

Problem:
Some chips that support security func have not added security func

Solution:
Add osd security func for all chips

Verify:
sc2

Test:
DRM-OSD-110

Change-Id: If29741bfd9b4baee583922c9da023559426d1e45
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-11-28 06:33:10 -07:00
Pengcheng Chen b9620ea8ad vpp: vpp0 rdma write delay 1 vsync [1/1]
PD#SWPL-145037

Problem:
vpp1 render called vpp0 rdma write caused
vpp0 rdma write delay 1 vsync

Solution:
correct vpp0/vpp1 rdma write index

Verify:
T3X

Change-Id: I5d0563fea13c3402f0512d4bbd6ae44b4041e4b9
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-11-28 04:17:48 -07:00
jian zhou 1f25d93f7c audio: earc rx default is enable [1/1]
PD#SWPL-99911

Problem:
earc rx default is enable

Solution:
earc rx default is enable

Verify:
sc2

Change-Id: If252a7c99466c12b3e90fcef4a7ad2bc8b97af4d
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2023-11-28 02:15:56 -07:00
Jianxiong Pan bf1142d38d mm: optimizate cma release debug info. [1/1]
PD#SWPL-147434

Problem:
print information is incomplete.

Solution:
optimizate cma release debug info.

Verify:
local.

Change-Id: I251f6ee13ca32b38a800a0241903fa3c5c6c02ef
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-28 02:15:34 -07:00