Commit Graph

618 Commits

Author SHA1 Message Date
can.zhang ac3d7fe01f amvecm: disable hdr10plus ability [1/1]
PD#SWPL-181880

Problem:
hdr10plus func need open or not

Solution:
add code

Verify:
local

Change-Id: I30696cb2ac0df9e98e99f5ac9b57ffdeccd3b95d
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2024-08-26 05:47:31 -07:00
Wenjie Qiao 34ef11fd45 hdmitx: set segment 0 when read block0/1 under kernel [2/2]
PD#SWPL-169569

Problem:
read edid error after reboot under kernel

Solution:
set segment 0 when read block0/1
read edid use DDC master access in HW TPI mode

Verify:
s5/s7

Test:
DRM-HDMITX-104

Change-Id: I885081b383c041986c54684d0b9225e24dd1e233
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-08-23 02:05:00 -07:00
huijie.huang dc16c0cc20 lcd: t6d tcon support [2/2]
PD#SWPL-180353

Problem:
t6d lcd tcon bringup

Solution:
support tcon driver

Verify:
t6d br301

Change-Id: If52b51bf609a17de138fb76b840bf865e15a4cfc
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2024-08-22 14:27:53 +08:00
Huijuan Xiao 3e6b6bb78e amvecm: t6d bringup [1/1]
PD#SWPL-167798

Problem:
add t6d pxp bringup flow

Solution:
probe lut1 gmt_comp lut3d osd_mtx

Verify:
t6d

Change-Id: I72b493cc8ecdf12d42bef495e6c49abee9a90439
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-08-22 14:27:51 +08:00
Pengcheng Chen b4bf41313b video: add t6d video support [1/1]
PD#SWPL-167810

Problem:
add support for t6d

Solution:
complete it

Verify:
t6d

Change-Id: I4529e7871f85abde6c2cd22ce955aadff27d5c9c
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-08-22 14:27:51 +08:00
yuhua.lin 3626f20998 canvas: add support for t6d [1/1]
PD#SWPL-163819

Problem:
add support for t6d

Solution:
complete it

Verify:
t6d

Change-Id: Ia6228907993326e8c3bc22495ac8d17b075df6cf
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-08-22 14:27:50 +08:00
huijie.huang 6fda565ebf lcd: support t6d [1/1]
PD#SWPL-167796

Problem:
t6d pxp bring up

Solution:
Support t6d pxp bring up

Verify:
t6d

Change-Id: I92a30523dd75594e78c45caa2fda64f88fe51906
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2024-08-22 14:27:50 +08:00
yuhua.lin 17413ae0d8 vpp: add codec_io/canvas/rdma support for t6d [1/1]
PD#SWPL-167808

Problem:
add support fot t6d

Solution:
complete it

Verify:
ptm

Change-Id: I27a292260e8b7e8a644b2dcd43dab5acd721a9f1
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-08-22 14:27:50 +08:00
gerrit autosubmit a8f3c5ce7b Merge "hdmitx: add edid_valid property [1/1]" into amlogic-5.15-dev 2024-08-21 21:24:07 -07:00
zhou.han 659a8d1dc2 hdmitx: add edid_valid property [1/1]
PD#SWPL-99060

Problem:
Try to limit the external module directly r/w  the driver node.

Solution:
Add edid_valid property

Verify:
ohm

Test:
DRM-TX-20

Change-Id: I3bc300e0a8c0ec019d2ef10db976584140de4588
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-08-19 22:49:10 -07:00
Pengcheng Chen 62829a4a25 vpp: fix src_fmt_str overflow issue [1/1]
PD#SWPL-182110

Problem:
fix src_fmt_str overflow issue

Solution:
fix src_fmt_str overflow issue

Verify:
t5w

Change-Id: Ie4d2b709a027f5297e4f941df00b2971eb552422
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-08-19 21:53:07 -07:00
zhenteng.tian ac4d783d72 vc: notify frame display info to mediaproxy. [1/1]
PD#SWPL-177588

Problem:
video_composer need notify frame display info to mediaproxy

Solution:
notify frame display info to mediaproxy

Verify:
T5M

Change-Id: Icd7f8f030a78245086dd0c3eba5cd1e7d3761e70
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-08-15 21:45:31 -07:00
wenlong.zhang 2745334200 drm: amvecm ctm update [1/1]
PD#SWPL-180143

Problem:
drm should not call rdma write register by video channel.

Solution:
re-implement ctm api, drm just set matrix parameters, then amvecm
will write register in vsync isr.

Verify:
t7c

Change-Id: I68700d65fa494fab2552414044b011c2ef21bdeb
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-08-15 19:46:40 -07:00
lizhi.hu e2f3ba505f lcd: projection mode support [1/1]
PD#SWPL-173046

Problem:
projection broken after lcd multi-timing support 1

Solution:
1. divide panel dtsi to tv/tablet/projection
2. add vout regist ctrl to force regist multi vout

Verify:
txhd2_be311

Change-Id: I163818378fc762c961926dac84b11c4c28404842
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-08-15 19:46:34 -07:00
gerrit autosubmit 0d9978f078 Merge "dmabuf_manage : CF0 add secmem v3 64bit addr support [1/1]" into amlogic-5.15-dev 2024-08-13 21:46:48 -07:00
Evoke Zhang e5e428f250 lcd_extern: support reload cmd bin [1/1]
PD#SWPL-175831

Problem:
need support lcd_extern reload cmd bin

Solution:
add lcd_extern reload cmd bin

Verify:
ay301

Change-Id: I3ed9041bc680a458e5853f0ef23bdb5f6810ae13
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-08-13 21:46:32 -07:00
chen.xu 32a3341535 video_composer: vc support dec set screen mode [1/1]
PD#SWPL-178926

Problem:
video_composer need support dec set screen mode.

Solution:
1.while dec set screen mode, vpp using this 1st priority.

Verify:
T982

Change-Id: I71d9cdb4d7b7ed452427f55e6e8767709d35b052
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-08-12 23:48:34 -07:00
Hao Shi 5ef408908c dmabuf_manage : CF0 add secmem v3 64bit addr support [1/1]
PD#SWPL-176629

Problem:
add secmem v3 64bit addr support

Solution:
add secmem v3 64bit addr support

Verify:
None

Change-Id: Id5c6bca16e8620140770b7dc9f6b9dbddc395850
Signed-off-by: shipeng sun <shipeng.sun@amlogic.com>
2024-08-12 22:09:13 -07:00
gerrit autosubmit 45d6b0fd38 Merge "vdin: fix the ms12 test failure issue on t5m [1/1]" into amlogic-5.15-dev 2024-08-12 05:14:18 -07:00
haitao.liu fd355878e3 vdin: fix the ms12 test failure issue on t5m [1/1]
PD#SWPL-180965

Problem:
AV out of sync on t5m causing ms12 test failure

Solution:
1.change the vdin frame buffer number to 11 on t5m
2.return the real frame buffer number to vpp
3.add irq cnt into vframe for vlock

Verify:
t5m

Change-Id: I753f573faa80f8b17e3cd6ff041268d89e49ba6c
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-08-12 01:17:26 -07:00
lizhi.hu c4db023225 lcd: support phy tuning function [2/2]
PD#SWPL-168501

Problem:
need support lcd phy tuning function

Solution:
1.support lcd phy tuning tool api
2.support lcd tuning_Attr parse
3.support multi group phy tuning parameters

Verify:
ay301

Change-Id: Ib4aacfe358a993876ee2a11f954b509811702619
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-08-07 21:48:26 -07:00
Yongjie Zhu 5e346070e3 dmaheap: add class and debug node [1/1]
PD#SWPL-176242

Problem:
dmaheap driver need support debug & class node
gralloc need use ioctl to get dmaheap info

Solution:
add class and debug node for dmaheap
add dmaheap ioctl for gralloc

Verify:
s7d

Change-Id: I60fa73f6c51bbb37fc81531e61b28ecd1fbf700f
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2024-08-06 01:42:57 -07:00
hualing chen f473d32d48 media_proxy: CB2 move proxy to kernel common for 5.15. [1/8]
PD#SWPL-177051

Problem:
1  Di module can not call proxy api for 5.15.

Solution:
1  Move MediaProxy to kernel common for 5.15.

Verify:
t5m

Change-Id: I573f51392c809b77bf6a2e8194a4a3a451f1cc35
Signed-off-by: hualing chen <hualing.chen@amlogic.com>
2024-08-06 01:42:22 -07:00
Evoke Zhang e30676fc8e lcd: update ufr mute control [1/1]
PD#SWPL-175916

Problem:
need support different unmute time for upper layer UI switch

Solution:
support different unmute time for upper layer UI switch

Verify:
bc302

Change-Id: I2018f8380ba186f2a232adfb8a24c734bf95bdc3
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-08-02 03:52:42 -07:00
ruofei.zhao 2fcea7e589 hdmitx: optimized hdmitx logs [2/2]
PD#SWPL-178894

Problem:
hdmitx logs non-normative

Solution:
optimized hdmitx logs

Verify:
S7D

Test:
DRM-TX-78

Change-Id: I49bf8a82fc34e12594f823843aa705d992a96640
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-08-01 03:00:20 -07:00
zongdong.jiao 9ca532cf80 hdmitx: add external plugin/out handler for eARC hpd [1/2]
PD#SWPL-177527
PD#SWPL-173088
PD#SWPL-173090

Problem:
The HPD signal may be come from HDMI HPD, but eARC has HPD
status from status bits

Solution:
Add reading EDID data in external plugin handler with mutex
No external plugout handler

Verify:
sc2, t7c

Test:
DRM-TX-38

Change-Id: I443e69aa6c8949a0d49df476108414431fd067d7
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2024-07-31 01:52:03 -07:00
qiyao.zhou df13c445fb vicp: add shutdown flow for vicp. [1/1]
PD#SWPL-179050

Problem:
poweroff dissipation for VICP clk.

Solution:
1.Implement function in vicp for shutdown.
2.cherry pick 20baea19c687c86f559e02fcd4e10184f14c409f.

Verify:
s5

Change-Id: I0e6fcd59176172d13f70e02661f7e0da182c0677
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-07-30 00:41:28 -07:00
Pengcheng Chen c4de7d4562 vpp: add lcevc support [1/1]
PD#SWPL-164381

Problem:
add lcevc support

Solution:
add lcevc support

Verify:
s7d

Change-Id: Ieb6a24902b687d16faec2399bcde6a72c9a13ef8
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-07-30 09:46:47 +08:00
jinbing.zhu d0acf9b51b amvecm: s6 osd sharpness add load reg case type . [1/1]
PD#SWPL-176250

Problem:
osd sharpness add load reg case type

Solution:
osd sharpness add load reg case type

Verify:
s6

Change-Id: Ia3d12b9b859af62b5b94056bb16f44399e5681e9
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-07-26 06:06:01 -07:00
chen.xu 69d5a31bca video_process: di do rotate pipeline adaption [1/1]
PD#SWPL-171638

Problem:
di do rotate pipeline adaption.

Solution:
support.

Verify:
T982

Change-Id: Ic149b5a2562792a27ce959c0849306d4448a8613
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-07-24 06:19:40 -07:00
zhenteng.tian 3cdcecabeb vc: add lcevc data path for pipeline. [1/1]
PD#SWPL-168205

Problem:
lcevc data cannot be passed backward to vpp.

Solution:
add lcevc data path for pipeline.

Verify:
S7D

Change-Id: I656baa444025f4aaebfea67e19a011c152961c5f
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-07-18 20:03:23 -07:00
zijie.lin 5c1227f01e ldim: add hw_init_on stable delay [1/1]
PD#SWPL-177015

Problem:
recovery mode ldim not work;
different mcu have different init times.

Solution:
add ini parameter to set
hw init on stable delay.

Verify:
t3x

Change-Id: Ia74161c5f541a84ed820e72a3a78e769b63a13e7
Signed-off-by: zijie.lin <zijie.lin@amlogic.com>
2024-07-17 23:58:14 -07:00
wenlong.zhang d30cc6178f drm: add rdma table for drm osd registers [1/1]
PD#SWPL-101847

Problem:
drm write registers to rdma table one by one, due to rdma table update
and rdma manager flush to real register are out of sync, so we want to
creat a fake table, the fake table will copy to rdma table after
pipeline register write done, and then config rdma vsync

Solution:
add rdma table for drm osd registers, and it can dynamic switching by
this node /sys/class/drm/card0/crtc0/rdma_table_switch.
echo 1 > /sys/class/drm/card0/crtc0/rdma_table_switch switch off
echo 0 > /sys/class/drm/card0/crtc0/rdma_table_switch switch on

Verify:
T3x s7 s5

Test:
DRM-OSD-33

Change-Id: I053daa7daaab672f8b1e9fc2c38a2d60552d6288
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-07-17 23:57:23 -07:00
jinbing.zhu c7d190ce78 amvecm: add matrix to lcevc support. [1/1]
PD#SWPL-164384

Problem:
lcevc support

Solution:
lcevc support

Verify:
s7d

Change-Id: I81d196cc1f06ea63de57962412e25ff68faee075
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-07-17 03:57:28 -07:00
Jihong Sui 47d22c7219 deinterlace: add rotation feature [1/1]
PD#SWPL-166466

Problem:
add rotation feature for T3

Solution:
add rotation feature for T3

Verify:
t3

Change-Id: I5865ff4843c3acdada755f1529fd0c41a0da972a
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2024-07-17 03:57:21 -07:00
Zhao Yi e13b97d3c7 uvm: add lcevc metadata [1/1]
PD#SWPL-166447

Problem:
LCEVC codec support

Solution:
LCEVC codec support

Verify:
AndroidU

Change-Id: Id78c411408da4a72cd5f8bc49ccc3b21c1afd0a8
Signed-off-by: Zhao Yi <zhao.yi@amlogic.com>
2024-07-16 03:55:13 -07:00
yao.zhou 6ee59b4ec8 camera: using v4l2 vdin [2/5]
PD#SWPL-176110

Problem:
bring up mipi sensor in s6

Solution:
1.add csi camera dts config
2.add csi driver support
3.the fe of mipi csi configure TVIN_SIG_STATUS_STABLE status defaultly
4.fix cfmt error
5.add VDIN_WORK_MD_V4L conditional statement
6.only modify s6_s905d5_bq201.dts s6_s905d5_bq208.dts s6_s905d5_bq209.dts
s6_s905x5_bl201.dts s6_s905x5_bl208.dts s6_s905x5_bl209.dts this time

Verify:
local

Change-Id: Ia54b8bf80dcbf26b3576e6eacc43b8f0082374b6
Signed-off-by: yao.zhou <yao.zhou@amlogic.com>
2024-07-16 01:01:07 -07:00
Hao Shi 4a443340db codec_mm: scatter owner register [1/1]
PD#SWPL-176775

Problem:
scatter keep size need expand for vdin

Solution:
scatter user can set scatter keep size
by register scatter owner.

Verify:
ohm

Change-Id: I4be8af6dff0454cda9191666ec48cd1e03464127
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-07-15 02:11:29 -07:00
ruofei.zhao 3f6e4635c3 module: update hdmitx version to 20240712 [1/1]
PD#SWPL-176541

Problem:
update hdmitx version for release

Solution:
update hdmitx version to 20240712

Verify:
S6

Test:
DRM-TX-40

Change-Id: I113108804c58904be373d9bd4f264227b0d1b247
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-07-15 00:05:22 -07:00
yao liu 6bf8cf9fca amdv: blank screen when osd3 on/off [1/1]
PD#SWPL-168620

Problem:
when osd3 on/off, core2a and core2c reset, but lut
updated fail; drm enable osd3 is one vsync earlier
then dv core2c

Solution:
1.drm set core2c lut when osd3 off->on
2.add force_toggle_once debug

Verify:
s5

Test:
s5

Change-Id: I5fe2a7abd1f4b887da5f32a655a24418fee86b64
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-07-15 00:04:56 -07:00
zhou.han d871967cda hdmitx: autotest fix [1/1]
PD#SWPL-161339

Problem:
EDID auto test fail

Solution:
print Source Physical Address

Verify:
ohm

Test:
autotest

Change-Id: I23cffa299418a7c79becfabb37c545baca4c6bda
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-07-11 02:05:11 -07:00
ruofei.zhao f7f1e76909 hdmitx21: s6 need to support 1080p120hz [2/2]
PD#SWPL-176326

Problem:
s6 need to support 1080p120hz

Solution:
s6 need to support 1080p120hz

Verify:
S6

Test:
DRM-TX-130

Change-Id: I594f9671b36d3ea27c838bcf349a06cdcf2c707c
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-07-10 03:57:14 -07:00
yao liu 54f6b192cc amdv: display error when resume in DLG mode [1/1]
PD#SWPL-175926

Problem:
In DLG mode, display size is 3840x1080, aoi reg
is updated to 3840x1080, if disable/enable video
with no toggle, aoi reg will continue to be halved

Solution:
record the ori and updated AOI with new variables

Verify:
t5m

Change-Id: Idbc479a1d157fb35be131b7b9896e5cbf0ee3b67
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-07-10 03:57:05 -07:00
dongfei.li 53d7b90d24 frc: frc chg t5m n2m setting [1/1]
PD#SWPL-171634

Problem:
chg n2m setting

Solution:
chg n2m setting

Verify:
T5M

Change-Id: I77f7bf82912d7fc216aee6ebd646bb32b2c119c2
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2024-07-09 21:52:52 -07:00
lizhi.hu c2f5aacc61 lcd: s6 bringup [1/1]
PD#SWPL-173021

Problem:
s6 bringup

Solution:
add support for s6

Verify:
s6_bq201

Change-Id: I3363de352ae5b29e2b27e32bf281e0def506bb44
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-07-09 06:05:03 -07:00
Pengcheng Chen 8c9fbe53ee vpp: add dejaggy enable when input is interlaced [1/1]
PD#SWPL-176085

Problem:
s6 inline aisr quality is poor

Solution:
vpp: add dejaggy enable when input is interlaced

Verify:
s6

Change-Id: I734869c0a38d101922f92ff0857f1077d717334b
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-07-09 05:11:08 -07:00
lukang.jia 18df5f6c62 frc: frc add crc debug method [1/1]
PD#SWPL-175641

Problem:
add crc debug method

Solution:
add crc debug method

Verify:
T5M

Change-Id: I51e9c0c51c5349bc60b598d981830ccfd45a3461
Signed-off-by: lukang.jia <lukang.jia@amlogic.com>
2024-07-09 02:06:50 -07:00
shipeng sun e49480a2f7 dmabuf_manage: CB1 Remove unused code [1/1]
PD#SWPL-176200

Problem:
Remove dmabuf_manage and secure vdec heap's unused code

Solution:
Remove dmabuf_manage and secure vdec heap's unused code

Verify:
ohm_wv4

Change-Id: Ib88ff7393c41767e275a4db26035bdc00ba2d4db
Signed-off-by: shipeng sun <shipeng.sun@amlogic.com>
2024-07-08 05:57:10 -07:00
hang cheng d9c2487367 hdmitx: add hdcp1.4 key validation method [2/2]
PD#SWPL-175733

Problem:
need method to validate hdcp1.4 key

Solution:
add hdcp1.4 key validation method, check
aksv loaded from tee contains 20 zeros and 20 ones

Verify:
s7

Test:
DRM-TX-137

Change-Id: I46c6f38d74c61f3edccbb819da0c98f3f9085018
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2024-07-07 20:13:35 -07:00
zhenteng.tian 5d51f3adf9 vc: screen anomaly when using vf and dma buf for compositing.. [1/1]
PD#SWPL-174021

Problem:
screen anomaly in dma_buf and vf frame data composition using composer.

Solution:
1.clear src_vf after completing the composition of a frame of data.
2.fix the issue vicp cannot perform compositing on dma_buf.

Verify:
T3X

Change-Id: Ibf5492d823a1f1e8540feae7d8e275487a83710c
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-07-05 21:44:44 -07:00