Commit Graph

420 Commits

Author SHA1 Message Date
Xiangyu Cai 15b4679c8a framelock: add node to check vrr min frame rate [1/1]
PD#SWPL-125271

Problem:
vdin game mode min value different with set value

Solution:
game mode check change to frame rate min value and vdin notify frame
lock to disable vrr when stop signal

Verify:
t5m

Change-Id: If7cb80f4c8f97052a29423deb62cd33517aa9863
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2023-07-09 15:07:51 -07:00
sky zhou 6243bb1b5a hdmitx: update struct hdmi_timing for tx20 [1/1]
PD#SWPL-124461

Problem:
hdmi_cea_timing is different from hdmi_timing.

Solution:
sync from tx21 timing, and mark some members
as deprecated.

Verify:
verify on ohm.

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

Change-Id: I8dcbf5cd6749eb9c5adb77cf20ad9c9024ac5f11
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-07-09 15:07:47 -07:00
yuhua.lin 98e9db328a c1: add canvas/ge2d/gdc/codec_io support for c1 [1/1]
PD#SWPL-121227

Problem:
add canvas/ge2d/gdc/codec_io support for c1

Solution:
complete it

Verify:
c1

Change-Id: Ie1d593a5fd910d38844ebf2f0d3bcc32a5627779
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2023-07-07 14:28:27 +08:00
Sunny Luo 8620a28dac spi: spicc(v2) add dma sg mode support [1/1]
PD#SWPL-119667

Problem:
spicc(v2) add dma sg mode support

Solution:
spicc(v2) add dma sg mode support

Verify:
T3X BC309

Change-Id: I9ecfcee3e8456c3d857b205cafc6a1b6130a2214
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2023-07-04 21:08:41 -07:00
dongfei.li 8a63aefaf9 frc: frc separated film mode define [1/1]
PD#SWPL-129349

Problem:
separated film mode for drv and alg

Solution:
separated film mode for drv and alg

Verify:
T5M

Change-Id: I6fb9fe7adbe63192b9ee897a0704b4385d47b982
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-07-04 07:07:49 -07:00
shaochan.liu b5ab39b2b5 lcd: provide UAPI headers for lcd module [1/1]
PD#SWPL-127314

Problem:
provide uapi headers for user space

Solution:
add lcd uapi headers

Verify:
kernel5.15

Change-Id: Ia2fdd6b0b50ecdfbe31049b21b2b1cd6f90d833a
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
2023-07-04 07:07:44 -07:00
sky zhou a0b4946751 hdmitx: fix t7c bootup fail issue due to regression [1/1]
PD#SWPL-125155

Problem:
T7C could not bootup after applying below CLs
commit 419a23e440
("hdmitx: move format_para to hdmitx common [1/1]")
commit 1f858a9ac0
("hdmitx: move vinfo out from format_para [1/1]")

The above CLs change hdmitx21_get_fmtpara return value,
it lead to display mode setting flow fail

Solution:
reapply these two CLs and check the return value correctly.
This reverts commit 7c11b56e59
("T7C: fix unable to boot after connecting with TX")

Verify:
an400

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

Change-Id: I8793305a919cd3979ed37cc12539102dbdb9bfe0
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-07-04 03:03:05 -07:00
Qianggui Song f5dee22780 Revert "deinterlace: vbone 4K reverse screen [1/1]"
PD#SWPL-129104

This reverts commit 700c8571a1.

Change-Id: I63b5d5e77a117ad2b9ae2037b7969b44aa6e5c4d
2023-07-03 03:11:05 -07:00
qiankun.wang 0335d01014 iotrace: save register value in IO-R-E [1/1]
PD#SWPL-129901

Problem:
IO-R-E can't read the register's data.

Solution:
when the "read" action is over, the hook function
will get the value from the action.

Verify:
SC2

Change-Id: I12426209bf92e5c242022041e01ed6a7711808dc
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-06-29 06:56:16 -07:00
qianqian.cai 53fecd69f2 deinterlace: txhd2 pre-link [2/2]
PD#SWPL-126847

Problem:
txhd2 pre-link afbcd

Solution:
txhd2 pre-link afbcd

Verify:
TXHD2

Change-Id: I1b49215304b255afe101592c1a15cf6a185c1872
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2023-06-29 10:38:51 +08:00
Jie Dai 67e1e790a4 lcd: txhd2 lvds bringup [2/2]
PD#SWPL-125712

Problem:
txhd2 lvds need bringup

Solution:
add lvds related driver

Verify:
be311

Change-Id: I312f4808f266cd696f50ad5ef6bed3c6aa51cb90
Signed-off-by: Jie Dai <jie.dai@amlogic.com>
2023-06-29 10:34:02 +08:00
dian.shao 97714850f7 usb: txhd2 bringup [1/1]
PD#SWPL-125787

Problem:
txhd2 bringup

Solution:
modify dts

Verify:
be311

Change-Id: Id436d9725824e7761c6ed09fe4fb094936f39abb
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2023-06-29 10:34:00 +08:00
Huijuan Xiao d927a97da6 amvecm: Modify for lcd gamma flow based T5M 257 point gamma [1/1]
PD#SWPL-124463

Problem:
support lcd gamma based T5M.

Solution:
modify 257 point lcd gamma flow referring T5M.

Verify:
TXHD2

Change-Id: Iaacd8ef40cfa45211cd55c3648c23f89db0c45f1
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2023-06-29 10:33:59 +08:00
hai.cao 13bdfaa5a9 codec_io: add codec_io support [1/1]
PD#SWPL-119965

Problem:
add codec_io rdma canvas support

Solution:
add these support

Verify:
txhd2

Change-Id: I9a6ca610f52d75ad105a0563cd079d2d5659d1dd
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-06-29 10:33:58 +08:00
MingLiang Dong 20ae88967b amvideo: add vpp fmm support [1/1]
PD#SWPL-128391

Problem:
add vpp fmm support

Solution:
add vpp fmm support

Verify:
t3

Change-Id: Iab1836cefe6ac0fbef827c09a99773d748b9853e
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2023-06-27 21:39:22 -07:00
qirong.li 93285fd8b5 amvecm: Dual-screen PQ adjustment function [1/1]
PD#SWPL-127748

Problem:
Dual-screen PQ adjustment requires two sets of parameters

Solution:
Add the appropriate control interfaces and processes

Verify:
t7

Change-Id: I8cd2412173ddc0670cded55576a3cf4f057cb510
Signed-off-by: qirong.li <qirong.li@amlogic.com>
2023-06-27 03:21:14 -07:00
yufei.huan 700c8571a1 deinterlace: vbone 4K reverse screen [1/1]
PD#SWPL-127784

Problem:
4k panel Reverse feature is not supported.

Solution:
Add panel Reverse feature.

Verify:
t5m

Change-Id: Iddf948247180eabd8bd424d0c65b4df3ecb9fa6a
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2023-06-27 03:20:52 -07:00
donghui.wang a1ab9992cf ldim: add t3x support ldim [1/3]
PD#SWPL-124379

Problem:
add ldim support

Solution:
add ldim support

Verify:
t3x bc302

Change-Id: I508c14892db6b2535684126802151a5304a4df0e
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-06-27 01:17:12 -07:00
ziyi f38b40750a emmc: clock is not disabled after suspend [1/1]
PD#SWPL-123245

Problem:
clock is not disabled after suspend

Solution:
revise code

Verify:
t5w

Change-Id: I60c1005e18ad94f685bd71f6b9b6bca2a65ee0df
Signed-off-by: ziyi <ziyi.huang@amlogic.com>
2023-06-26 04:48:07 -07:00
jintao xu 44164fbd6e vpp: disable tsync when hdmi in start [1/1]
PD#SWPL-125624

Problem:
when DTV exit, it will set Amaster mode

Solution:
disable tsync when hdmi in start

Verify:
T950D4

Change-Id: I210ab8043b4cc1b064cbce5fe2c69ea76a9fe0a7
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-06-21 03:27:12 -07:00
Jianxiong Pan c0bb9c0310 mm: clear tvp secure memory use kprobe. [1/1]
PD#SWPL-128566

Problem:
tvp vendor hook not meet gki2.0

Solution:
use kprobe to get symbol.

Verify:
local.

Change-Id: I26160ebfa86ab98969bfd29d6cc0afa264b0270f
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-06-21 01:09:27 -07:00
shihong.zheng ee1d37b567 codec_mm: CB1 add lock for list operation. [1/1]
PD#SWPL-126795

Problem:
release callback list is found corruption
and crash.

Solution:
change spinlock range, add list_del_init to
spinlock range.

Verify:
T963D4

Change-Id: I1a234172a948194f69928ed941f68d15954bee28
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
2023-06-20 21:00:37 -07:00
qianqian.cai 6e94f5421c deinterlace: decontour no effect for pre-link [1/1]
PD#SWPL-127664

Problem:
dct uopdate address
game mode follow vpp hold line

Solution:
dct uopdate address
game mode follow vpp hold line

Verify:
Verified on t5m

Change-Id: Ie3bf127516ac3fda31d37b4bb0f6bec9282975cc
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2023-06-20 01:52:13 -07:00
jinbing.zhu bb8b285a8d amvecm: 5.15 amvecm move to uapi [1/1]
PD#SWPL-127277

Problem:
move amvecm to uapi path

Solution:
move amvecm to uapi path

Verify:
verify on s5

Change-Id: Idd9e92694877a735e255562c28f6395816f711b6
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2023-06-19 07:29:40 -07:00
Bichao Zheng 20f5935b04 bf201: nand partition confirmation [1/1]
PD#SWPL-124386

Problem:
1. Reduce bootloader area

Solution:
1. remove ddrfip area
2. Reduce RSV to 14 blocks.
3. Reduce backup of BL2E BL2X DEVFIP to 2
4. Bootloader area reduced from 0x1600000 to 0x940000 bytes

Verify:
s4

Change-Id: I97187d33f211c7a5ab60e4cda2b369defb8363dd
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2023-06-16 20:23:48 -07:00
dongfei.li c23b963390 frc: frc match t5m input frm chk [1/1]
PD#SWPL-127408

Problem:
input framerate err

Solution:
input framerate check

Verify:
T5M

Change-Id: I7fba1e160325b23f4bc5c965924246e4759f526c
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-06-15 06:53:58 -07:00
Cheng Wang2 7c11b56e59 T7C: fix unable to boot after connecting with TX
PD#SWPL-128147

Revert "hdmitx: move vinfo out from format_para [1/1]"

This reverts commit 1f858a9ac0.

Revert "hdmitx: move format_para to hdmitx common [1/1]"

This reverts commit 419a23e440.

Change-Id: Id427e28805aa5ada216c0a9b4e62169ebda0201d
2023-06-14 01:42:50 -07:00
Sunny Luo aa855ca63d spi: add dirspi interface for new spicc(v2) controller driver [1/1]
PD#SWPL-124874

Problem:
add dirspi interface for new spicc(v2) controller driver

Solution:
1. add dirspi interface for new spicc(v2) controller driver
2. remove dirspi EXPORT_SYMBOL of old spicc driver, replace with
callback APIs from controller_data

Verify:
T3X BC309

Change-Id: I407b5d3dfa7d88bbe834853817666c9234dabe60
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2023-06-12 00:48:15 -07:00
sky zhou 1f858a9ac0 hdmitx: move vinfo out from format_para [1/1]
PD#SWPL-125155

Problem:
vinfo is defined for other drivers, and is not
part of hdmitx ip/hw.

Solution:
move vinfo to hdmitx_common as temp solution,
will move to drm driver level later.

Verify:
verify on ohm.

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

Change-Id: I9682e256eddf50a35688e9efaaede0c614b82b24
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-06-12 00:48:03 -07:00
sky zhou 419a23e440 hdmitx: move format_para to hdmitx common [1/1]
PD#SWPL-92852

Problem:
format_para is common struct for hdmitx.

Solution:
move format_para to hdmitx_common.
create format_para instance to save format setting.

Verify:
verify on adt4.

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

Change-Id: I7b3dcb8fb6bca50b868b1bb9ca53fd82638aed35
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-06-12 00:47:59 -07:00
Wenjie Qiao af7c11be84 hdmitx21: add smpte sname [2/2]
PD#SWPL-127549

Problem:
smpte resolution lack sname

Solution:
smpte resolution add sname

Verify:
s5

Change-Id: I849eab0540351bf1b061f76b7bc1631cb03dfb51
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-06-09 09:06:08 -07:00
Sunny Luo cf18a587d2 spi: new spicc(v2) controller 9bit/DC mode bringup [1/1]
PD#SWPL-119664

Problem:
new spicc(v2) controller 9bit/DC mode bringup

Solution:
new spicc(v2) controller 9bit/DC mode bringup

Verify:
T3X BC309

Change-Id: I7115488e35aaba698883ee22bc0b6f6bbfe96788
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2023-06-06 22:43:38 -07:00
dongfei.li a758286579 frc: frc debug memc in primary env [1/1]
PD#SWPL-126455

Problem:
debug memc with vlsi's

Solution:
debug memc with vlsi's

Verify:
T3X

Change-Id: Ifb7b3e06750f02457431e3c28e21b0df98389708
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-06-06 20:58:58 -07:00
yao liu 4ee0f1898c amdv: idk5.1 process [1/1]
PD#SWPL-123849

Problem:
new feature

Solution:
driver update idk5.1 interface

Verify:
t3x

Change-Id: I53ef4373b3adbe8fa6c092cdf0733fca29c00053
Signed-off-by: yao liu <yao.liu@amlogic.com>
2023-06-02 02:56:20 -07:00
Evoke Zhang 7ed736c9ff lcd: tcon: update driver to fw api [1/2]
PD#SWPL-125611

Problem:
need update driver to fw api

Solution:
1.change reg access and line/frm_cnt api to fw struct function pointer
2.provide base_timing to fw
3.unify tcon debug node to /sys/class/aml_tcon/tcon/

Verify:
ay301, bc302

Change-Id: I549d570a78ffc20af0fcae451843513036224a5b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2023-06-02 02:56:17 -07:00
dongfei.li 6c9c9667aa frc: frc fixed size chg flashing once [1/1]
PD#SWPL-125468

Problem:
flashing when switch window size

Solution:
add patch to adjust start flow

Verify:
T3X

Change-Id: I02a6f9f35bc0a4faab86cd6409e693801fa0b81c
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-06-01 21:38:44 -07:00
yunmin.chen 99977112c9 mediasync: CB2 low-memory platform video pipeline optimize [1/2]
PD#SWPL-117032

Problem:
Add mediasync to the amvideo pipeline

Solution:
Add mediasync to the amvideo pipeline

Verify:
SC2

Change-Id: Ie2afd7ea67adacfc1a8515c38589c5370a39fe0c
Signed-off-by: yunmin.chen <yunmin.chen@amlogic.com>
2023-06-01 06:43:14 -07:00
Bin.Wang2 cda9e1fbef amvecm: hdr tone mapping ioctl api unification [1/1]
PD#SWPL-114841

Problem:
hdr tone mapping ioctl communication fail

Solution:
unify hdr tome mapping ioctl api

Verify:
verify on T3

Change-Id: Ifda2ec2d1439cfd04bf29dc2af8958c79760dd49
Signed-off-by: Bin.Wang2 <bin.wang2@amlogic.com>
2023-06-01 01:46:49 -07:00
binqi zhang aafc3a05b4 UVM: add protect mutex for hook mod detach [1/1]
PD#SWPL-125284

Problem:
handle->flags checking is not done within mutex
lock when hwc call detach

Solution:
1.move flag checking within mutex lock;
2.clear flag after detach;

Verify:
verify on T T5M

Change-Id: Ie021d1d9593e1e63774aa9de04750a1e0beecccd
Signed-off-by: binqi zhang <binqi.zhang@amlogic.com>
2023-05-31 22:47:19 -07:00
Doosan Baek a88ffafa68 KL/KT: Add a new seckey driver [1/1]
PD#SWPL-124965

Problem:
Need key ladder/table driver for kernel5.15
The KT driver needs to be separated from the descrambler.
New APIs are needed for the KT driver.

Solution:
Create a seckey driver.

Verify:
S5 KT/KL with DMA
T3 METACAS with Descramble
T5W

Change-Id: Id058e64f99918b66e79d24647880f999f55ca13a
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2023-05-31 20:54:04 -07:00
Brian Zhu 284c0dec2a deinterlace: pre-vpp link stuck [1/1]
PD#SWPL-123079

Problem:
pre-link switch status machine

Solution:
when di unreg,release vpp buffer

Verify:
T5m

Change-Id: If4e5cd3492ab2c827016805b69975d9a967124ab
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2023-05-31 20:53:59 -07:00
Wenjie Qiao dfedb0e635 hdmitx: not control cuva vsif when TV not support cuva [1/1]
PD#SWPL-104832

Problem:
HDMI CTS14 7-39 fail, not send vsif when output hdmi14b vic

Solution:
not control cuva vsif when TV not support cuva

Verify:
sc2

Change-Id: I11e9d2a961a88c01e2ef8b4543d4c8223e6e67ba
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-05-30 20:55:58 -07:00
chuangcheng peng 92e321bce0 demux: support tee dmx binding dma_buf and pid [1/1]
PD#SWPL-121154

Problem:
tee dmx need binding dma_buf and pid

Solution:
binding dma_buf and pid

Verify:
not verified

Change-Id: I3239545bdcc14b22909e97ce2dd7dd79589ff422
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-05-30 03:33:43 -07:00
Pengcheng Chen 6339b89765 vpp: video sink zapper code cut [1/1]
PD#SWPL-122269

Problem:
video sink zapper code cut

Solution:
video sink zapper code cut

Verify:
zapper

Test:
zapper build ok.

Change-Id: Ia264da7c8035104acf18307ff3312c90d31b3615
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-05-29 23:41:01 -07:00
Jian Cao e11a37020a vpp: modify video position only for screen reverse or mirror [1/1]
PD#SWPL-123836

Problem:
video mirroring causes black screen

Solution:
modify video position only for screen reverse or mirror

Verify:
t7

Change-Id: I9f7a5348ece5ae3dad76ac96f9b620865da45081
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2023-05-26 02:00:37 -07:00
yao liu c9a7050a39 amdv: hw5 top2 bringup [1/1]
PD#SWPL-123849

Problem:
new feature

Solution:
test TOP2 fixed patten

Verify:
t3x

Change-Id: I6ebcf9e9037ea93cbbc3745d3213c98ac72f3c91
Signed-off-by: yao liu <yao.liu@amlogic.com>
2023-05-25 23:46:41 -07:00
yuhua.lin 0528f2c5e0 video: initialize vppx holdline [1/1]
PD#SWPL-118243

Problem:
vpp1 holdline did not initialize

Solution:
fix it

Verify:
t7c

Change-Id: Idd39328b8036dab2767830835558b331ffe37c3d
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2023-05-25 07:48:23 -07:00
Pengcheng Chen b72081dee1 vpp: add vpp1 video display support [1/1]
PD#SWPL-120648

Problem:
add vpp1 video display support

Solution:
add vpp1 video display support

Verify:
t3x

Change-Id: I4f1bdc3eb024b46272eafbf17b4e4c6783cc020b
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-05-25 02:10:37 -07:00
Pengcheng Chen 6b621a2fc0 vpp: add vsync_2to1 support [1/1]
PD#SWPL-124845

Problem:
add vsync_2to1 support

Solution:
add vsync_2to1 support

Verify:
t3x

Change-Id: Ib9130f26754cc80b6f8cfe9ba02479d95c4f5730
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-05-23 21:41:58 -07:00
xiaoming sui d96e2b21cc tsync: CB2 support tsync for get pcr. [2/2]
PD#SWPL-124199

Problem:
1, tsync can not get the demux pcr;
2, kernel panic in the tsync driver;

Solution:
1, get demux pcr from demux driver;

Verify:
T3

Change-Id: Idded2969187f1cac04ff113704d8189311b70106
Signed-off-by: xiaoming sui <xiaoming.sui@amlogic.com>
2023-05-21 18:58:30 -07:00