Commit Graph

855 Commits

Author SHA1 Message Date
dongfei.li e2796eb3a7 frc: frc open mc double write buffer for t3x [1/1]
PD#SWPL-116995

Problem:
open t3x mc double write function

Solution:
open t3x mc double write function

Verify:
T3X

Change-Id: I1ddae35f8da8328ebbc2fd026bc0ecb687c6105d
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-05-18 21:08:40 +08:00
Pengcheng Chen b8b027129a vpp: add yuv p010 mode support for t3x [1/1]
PD#SWPL-118286

Problem:
add yuv p010 mode support for t3x

Solution:
add yuv p010 mode support for t3x

Verify:
t3x

Change-Id: Iedc8f62cf086bfe032d2f6ff2936e6d57a10fa15
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-05-18 21:08:40 +08:00
qinghui.jiang ee371834e2 amvecm: add code flow for t3x bringup [1/1]
PD#SWPL-111634

Problem:
amvecm modification for t3x bringup

Solution:
add more code flow for t3x
1.modify lcd gamma 257 points and blue stretch reg
2.add variable slice number flow for t3x and s5
3.bypass vlock init flow
4.add am_dma_ctrl for lc_stts/vi_hist/vi_hist_low/cm2_hist/hdr2_hist
5.add vi_hist blend api for two slices dnlp case
6.add dnlp reg ctrl apis for two slices
7.add lc curve/stts reg info
8.add lc apis and flow for two slices
9.modify hdr flow for two slices

Verify:
t3x

Change-Id: Iaa384985adbf326055290a6eef219997c76e984e
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2023-05-18 21:08:40 +08:00
dongfei.li e8d618e39f frc: frc t3x bringup configure [1/1]
PD#SWPL-117248

Problem:
frc t3x configure for bringup

Solution:
frc t3x configure for bringup

Verify:
T3X

Change-Id: Ieb2b1dda9d80b6fcf9593efca396b53724e3f3ee
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-05-18 21:08:40 +08:00
qiyao.zhou 0189467843 vicp: add vicp config for t3x [1/1]
PD#SWPL-117250

Problem:
t3x bringup

Solution:
add vicp config for t3x.

Verify:
t3x

Change-Id: I8a955fda527d7f0623aac09475f5a8ae27c0a356
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-05-18 21:08:39 +08:00
haitao.liu 36a9e41fc4 vdin: t3x silicon bringup [1/1]
PD#SWPL-117268

Problem:
t3x silicon bringup

Solution:
add vdin on t3x

Verify:
T3x

Change-Id: I21847a5e63a1032e813a05bdfe77df8de564dbcd
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-05-18 21:08:39 +08:00
Jie Dai c8681f14ab lcd: t3x lvds and vbyone bringup [2/2]
PD#SWPL-117130

Problem:
t3x lvds and vbyone need bringup

Solution:
add lvds and vbyone driver for t3x

Verify:
bc302

Change-Id: Iaaf753d5cd697262692ab10e5a54a7825cb81c7b
Signed-off-by: Jie Dai <jie.dai@amlogic.com>
2023-05-18 21:08:39 +08:00
yao liu 503e3609ac dv: hw5 brinup [1/1]
PD#SWPL-112141

Problem:
hw5 brinup

Solution:
1.add lut dma
2.add dolby mmu
3.add other top2 code

Verify:
t3x

Change-Id: I3e0b65387e7278f311ca82e51f9835f4d19296dd
Signed-off-by: yao liu <yao.liu@amlogic.com>
2023-05-18 21:08:38 +08:00
Jian Cao 590bcd8029 rdma: add support for t3x [1/1]
PD#SWPL-111641

Problem:
need support t3x rdma

Solution:
add t3x rdma support

Verify:
t3x pxp

Change-Id: I46d9b0969790bd75aabce441d207979a4d1451b0
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2023-05-18 21:08:38 +08:00
Jie Dai 5f53b359c9 lcd: t3x lcd bringup [2/2]
PD#SWPL-111220

Problem:
t3x lcd need bringup

Solution:
add related driver for t3x lcd driver

Verify:
mimic

Change-Id: Icdab6843654c2b459c46ce540dce037f158d5d24
Signed-off-by: Jie Dai <jie.dai@amlogic.com>
2023-05-18 21:08:38 +08:00
yuhua.lin 61c419f75f t3x: add codec_io/canvas/rdma support for t3x [1/1]
PD#SWPL-111641

Problem:
add codec_io/canvas/rdma support for t3x

Solution:
complete it

Verify:
mimic

Change-Id: I7ed58a1e5c9b626351161a8030f565806eebe7d5
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2023-05-18 21:08:38 +08:00
Cheng Wang f86a589fb4 frc: add t3x pxp [1/1]
PD#SWPL-111905

Problem:
t3x pxp

Solution:
t3x pxp verify

Verify:
T3X pxp

Change-Id: Ib136a282450e13a508d412e3ead09622117f323d
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2023-05-18 21:08:38 +08:00
dongfei.li c50097b52f frc: frc add mcdw buffer for t3x [1/1]
PD#SWPL-114573

Problem:
add t3x new buffer control

Solution:
add t3x new buffer control

Verify:
T3X

Change-Id: I9ce60834b621aede4a7520c50ef2cbef16e303fb
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-05-18 21:08:38 +08:00
ziyi 50f5138544 t3x: pxp add high speed emmc and high sd [1/1]
PD#SWPL-111610

Problem:
no high speed emmc and sd

Solution:
add high speed emmc and sd and enlarge desc's buffer

Verify:
mimic,pxp

Change-Id: I397af3ddbdf13c507178bfdcea423a8a87a1d119
Signed-off-by: ziyi <ziyi.huang@amlogic.com>
2023-05-18 21:08:38 +08:00
zehong.luo 38276ef3be t3x: decoder kernel bringup of t3x [1/1]
PD#SWPL-111122

Problem:
decoder kernel bringup of t3x

Solution:
add decoder dts and header files change

Verify:
t3x pxp

Change-Id: I74565d6ee6a8a79eb1ef2199eec70da4cfcf32bb
Signed-off-by: zehong.luo <zehong.luo@amlogic.com>
2023-05-18 21:08:38 +08:00
jialong.jiang f18b010c09 zapper: remove dolby configs. [1/1]
PD#SWPL-120591

Problem:
Need to save memory space

Solution:
Remove crypto configs

Verify:
t215.

Test:
self-test.

Change-Id: I39cdb00d08a973964897b976b2ca87b4a0ccccb9
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-05-16 03:32:36 -07:00
Evoke Zhang 4e0a56d565 lcd: tcon: add tcon_fw support [1/3]
PD#SWPL-116221

Problem:
need support tcon fw

Solution:
add tcon fw support

Verify:
ay301

Change-Id: If517305e649c69bcfcb2662a2f6a33684a923f03
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2023-05-16 03:01:22 -07:00
Zongdong Jiao 3a18e69dfe hdmitx: fix a special no audio output case [1/1]
PD#SWPL-117332
PD#OTT-39191
BUG=266994705

Problem:
The HDMI audio ACR parameter will change when audio format change. In
this intermediate state, some TVset like Vizio has audio compliance
issue and maybe the error correction or handling mechanism of tvset can
not cover such kind of glitch data. It will cause no audio output issue
for such kind of tvset

Solution:
From tx side, optimize the intermediate state. In the beginning of audio
format change, stop the ACR package send, continue ACR package sending
after finish format changing.
Meanwhile, only change the ACR related param when setting is difference
compared with previous one from audio module callback

Verify:
issue Vizio TV and other brand TVset in our hand

Change-Id: I739acba93590ba4c02c0b4a3f50319fa16ea42cf
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2023-05-15 20:01:32 -07:00
Long d6b97e58a7 eMMC: support CQE. [1/2]
PD#SWPL-119703

Problem:
support CQE

Solution:
support CQE

Verify:
T5m

Change-Id: Iaf97dac88e1cafbd8b897506dd044e3a3518a593
Signed-off-by: Long <long.yu@amlogic.com>
2023-05-15 02:04:25 -07:00
Hangyu Li 38a43a756d tvp: tee memory protect api support memory access 4G [2/2]
PD#SWPL-120818

Problem:
tee memory protect API need support memory exceed 4G

Solution:
support tee memory protect API need support memory exceed 4G

Verify:
T3X + Android T

Change-Id: Icfd5bef7cb88c5cb8d0d9d8c362f914de0423fb7
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
2023-05-15 00:24:19 -07:00
xiang.wu1 169b199a5d hdmitx: sync hdmi commits [1/1]
PD#SWPL-115593

Problem:
need sync commit from project

Solution:
sync hdmi commits from project

Verify:
ah212

Change-Id: I1db415d1dfedde376dbe270f3c2e13fd558e0a47
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-05-12 20:52:56 -07:00
qiuye.gan 4dbcf46961 tsync: CB2 Compilation failed. [1/1]
PD#SWPL-118485

Problem:
Kernel 5.15 cannot use symbol_request.

Solution:
Do not use symbol_request.

Verify:
SC2

Change-Id: I7d48bf7a94b582630f6b8a493f43457fede36584
Signed-off-by: qiuye.gan <qiuye.gan@amlogic.com>
2023-05-09 08:57:32 -07:00
xiang.wu1 cdeb7c1006 hdmitx: add hdr_priority_mode node hide or enable HDR capabilities [1/1]
PD#SWPL-109769

Problem:
When the device switches from SDR and HDR modes to each other,
the device restarts

Solution:
hdmitx driver has updated the dv/hdr cap information,The hdmitx
driver does not throw the hpd plug event, the mode is switched
from the systemcontrol side, and the hwc triggers the hotplug
event according to the vout event to inform the framework to
update the dv/hdr cap

Verify:
ah212

Change-Id: Ie403950ffbb0cc030d50a796fa083c4477078ee7
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-05-09 08:57:23 -07:00
mingxiu.sun 1bf092bfa7 vdin: provide UAPI headers for vdin module [1/1]
PD#SWPL-117407

Problem:
provide uapi headers for user space

Solution:
add vdin uapi headers

Verify:
kernel5.15

Change-Id: I3b7a18aac89a6e0f750ff92996e522d2308de4c5
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2023-05-09 05:39:15 -07:00
he.he 5e7fea0f52 usb: split usb-v2.h [1/1]
PD#SWPL-118459

Problem:
split usb-v2.h

Solution:
split usb-v2.h

Verify:
t3

Change-Id: I1f1915e348a33317f09d2cba6b6e908950b27f96
Signed-off-by: he.he <he.he@amlogic.com>
2023-05-08 21:39:56 -07:00
zehong.luo f2c7fad644 media: decoder support p010 mode [1/2]
PD#SWPL-119633

Problem:
add p010 mode parameter

Solution:
add p010 mode parameter

Verify:
t3x

Change-Id: Ib79537c12fb7ce7aa16d91ac2631786c49a7a3e5
Signed-off-by: zehong.luo <zehong.luo@amlogic.com>
2023-05-08 21:39:51 -07:00
hang cheng c525abab9d hdmitx21: check dv capability per parity bit in EDID [1/3]
PD#SWPL-120559

Problem:
it may output 1080p100/120hz DV mode to TV that doesn't
support DV mode under > 60hz mode

Solution:
per parity bit definition of DV specification, if
parity = 0, sink don't support DV under > 60hz mode
or 8K mode

Verify:
s5

Test:
s5 + 1080p120hz DV TV

Change-Id: I98d36c5ce7b31517f77a19e1639656f6b8643a2f
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-05-08 03:58:28 -07:00
Gaowei Zhao e93cf67119 hdmirx: change emp buffer max pkt cnt [1/1]
PD#SWPL-121757

Problem:
emp buffer set too large cause overstep the boundary

Solution:
change emp buffer size

Verify:
T5M

Change-Id: Iac8106a996a254c6c7983098228331cd525049a9
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2023-05-07 21:50:26 -07:00
hang cheng 1e70be04e1 hdmitx21: disable frl work when reboot [1/1]
PD#SWPL-120816

Problem:
system crash when reboot, as frl work is still running

Solution:
disable frl work when reboot

Verify:
s5

Test:
s5 reboot

Change-Id: Ia47390fd423e71788c023bf807ff35e82e2c12e9
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-05-06 01:35:32 -07:00
Jianxin Pan 5c09398376 zapper: remove unused code of audio and media modules [1/1]
PD#SWPL-116862

Problem:
audio and media modules memory optimization.

Solution:
disable the unused code for zapper.

Verify:
t215.

Change-Id: Ib7941245d6565ea8cbcda07ea422d18688c74e8d
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2023-05-05 09:02:16 -07:00
shipeng.sun 9b3a4a7fd9 dmabuf: CF2 Support secure stream in dynamic free [1/5]
PD#SWPL-103836

Problem:
Support secure stream in dynamic free

Solution:
1.Support secure stream in dynamic free

Verify:
S905X4

Change-Id: Ifbf4065b57d539ff783f843e8089cda253abcd0a
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
Signed-off-by: shipeng.sun <shipeng.sun@amlogic.com>
2023-05-05 03:23:45 -07:00
shipeng.sun 297ee8ed73 tee: reserve secure vdec memory from codec_mm [2/2]
PD#SWPL-121307

Problem:
reserve secure vdec memory from codec_mm instead of reserve in BL32

Solution:
reserve secure vdec memory from codec_mm transfer secure
vdec memory to secureos

Verify:
T5M + android R

Change-Id: Iaf6e53a295bea6e63969977cd0792c91f8d1952b
Signed-off-by: shipeng.sun <shipeng.sun@amlogic.com>
2023-05-04 03:28:53 -07:00
song.han f411bfdab1 iotrace: hook regmap r/w reg when iotrace ko [1/1]
PD#SWPL-119464

Problem:
when iotrace driver build to ko, it has some register r/w
operation not be hooked

Solution:
hook regmap r/w operation when iotrace build to ko

Verify:
SC2_AH212

Change-Id: I763b90fd91e76e5d4138db8ad1d2268c5b33e873
Signed-off-by: song.han <song.han@amlogic.com>
2023-05-03 22:52:30 -07:00
hang cheng 62b730c999 hdmitx: add unmute hdr work func [1/1]
PD#SWPL-117650

Problem:
schedule hdr work occur concurrency issues lead
not unmute: there may be quick switch between
sdr->hdr->dv, the hdr->dv switch will cause the
unmute contidion for sdr->hdr not satisfied,
and thus it will keep mute.

Solution:
add new schedule work for sdr->hdr unmute, thus
it will always forcely unmuted after mute period
when sdr->hdr switch.

Verify:
s905D3

Test:
s905D3

Change-Id: I8795801bf50b3d7a06e1a555d97c490dc363cdd6
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-04-28 01:41:32 -07:00
Brian Zhu 041f547ceb vpp: improve pre-link function in vpp [1/2]
PD#SWPL-118311

Problem:
1. vf->vf_ext may be freed when vpp used. It will occur crash.
So need switch to uvm src_vf.
2. change vskip policy for prelink mode
3. t5d revb need switch afbcd between DI and vd1.

Solution:
1. add uvm_vf in vframe to link to uvm src_vf
2. change vskip policy for prelink mode
3. change the afbcd setting flow in vpp side
4. add force urgent function for di pre-link

Verify:
Verified on t5m

Change-Id: Ifb65141a9ca3779f19f6b2131284ffc3461980af
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2023-04-27 02:50:38 -07:00
qianqian.cai 62ab544d12 deinterlace: support multi pre-vpp link [1/1]
PD#SWPL-118311

Problem:
feature: support multi pre-vpp link.

Solution:
add feature
add share memory for pre-vpp link
add decontour for pre-vpp link
move some pq setting to decontour for pre-vpp-link
add bypass
clkb_max

Verify:
t5m

Change-Id: Id638dc4b3be5717ace678c5392417dfa9594c717
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2023-04-27 00:22:14 -07:00
song.han 820797e318 iotrace: add ramoops_io_dump support [1/1]
PD#SWPL-119464

Problem:
add ramoops_io_dump support

Solution:
add ramoops_io_dump bootargs to support dump iotrace log

Verify:
SC2_AH212

Change-Id: Ie0eef9bf2cb269f82d2d01872d2515695666bb15
Signed-off-by: song.han <song.han@amlogic.com>
2023-04-25 06:28:18 -07:00
hai.cao f3a4d4a616 video: add vpu_security support [1/1]
PD#SWPL-114680

Problem:
no vpu_security

Solution:
add vpu_security support

Verify:
s5

Change-Id: I5b5a692b428e46b6df4c59942db821b82f8f5024
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-04-23 21:09:59 -07:00
xiang.wu1 86d7b9cc94 hdmitx21: sync 5.4 code to 5.15 [1/1]
PD#SWPL-106012

Problem:
need sync 5.4 code to 5.15

Solution:
sync code

Verify:
an400.

Test:
DRM-TX-17

Change-Id: Ic4479bbf570989b98b093ca92069adea06860511
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-04-21 04:11:59 -07:00
haitao.liu cbf37fd649 vdin: add osd only support for screencap [1/1]
PD#SWPL-120413

Problem:
no osd only loopback point for screencap

Solution:
1.add osd only enumeration for amlvideo2.0

Verify:
T963d4

Change-Id: I60bf252275bad9007e8349dd47146f0a7a2cb830
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-04-20 21:14:10 -07:00
qiyao.zhou c137cb89fb aiface: support aiface [1/2]
PD#SWPL-119102

Problem:
support aiface

Solution:
sync aiface feature from 5.4 to 5.15

Verify:
t3

Change-Id: I1599ddc09bbc368c57c9c701c32f458130c122b2
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-04-20 06:16:07 -07:00
song.han 29925ebc8a debug: iotrace driver follow gki 2.0 [2/2]
PD#SWPL-109963

Problem:
iotrace driver need follow gki 2.0

Solution:
iotrace driver build to ko

Verify:
sc2_ah212

Change-Id: I472bc63b6594c58d7c94f74e1bf1a070978b20fd
Signed-off-by: song.han <song.han@amlogic.com>
2023-04-20 06:15:21 -07:00
xinli.gao 70482b1592 gpu: remove fixed-area [1/1]
PD#SWPL-120307

Problem:
GPU no longer uses fixed-area

Solution:
Remove fixed-ared

Verify:
t5m

Change-Id: If7634558ebf89078dc2d1eb9256f382227a2f7f5
Signed-off-by: xinli.gao <xinli.gao@amlogic.com>
2023-04-19 22:11:36 -07:00
min.yang e8e4b59479 dvb_extern: remove symbol func (V1.12) [1/1]
PD#SWPL-118484

Problem:
symbol func not be allow used in U 5.15.

Solution:
remove reference symbol function.

Verify:
verified by T + ohm.

Change-Id: If8c0561f4e5e9b7886f494f50e7c6464aa332b0e
Signed-off-by: min.yang <min.yang@amlogic.com>
2023-04-18 06:12:16 -07:00
Dezhi Kong 3192d284ef uvm: add dummy data process [1/1]
PD#SWPL-108384

Problem:
mali dma map error when exit video play

Solution:
add dummy data process

Verify:
T5M

Change-Id: I833a61fc007a0b6b620f64ee44fce8f158fb0819
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2023-04-18 00:26:12 -07:00
Bin.Wang2 ed794d59e2 amvecm: add fw white extension [1/2]
PD#SWPL-95687

Problem:
add fw white extension feature

Solution:
add fw white extension

Verify:
verify on T3

Change-Id: Ia86d4ccb1c8c246f017a868da675c8dbeff14d71
Signed-off-by: Bin.Wang2 <bin.wang2@amlogic.com>
2023-04-17 02:23:14 -07:00
Jian Cao 2796ae1550 gdc: add endian support [1/1]
PD#SWPL-116164

Problem:
add endian support

Solution:
add this support

Verify:
t7

Change-Id: Id6934ccd7bbfb98dc95f157704f7763808f7373a
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2023-04-16 22:32:14 -07:00
chengbing.wu 29655631ae pmic: a1 k5.15 pmic and sub driver porting [1/1]
PD#SWPL-112358

Problem:
ad403 is missing pmic6b driver in kernel5.15.

Solution:
base Yu Tu 76117 and 78726;
base Jian yi 189702 and 192916,216774;
and yao jie 216898;

Verify:
A113L-AD401 #1 +Battery.
all driver use ko;

Change-Id: I911ca92dbe6f8c0f623e32fd14bdcf23a6318861
Signed-off-by: chengbing wu <chengbing.wu@amlogic.com>
2023-04-16 22:32:09 -07:00
xiang.wu1 c079e62c7e hdmitx: Add more debug info of hdmitx [1/1]
PD#SWPL-110984

Problem:
Need add more debug info of hdmitx

Solution:
Add more debug info of hdmitx
1.hdmitx_basic_config
2.hdmitx_pkt_dump
3.hdmitx_debug_reg

Verify:
ah212

Change-Id: Ie28e9842ec6a63469242450df0de413f5e5252c5
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-04-16 09:09:21 -07:00
Long 4791f52e8a S5: fixed sdcard timing. [1/1]
PD#SWPL-108753

Problem:
rx window compatibility is poor in sdcard sdr104 mode.

Solution:
fixed sdcard sdr104 core_phase

Verify:
S5 ax201

Change-Id: I9c4eb90001803d5dae17c9659fa261a8204e00f3
Signed-off-by: Long <long.yu@amlogic.com>
2023-04-15 08:59:04 +08:00