Commit Graph

804 Commits

Author SHA1 Message Date
zhou.han 8584c8f0c5 hdmitx: add broken edid check policy [1/1]
PD#SWPL-145767

Problem:
some TVs with broken edid can't display normally.

Solution:
add option to control the edid check policy.

Verify:
s5

Test:
DRM-TX-68

Change-Id: Ia44f1904beaff44d799e3cc0d626aa53ddbd9bec
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-02-18 21:47:25 -07:00
yiting.deng fb7c7e28a1 clk: s7: add aclkm in clktree [2/2]
PD#SWPL-156824

Problem:
s7 add aclkm in clk tree, need check aclkm

Solution:
fix it

Verify:
s7

Change-Id: I8dfaac712901e2ad219b6b719c50d8e4e3448cf7
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-02-05 05:45:08 -07:00
jialong.jiang 19614a6865 dv: add dv graphic interface to drm. [1/1]
PD#SWPL-153877

Problem:
conflict between drm and dv when write afbc top ctrl.

Solution:
dv add graphic interface to drm.
drm get dv status and write corresponding reg bit.

Verify:
t7c

Change-Id: I98f27d82f77af8aad35fba65b66b66f482d0802a
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2024-02-05 03:47:19 -07:00
donghui.wang a9252e853e backlight: modify cus bl_pwm_set_mapping [1/1]
PD#SWPL-146603

Problem:
add param for cus mapping

Solution:
add param for cus mapping

Verify:
t5m

Change-Id: I9b984a2151e3f8b0d3229ffe0236b19a1f17af01
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-02-02 06:01:31 -07:00
Bin.Wang2 eeb1e2b92c vrr: add different line delay for different video axis [1/1]
PD#SWPL-148358

Problem:
video show tear when 3840x1080

Solution:
different axis use different line delay

Verify:
t3x

Change-Id: Ieb68ef2058112426b505fd87a59c903269bc2a26
Signed-off-by: Bin.Wang2 <bin.wang2@amlogic.com>
2024-02-02 06:01:13 -07:00
lele xiang e934d0f0f9 codec_mm: CF1 provider the interface of preallocing tvp_pool. [1/2]
PD#SWPL-155060

Problem:
preallocing tvp_pool for av1 fg playback

Solution:
provider the interface of preallocing tvp_pool for decoder driver

Verify:
ap222

Change-Id: Iaad60b432a7a9ff1147a3b292120aa12e034dcf8
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2024-02-01 04:11:25 -07:00
Ao Xu 647549be79 drm: add back synchronization between encoder check and edid parse [1/1]
PD#SWPL-96632

Problem:
hdmitx_common_validate_format_para has no mutex lock protect.
when hdmitx plug event happen in encoder atomic check stage,
it will lead to info mismatch

Solution:
add hdmitx_common_validate_mode_locked api which has mutex lock
to protect the encoder check flow.
Will revert it when we move edid parering to drm.

Verify:
ah212

Test:
DRM-OSD-5

Change-Id: I7b4c98fac8378133166100f9d22ddcfe0af66407
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-02-01 00:43:25 -07:00
chen.xu e97edc8bf4 di_process: support I/P switch while open pre vpp link [2/2]
PD#SWPL-147387

Problem:
Android T support I/P switch for txhd2 while di backend.

Solution:
support I/P switch for txhd2 while di backend.

Verify:
txhd2

Change-Id: I9ba08dcfcd62aebd8ab32e23df77c4a461273cbb
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-01-31 04:53:25 -07:00
qinglin.li f0bef1b9b5 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>
2024-01-31 04:53:17 -07:00
Evoke Zhang f01bbd554d lcd: update display mode management [2/2]
PD#SWPL-152929

Problem:
need update lcd display mode management

Solution:
update lcd display mode management

Verify:
ay301, bc302

Change-Id: I62470ca5f65c4a70c6de6cec6712a43609ff170e
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-01-30 22:49:24 -07:00
qiyao.zhou 5281511bc2 videoqueue: tvserver need support di backend [2/2]
PD#SWPL-143207

Problem:
Add di backend config property.

Solution:
Add di backend config property for txhd2.

Verify:
txhd2

Change-Id: I7970fe8990a14e1b34f52cd3f0e359e78339af8c
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-01-30 07:59:10 -07:00
yiting.deng 190319d231 clk: fix s7 improper clk config [2/2]
PD#SWPL-155329

Problem:
fix s7 improper clk config

Solution:
fxi it

Verify:
s7

Change-Id: I5eb2b0bcbbbeb71cbb8cbf2d4922a3f8ac6d4907
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-01-30 06:13:16 -07:00
qianqian.cai 7e77e276d6 deinterlace: di backend for new interface [1/1]
PD#SWPL-146509

Problem:
add new interface for di back

Solution:
1.add api for release buffer when unreg/reg
2.add api for post/pre num

Verify:
sc2

Change-Id: Ie1eadc81751b3ca6da2d1f337e94d54dc1455c6c
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2024-01-30 06:13:10 -07:00
Huijuan Xiao b8e3a81e67 amvecm: Kernel5.15 A4/A5 bring up [1/1]
PD#SWPL-154692

Problem:
a4a5 display bring up.

Solution:
a4a5 display bring up.

Verify:
a4

Change-Id: Ibe7d5cfc968355af2d06ccfa54636f5cc913614d
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-01-30 04:03:21 -07:00
yuhua.lin 93bc4ffb25 vpu_security: add fg secure for s7 [1/1]
PD#SWPL-155917

Problem:
add fg secure for s7

Solution:
complete it

Verify:
s7

Change-Id: I8714a4070d997a559ecccca845fa7810bae50e83
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-01-29 02:09:00 -07:00
zhikui.cui c4633a3355 nand: fix memory corruption in meson_nfc_execp_op [1/1]
PD#SWPL-113283

Problem:
when use dma to read a small amount of data to a memory by kzalloc,
kzalloc memory len less than dma minimum handling length,
e.g. kzalloc one byte memory, but dma moves data with a width 64 bits,
so it would destroy the 7 bytes memory space on the right side of the
requested memory.

BUG: KFENCE: memory corruption in meson_nfc_exec_op+0x3b4/0x4c8

Corrupted memory at 0x00000000527f2fd0 [ ! ! ! ! ! ! ! . . . . . . . ]
meson_nfc_exec_op+0x3b4/0x4c8
nand_status_op+0x1ac/0x294
nand_erase_op+0x19c/0x328
nand_erase_nand+0x1d0/0x3cc
nand_erase+0x14/0x20
mtd_erase+0x174/0x1f0
mtdchar_ioctl+0x1c1c/0x2704
mtdchar_unlocked_ioctl+0x50/0x74
__arm64_sys_ioctl+0xa4/0x114
invoke_syscall+0x5c/0x140
el0_svc_common.llvm.4567374417812983254+0xb4/0xf0
do_el0_svc+0x24/0x84
el0_svc+0x2c/0xa4
el0t_64_sync_handler+0x68/0xb4
el0t_64_sync+0x1b4/0x1b8

kfence-#52: 0x00000000d4c8f37e-0x00000000d4c8f37e, size=1, cache=kmalloc-64

Solution:
align dma minimum handling length to kzalloc

Verify:
AT301_T962D4-K35E(1.5G) #256

Change-Id: I541b6acecaa9dd69ec6466bd7040af94b45ae596
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-01-29 02:08:41 -07:00
hai.cao ce7a44433f video: provide get video real axis function [1/1]
PD#SWPL-154473

Problem:
other module can not get video real axis

Solution:
provide get video real axis function

Verify:
all chips

Change-Id: I0dae2a30c2841396cda7ee4bfefd57bfff186d59
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-01-26 06:39:35 -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
ruofei.zhao be938272fd hdmitx: fix the abnormal printing problem of tracer when hdr10plus [1/1]
PD#SWPL-155145

Problem:
Tracer prints abnormally when playing hdr10 plus video

Solution:
fix the abnormal printing problem of tracer when
playing hdr10 plus video

Verify:
SC2
S5

Test:
DRM-TX-91

Change-Id: Ia081b5667bfb01d540c497faa32479c38b084da9
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-01-25 07:48:28 -07:00
yao liu bb0f81a900 amdv: fix pyramid level switch and 8bit issue [1/1]
PD#SWPL-152917

Problem:
1.pyramid level switch, top2 stuck
2.not suppot 8bit h265

Solution:
1.add reset flow when pyramid level change
2.add debug reg detect, reset when rdma err
3.modify top1 rdmif config

Verify:
t3x

Change-Id: I5101ef27ce0a72589ba54d2869d1660dd29c1da8
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-01-25 07:47:41 -07:00
zehong.luo e6a13e09e4 decoder: CF2 add vdec unsupport format status [1/2]
PD#SWPL-141096

Problem:
add vdec unsupport format status use by media_hal

Solution:
add vdec unsupport format status use by media_hal

Verify:
txhd2

Change-Id: I2ecf78ac8e91ca912f331dc8a8ed8a6494610dd5
Signed-off-by: zehong.luo <zehong.luo@amlogic.com>
2024-01-23 04:49:29 -07:00
lizhi.hu 3107ad6a0e lcd: dsi driver arch adjust [1/1]
PD#SWPL-149220

Problem:
dsi driver arch adjust

Solution:
dsi driver arch adjust

Verify:
t7_an400
sm1_ac200
txhd2_be311
c3_aw419

Change-Id: I29854b327bcf62c81346faf51fce68b0bae65a01
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-01-22 04:59:15 -07:00
Long 6a35454196 eMMC: fix erase/sanitize timeout. [1/1]
PD#SWPL-152701

Problem:
Currently,we found that the Sanitize/Erase command may take longer
than that on the first factory reset after flashing.
This will cause the Sanitize/Erase command to timeout before completing.

Solution:
Enable max timeout in the eMMC controller only for Sanitize.
This will allow the factory reset command to always complete
successfully with the drawback that on eMMC failures, the device will
be stuck unless rebooted.

Verify:
T5d

Change-Id: Ifea2edfe758b2f723f2c02d369468e8ba9629fe3
Signed-off-by: Long <long.yu@amlogic.com>
2024-01-22 02:50:55 -07:00
yiting.deng f238ea0672 clk: s7: clk upgrade clk-scmi [2/2]
PD#SWPL-152400

Problem:
s7 clk upgrade clk-scmi

Solution:
s7 clk upgrade clk-scmi

Verify:
s7

Change-Id: I4b9d5bc69e6da1000314741eedc22842aa7768b5
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2024-01-22 12:48:45 +08:00
hongyu.chen1 a017d2e38c S7: power domain: Clear configuration. [3/3]
PD#SWPL-152429

Problem:
not need hcodec domain.

Solution:
cancel hcodec configuration in kernel.

Verify:
bh209.

Change-Id: Iac25da9014c4a84a1b144af20c79681735957847
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-01-22 12:48:45 +08:00
yiting.deng 4b6c14e6ff clk: s7 clk bringup [1/1]
PD#SWPL-152400

Problem:
fix sys_clk_gate
fix clk measure name

Solution:
fix it

Verify:
s7

Change-Id: I3d403c0d4ae17b7a6dd768aceaf5d47054d7b0ad
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-01-22 12:48:44 +08:00
Shunzhou Jiang 8bf05bde3f mbox: s7 mbox bringup [1/1]
PD#SWPL-152412

Problem:
s7 mbox bringup

Solution:
s7 mbox bringup

Verify:
s7_bh201

Change-Id: I99337ebc5333cb0c3bb712641cde0cf1d5ac14e4
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2024-01-22 12:48:44 +08:00
dian.shao da6290cfda usb: s7 bringup [1/1]
PD#SWPL-152414

Problem:
s7 silicon bringup

Solution:
dts

Verify:
s905y5_bh201

Change-Id: Ide0e60d7c064628981e8990e3879083e342b0e04
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-01-22 12:48:44 +08:00
Chuan Liu e6f1d9db24 clk: s7: optimize clock performance [2/2]
PD#SWPL-135780

Problem:
optimize clock performance.

Solution:
1 Optimize cpu_clk switching frequency timing;
2 Move all cpu_clk set frequency operations to bl31.

Verify:
pxp

Change-Id: I6147683b713a9b4854cd8f92e13b396f8705ea30
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-01-22 12:48:44 +08:00
junyi.zhao f79a3664fb pwm: add pwm tee driver for s7 [1/2]
PD#SWPL-135758

Problem:
there is no s7 pwm tee driver

Solution:
add pwm tee  driver

Verify:
s7 pxp

Change-Id: If1ec9b943340687173827e114df1207001ec2daa
Signed-off-by: junyi.zhao <junyi.zhao@amlogic.com>
2024-01-22 12:48:43 +08:00
Huqiang Qin 8f9a134b4b gpio: s7: supports cc1 and cc2 pins [1/1]
PD#SWPL-131121

Problem:
S7 PxP Bringup.

Solution:
1) Supports CC1 and CC2 pins.
2) Support TEST_N pin interrupt.

Verify:
PTM

Change-Id: Ia20a6054d09fe2218e816d6755fd9f62385e4abb
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-01-22 12:48:43 +08:00
junyi.zhao 83d1999010 pwm: add pwm driver for s7 [1/1]
PD#SWPL-135758

Problem:
there is no s7 pwm driver

Solution:
add s7 pwm driver

Verify:
s7 pxp

Change-Id: I794ec36605b1241e4a3fabddd4012877c73a490c
Signed-off-by: junyi.zhao <junyi.zhao@amlogic.com>
2024-01-22 12:48:43 +08:00
yiting.deng 1a55a1607d clk: specifies s7 clock name and CLKID [1/1]
PD#SWPL-137984

Problem:
need specifies s7 clock name and CLKID

Solution:
fix it

Verify:
ptm

Change-Id: Ia9e3d126d275252ece4c76b6b98450d9c2707406
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-01-22 12:48:43 +08:00
qinghui.jiang 88951c5fa9 amvecm: s7 pxp bringup [1/1]
PD#SWPL-135077

Problem:
s7 pxp bringup

Solution:
s7 pxp bringup

Verify:
s7

Change-Id: If46d675fa1d58a174a03263d501eaac7f78dd0bd
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2024-01-22 12:48:43 +08:00
yuhua.lin 849a6d6704 s7: add support for codec_io/canvas/rdma [1/1]
PD#SWPL-135792

Problem:
s7 codec_io/canvas/rdma bringup

Solution:
complete it

Verify:
ptm

Change-Id: Iea6cf27abb32e332ca76856d3ccb6dc9c219eac5
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-01-22 12:48:43 +08:00
yiting.deng 24fbbcfdb8 clk: s7 kernel pxp clk bringup [1/2]
PD#SWPL-132405

Problem:
s7 kernel pxp clk bringup

Solution:
s7 kernel pxp clk bringup

Verify:
pxp

Change-Id: I9905c650ffc6e39d22c441d5fef4f89a78f10e3a
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-01-22 12:48:43 +08:00
hongyu.chen1 82db98ad69 S7: add power domain. [3/3]
PD#SWPL-131629

Problem:
s7 need power domain.

Solution:
add power domain in kernel.

Verify:
pxp

Change-Id: I4ce47b7de5d734084356a08fc1fdbebe665253ac
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-01-22 12:48:43 +08:00
Huqiang Qin c7bd1b3240 pinctrl: support gpio/pinmux for s7 [1/1]
PD#SWPL-131121

Problem:
S7 PxP Bringup.

Solution:
S7 PxP Bringup.

Verify:
PxP

Change-Id: I6cfd05e9af683eb5e3a488388ac76852ca740d43
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-01-22 12:48:43 +08:00
Zelong Dong 7a41ee0dd8 reset: add reset controller support for s7 [1/1]
PD#SWPL-131768

Problem:
don't support s7 platform

Solution:
add reset controller support for s7

Verify:
s7_pxp

Change-Id: Ibbcdd2aaa59e75cefe26baa9cf3bb7ab8106149b
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-01-22 12:48:43 +08:00
chen.xu b6d122bc1d aipq: t5m only aipq or pq do hist [1/1]
PD#SWPL-151874

Problem:
need do aipq for T5M.

Solution:
modify code to support.

Verify:
T5M

Change-Id: Ief28052e1df8f67fff4e291319511d48ca6e2075
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-01-18 20:55:28 -07:00
Pengcheng Chen 0684a02702 vpp: w_in size need aligned for amdv [1/1]
PD#SWPL-153961

Problem:
w_in size need aligned for amdv

Solution:
w_in size need 4 aligned for amdv 2 slice
w_in size need 2 aligned for amdv 1 slice

Verify:
t3x

Change-Id: Ia79f892db4807b0da61f7e246d0a21717d4f42d3
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-01-17 03:07:55 -07:00
Wanwei Jiang dd5ce4f5a7 chipid: read chipid fail [1/1]
PD#SWPL-152551

Problem:
read chipid fail

Solution:
the chipid can be read by reading registers, but the register address is
set in DTS, which is prone to setting errors. It can be read through a
unified command, so there will be no previous problems.

Verify:
s905x2

Change-Id: I2019a7b8201dedec1f71a1edf09f9b51b730f5c2
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-01-17 03:07:30 -07:00
Haotian Guo ee8c1bc0e6 hdmirx: add 480/567 format [1/1]
PD#SWPL-151288

Problem:
Driver does not support formats for 480 and 576

Solution:
Drive the addition of 480 and 576 formats

Verify:
t7c

Change-Id: I2fa54e65061752e641e03e0ea713a8f5ffd0fb14
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2024-01-15 06:39:38 -07:00
lukang.jia 3e61afe560 frc: frc try to fix slice switch for ces [1/1]
PD#SWPL-143397

Problem:
frc n2m and vpu slice switch question

Solution:
workaround n2m and slice switch

Verify:
T3X

Change-Id: If0ece96772b4aa89173a29395b3d456b77dca1c3
Signed-off-by: lukang.jia <lukang.jia@amlogic.com>
2024-01-15 00:29:24 -07:00
Gaowei Zhao bb65d6ad2d hdmirx: fix compile issue caused by __packed [1/1]
PD#SWPL-153477

Problem:
aml-tvserver build fail because of __packed

Solution:
delete __packed

Verify:
Yocto

Change-Id: I0068a3e9e79498e489e924d4b0421fdb19e0fcba
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-01-11 16:11:24 -07:00
Hanjie Lin 94a7d0f46c vmap: protect and alloc harder vmap pages [1/1]
PD#SWPL-153716

Problem:
vmap alloc fail cause crash

Solution:
add vmap cache size
add retry when vmap alloc failed

Verify:
t5m

Change-Id: I975022ff1b46938207d4911fb3199bab7dd7c135
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2024-01-11 16:04:43 +08:00
Xiangyu Cai 26c01843e1 vrr: change delay line when vpp crop [1/1]
PD#SWPL-147349

Problem:
vpp crop caused blurred screen

Solution:
change vrr delay line when vpp crop

Verify:
t3x

Change-Id: Iecda72b8be18883bd7eb6636b634f8eff5a3e5fb
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-01-10 22:11:22 -07:00
yao liu 21c996a636 amdv: add pre-vsync rdma interface [1/1]
PD#SWPL-141555

Problem:
add pre-vsync rdma interface

Solution:
add pre-vsync rdma interface

Verify:
t3x

Change-Id: I8ad2d4be5aab12bbdde40085ef39dad2654c6213
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-01-10 04:13:49 -07:00
Gaowei Zhao 78c7661731 hdmirx: get AVI info [1/1]
PD#SWPL-152652

Problem:
dump AVI info invalid

Solution:
update register for AVI info

Verify:
t3x

Change-Id: Ic3874d3cc269043957b0244f9cb476db77c48ced
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-01-10 00:34:22 -07:00
qiang.liu bff25cf906 tvafe: optimize format detected process [1/1]
PD#SWPL-148476

Problem:
format detected maybe error

Solution:
optimize format detected process

Verify:
t5m

Change-Id: Ic7354ad0f02503f7b33d8f1a3307e33083bedde8
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2024-01-09 22:21:47 -07:00