Commit Graph

112 Commits

Author SHA1 Message Date
jintao xu 4cc39e095f v4lvideo: fix unlock err [1/1]
PD#SWPL-146187

Problem:
not exit stream off

Solution:
fix unlock err

Verify:
sc2

Change-Id: I943927313d804bf342e29fe61bc087ac1768b124
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-11-16 18:55:28 +08:00
jintao xu 84de425939 di: free buffer when REG_STEP1 [1/1]
PD#SWPL-137948

Problem:
fcc 3 channel has di buffer

Solution:
free buffer when REG_STEP1

Verify:
sc2

Change-Id: I921fece2180357c6fb986a459475081a15239d20
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-11-14 10:14:33 +08:00
yao zhang1 a24ea130f9 bootup: Optimize k5.15 boot log. [1/1]
PD#SWPL-142042

Problem:
Too many logs affect performance.

Solution:
Optimize boot log.

Verify:
sc2

Test:
DRM-OSD-2

Change-Id: I5a9435c350074206226a164fdf3f2eb64e4683a1
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2023-10-30 18:59:09 +08:00
chen.xu 943a155ae7 video_composer: fix interlace source start play and screen jitter [1/1]
PD#SWPL-137740

Problem:
1.interlace source start play and screen jitter.

Solution:
1.while top and bottom alternating appearance,
force bottom to top to display.

Verify:
ohm

Change-Id: Id727bd09bb6144f45b437c4902310591ec4503e3
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-10-23 14:31:07 +08:00
jintao xu 4f3ba52d13 di_backend: fix panic when dtv change sorce [1/2]
PD#SWPL-142722

Problem:
panic when dtv change sorce

Solution:
1: v4lvideo lock need include all vf in dq thread
2: reset all parameter when init
3: fix get err file when drop

Verify:
sc2

Change-Id: I8ee754bbecfb1166dd64d231df29742a37efde9d
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-10-19 10:24:38 +08:00
zhenteng.tian f5badcc5e6 v4lvideo: fix kernel panic for stress test. [1/1]
PD#SWPL-141870

Problem:
Stress testing result kernel panic.

Solution:
Add protection to check if parameter is error.

Verify:
T3X

Change-Id: I195a7de0c2324dbba54d640a23c54560680bfc57
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2023-10-17 19:22:05 +08:00
jintao xu 1ee0b56a04 di_process: fix panic when err file [1/1]
PD#SWPL-140644

Problem:
panic when err file

Solution:
add err value check for file

Verify:
sc2

Change-Id: Idf0fb3089c25a2e3ee475ae87b410fc7c8771074
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-10-12 16:34:22 +08:00
jintao xu e708054628 vc: not drop when frame has fence [2/2]
PD#SWPL-140796

Problem:
multi-channel panic

Solution:
not drop when frame has fence

Verify:
sc2

Change-Id: I0d3ad11826d66f9c764db71e222a3940edc54a92
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-09-27 21:14:57 +08:00
dabing.qi 6aa7149962 hwc: reset backup sourcecrop and backup displayframe when instance
init [1/1]

PD#SWPL-139879

Problem:
backup source crop and backup display frame will become 0 when instance
init

Solution:
reset backup source crop and backup display frame when instance
init

Verify:
T5M

Change-Id: I0b73d73700275e8fc6579876cfb309ce69c41e0e
Signed-off-by: dabing.qi <dabing.qi@amlogic.com>
2023-09-20 20:39:02 +08:00
jintao xu c5f69fae41 di_process: fix I to I disp err [1/2]
PD#SWPL-137633

Problem:
I to I, will disp last I frame after next I

Solution:
I to I, not report fmt change

Verify:
SC2

Change-Id: I23fec3a3dfb141395e7f229b5c9d28f843b20dcb
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-09-19 20:10:23 +08:00
jintao xu 2cd2901d78 di_process: fix panic when process check in [1/1]
PD#SWPL-137475

Problem:
process_checkin find ref has released

Solution:
add mutex for process and release check in

Verify:
SC2

Change-Id: I98af46e1488d534503b9984fc7866b9523522a49
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-09-14 13:31:16 +08:00
jintao xu 9073190bd4 di_backend: support tvp [1/2]
PD#SWPL-138276

Problem:
di_backend not support tvp

Solution:
di_backend support tvp
di_backend support from non-tvp to tvp
di_backend support from tvp to non-tvp

Verify:
SC2

Change-Id: Ie25c7dffa4a417caab36462cb84a381845a5b734
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-09-13 23:01:41 +08:00
dabing.qi cf6a1be2ac hwc: restore source crop and display frame when consumer reconnect [1/1]
PD#SWPL-136626

Problem:
in videotunnel,when consumer disconnect and reconnect,source crop
and display frame will reset

Solution:
restore source crop and display frame when consumer reconnect

Verify:
ohm

Change-Id: I29dc241182d72cb4cdb9bca2ad305792f5506243
Signed-off-by: dabing.qi <dabing.qi@amlogic.com>
2023-09-13 16:21:33 +08:00
qiyao.zhou 9b286b1012 uvm: panic when dump vf for security play. [1/1]
PD#SWPL-137562

Problem:
CPU don't access security buf for dump.

Solution:
Return directly when dump for security play.

Verify:
s5

Change-Id: Ia2f45e96c697ffe0e12529debfe2187b54237ee5
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-09-13 15:14:51 +08:00
Pengcheng Chen b39ba27902 vpp: fix display blurred in lowlatency mode [1/1]
PD#SWPL-132411

Problem:
video buffer put back when in lowlatency proc

Solution:
only put video buffer in vsync_isr

Verify:
ohm

Change-Id: If78ef47a58fa93d44303d49c84c4079a1b1e321c
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-09-13 14:51:21 +08:00
chen.xu f839fde0ca amlvideo2: get width and height for only video [1/1]
PD#SWPL-136140

Problem:
need screencap for only video of point 7.

Solution:
get width and height for only video of point 7.

Verify:
TXHD2

Change-Id: I534baa5201191cc4324d8f1c914df39c548ccf40
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-08-22 06:09:06 -07:00
chen.xu bb64a4e9c3 v4lvideo: modify error log to other [1/1]
PD#SWPL-136316

Problem:
need rm log

Solution:
rm log

Verify:
ohm

Change-Id: I18465f4daaff00f4c489b48c202ac46718b0615d
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-08-21 10:39:46 -07:00
jintao xu 6e5a389962 di_process: support di in display side [1/4]
PD#SWPL-136316

Problem:
support di backend

Solution:
support di backend

Verify:
ohm

Change-Id: Iad72c1ebc5e33bade4e6efb87167defd4bc405b6
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-08-19 18:08:44 -07:00
qiyao.zhou ff2540aec4 vc: none-tunnel need support crop for AFBC. [1/1]
PD#SWPL-135833

Problem:
None-tunnel need support crop for AFBC compress.

Solution:
Modify vframe crop calculate flow in VC.

Verify:
SC2

Change-Id: I4c72746bee21cf7a3c03db32a0207c03819a092e
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-08-14 05:58:52 -07:00
chen.xu e135acff51 amlvideo2: support screencap only video [1/1]
PD#SWPL-128910

Problem:
amlvideo2 need support screencap for main and sub screens.

Solution:
amlvideo2 support screencap for main and sub screens.

Verify:
T7C

Change-Id: Iabd1450d1c65a98544e92f2be20f7b34fdd95e2a
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-08-08 20:08:40 -07:00
Dezhi Kong 381adca16d uvm: add size check for 10bit [1/1]
PD#SWPL-132781

Problem:
memory trasngression access

Solution:
add size check for 10bit
force to 8bit process when check fail

Verify:
sc2-android-u

Change-Id: I601d0da54490d88ab60f0c1a6041fab261637de8
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2023-08-07 07:58:41 -07:00
qiyao.zhou e370a728ed vq: specias fps would result nonuniform fps [1/1]
PD#SWPL-131146

Problem:
specias fps would result nonuniform fps.

Solution:
Modify special fps match flow.

Verify:
T5M

Change-Id: I3c339d1dea3a0cbe151b462994757418e3d97755
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-07-30 23:58:48 -07:00
chen.xu da72206479 v4lvideo: only keep decoder dw when di pw [1/1]
PD#SWPL-132954

Problem:
while switch source, memory alloc failed.

Solution:
only keep decoder dw when di pw.

Verify:
T963D4

Change-Id: Iea40488b3a5c106fa12255d8176a586d20fba0a2
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-07-28 04:46:55 -07:00
zhenteng.tian fbcbe47e4c vpp: fix alpha use last frame info [1/1]
PD#SWPL-132135

Problem:
small window will black when big window change with small window

Solution:
alpha use cur frame info for kernel 5.15

Verify:
S5

Change-Id: I7d5a1f29a88586e4f23f4dbe5f95a1bc664e5b55
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2023-07-27 08:13:21 -07:00
chen.xu 6a510a72c3 v4lvideo: keep decode dw yuv data [1/1]
PD#SWPL-131951

Problem:
data decode yuv not transfer and keep it
when config dw=3.

Solution:
keep video dw yuv data.

Verify:
S905L3

Change-Id: Id55647bff6f8bafb897e58c6a3b4c33fe90fb32e
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-07-19 21:23:17 -07:00
chen.xu 7a7712fe26 aicolor: T3X aicolor feature bring up. [3/3]
PD#SWPL-130223

Problem:
T3X need support aicolor.

Solution:
uvm need support ai color.

Verify:
T3X

Change-Id: Ieb9d92a29961c98db4b484d4075a4bd693de48e8
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-07-13 01:16:08 -07:00
chen.xu 13202b64a9 ScreenCap: Optimize the screencap rate [1/1]
PD#SWPL-124966

Problem:
optimize the screencap rate.

Solution:
use cache when mmap.

Verify:
T5M

Change-Id: I157a1ffcec8dd2183c7405c961e9627c25348b65
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-07-12 23:10:20 -07:00
dabing.qi 260ec6310b hwc: add more debug info in videotunnel [1/1]
PD#SWPL-125646

Problem:
add more debug info in videotunnel

Solution:
add more debug info in videotunnel

Verify:
t3

Change-Id: I1bf0cb89d9d22550a91c43d4b039c0ace0dbcd3d
Signed-off-by: dabing.qi <dabing.qi@amlogic.com>
2023-07-05 06:51:15 -07:00
chen.xu 2cc7a430f6 video_composer: add fence info for debug [1/1]
PD#SWPL-129173

Problem:
need add fence info for debug

Solution:
1.add fence info for debug

Verify:
t3

Change-Id: Iccb38c5e8be5ddad9db0f5aae4198502a2243703
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-06-30 04:57:15 -07:00
chen.xu 6fc07d33c5 amlvideo2: support dump amlvideo2 input and output data [1/1]
PD#SWPL-129658

Problem:
need support dump amlvideo2 input and output data.

Solution:
1.support dump amlvideo2 input data.
2.support dump amlvideo2 input and output data,
starting from screen recording, continuously dump.

Verify:
t3

Signed-off-by: chen.xu <chen.xu@amlogic.com>
Change-Id: I530f09109d6441557a29f477cc3fb4a25a7e7364
2023-06-27 05:12:49 -07:00
qiyao.zhou 9b4d5a21c1 vc: change vicp table buf to non-cached. [1/1]
PD#SWPL-128880

Problem:
vicp would write illegal address when table
buf flush error in vc.

Solution:
use non-cached buf to replace cached buf.

Verify:
s5

Change-Id: I8a0a3516d7d22becb9b932028af9e33ac82960fb
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-06-25 21:33:10 -07:00
chen.xu 4a139e9719 amlvideo2: fix thread stuck while reboot [1/1]
PD#SWPL-127649

Problem:
amlvideo2 thread stuck while reboot.

Solution:
When resources are not sufficient, let the thread actively
give up the CPU.

Verify:
sandia

Change-Id: I9417243d55140f924f11e2fa1e3c8791b99d5854
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-06-25 03:33:44 -07:00
jintao xu ac7e3095ba ionvideo: add sg table check to fix panic [1/1]
PD#SWPL-128175

Problem:
sg table null cause panic

Solution:
add sg table check to fix panic

Verify:
T7

Change-Id: Idcc458b5e84cfbf0b8b5827c24c5767fc0bac2c1
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-06-20 21:00:58 -07:00
chen.xu 76147f3647 ionvideo: fix ionvideo crash [1/1]
PD#SWPL-125407

Problem:
need null pointer judgment for kthread_stop func.

Solution:
add null pointer judgment for kthread_stop func.

Verify:
t982

Change-Id: I4be482ee043d3a8c6f456010ba22271d37480068
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-05-29 00:34:21 -07:00
Tianhua Sun 55c113bdcd videotunnel: need to implement cmd SET_DISPLAY_FRAME [1/2]
PD#SWPL-118152

Problem:
need add new cmd SET_DISPLAY_FRAME for video tunnel

Solution:
add new cmd SET_DISPLAY_FRAME for video tunnel

Verify:
t7

Change-Id: I4fc64b17ad89157d143223c892cbe85516ab968d
Signed-off-by: Tianhua Sun <tianhua.sun@amlogic.com>
2023-05-23 01:42:13 -07:00
Tianhua Sun 6bd4c8e83f videotunnel: support send video state cmd without connect for producer [2/2]
PD#SWPL-122889

Problem:
support send video state cmd without connect

Solution:
do not check connection status when cmd is send video state
for producer

Verify:
soddy

Change-Id: Ibcee11a8d4a06d2fcf69944f3b98249441375a8a
Signed-off-by: Tianhua Sun <tianhua.sun@amlogic.com>
2023-05-21 22:53:51 -07:00
qiyao.zhou d38753b9a8 vicp: move compress config to vc. [1/1]
PD#SWPL-117250

Problem:
t3x bringup

Solution:
add lossy compress config;

Verify:
t3x

Change-Id: Idab2c0522c7f8c9ad18d348ada2f08861271f1bd
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-05-18 21:08:42 +08:00
qiyao.zhou ad530f63a8 vicp: add lossy compress config for t3x [1/1]
PD#SWPL-117250

Problem:
t3x bringup

Solution:
add lossy compress config;

Verify:
t3x

Change-Id: I11f293899c4720461a00d8f507837c79694ce99c
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-05-18 21:08:42 +08:00
qiyao.zhou 37018008ef vicp: add vicp config for t3x [1/1]
PD#SWPL-117250

Problem:
t3x bringup

Solution:
1.add film grain config;
2.add lossy compress config;

Verify:
t3x

Change-Id: I12a8a21dc406deed4236b4d030752f5c30c38ae7
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-05-18 21:08:41 +08:00
chen.xu 9383c16667 amlvideo2.0: fix t3x screenshot use vdin2 [1/1]
PD#SWPL-117275

Problem:
t3x screenshot use vdin2.

Solution:
t3x screenshot use vdin2.

Verify:
T3X

Change-Id: If8add8ff867ad659d303c89e344c67a5517c45f1
Signed-off-by: chen.xu <chen.xu@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
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
chen.xu a8317f38b8 video_processor: fix panic while make strict safety test [1/1]
PD#SWPL-123626

Problem:
while make strict safety test,v4lvideo and ionvideo
module will panic.

Solution:
modify v4lvideo and ionvideo module code,make it safe.

Verify:
T982_AR301

Change-Id: I491f6b8ca1f2047e86bd02e87578d4683df1d415
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-05-14 23:49:33 -07:00
chen.xu a0947a7467 vpp: support get aisr info for apk and dump dma src [1/1]
PD#SWPL-122111

Problem:
1.apk need get aisr information.
2.support dump data for dma source

Solution:
1.add aisr_info_show node to support.
2.support dump data for dma source.

Verify:
T7C

Change-Id: Ide9adb3e61ccadac14889157bf78b0d658a5b4c0
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-05-06 01:00:23 -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
chen.xu 506c89d3ff amlvideo2.0: add osd only support for screencap [1/1]
PD#SWPL-119995

Problem:
need add osd only screencap.

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

Verify:
T963d4

Change-Id: Ie59d9e3f95d6baf89ac6fd2c3292df080fe08f59
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-04-21 06:07:37 -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
chen.xu 094ecf6263 video_composer: fix snowflake screen while nn mode change [1/1]
PD#SWPL-119707

Problem:
nn mode change, the first frame will consume long time
result snowflake screen, so need bypass the first frame
while nn mode change.

Solution:
bypass the first frame while nn mode change.

Verify:
t982

Change-Id: If8609e098334d8d9ab280eade1223307c1d998ef
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-04-18 06:12:12 -07:00
qiyao.zhou 6dc224190c vc: dewarp module need support endian config [1/1]
PD#SWPL-116166

Problem:
Need add endian support in dewarp.

Solution:
add endian config flow in dewarp.

Verify:
t7

Change-Id: I57f136462655635ce21eca6bd80435464e9f32ef
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-04-18 03:23:46 -07:00
jintao xu 46ed4ab38e vq: file_q need add mutex [1/1]
PD#SWPL-118810

Problem:
mem leak

Solution:
file_q need add mutex

Verify:
T3

Change-Id: I5a643c487fa52bcf35736ecf0c53e2118f8546ee
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-04-18 00:53:16 -07:00