Commit Graph

733 Commits

Author SHA1 Message Date
miaohong chen ecbdfd000b AVBCD: CF2 Support screenshot and crop features . [2/3]
PD#SWPL-197097

Problem:
Support screenshot and crop features for AVBCD Wrapper.

Solution:
Support screenshot and crop features for AVBCD Wrapper.
depend on cl:
507199

Verify:
AH212

Change-Id: I8d48a0b6fc750d9a6140b6c42dced09e0f37580b
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
2025-01-14 22:30:06 -08:00
can.zhang 51c2856004 amdv: sync 5.15 code, remove module_params [1/1]
PD#SWPL-195517

Problem:
need sync code

Solution:
sync code

Verify:
sc2

Change-Id: If79f37d852a9440c901479f0b58a2fab9ac22eae
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2025-01-14 19:03:58 -08:00
shipeng sun c6a18bfe1c dmabuf_manage: CF2 Support VP9/AV1 No Head [2/4]
PD#SWPL-195582

Problem:
Support VP9/AV1 No Head

Solution:
Support VP9/AV1 No Head

Verify:
SC2

Change-Id: I9b9a6dc28098141c56b9fb8282a977a48925551a
Signed-off-by: shipeng sun <shipeng.sun@amlogic.com>
(cherry picked from commit bf7c56d00e96e03869b2da3e6d33bd5c690f1445)
2025-01-13 18:28:05 -08:00
ruofei.zhao 6c14e1f027 hdmitx: optimize notify_hpd_status api [1/1]
PD#SWPL-199605

Problem:
hdmitx_bootup_notify_hpd_status and
hdmitx_common_notify_hpd_status functions are duplicated

Solution:
Delete hdmitx_bootup_notify_hpd_status and
use hdmitx_common_notify_hpd_status

Verify:
S905X5M

Test:
DRM-TX-78

Change-Id: I67d00852494dce404f36615ec15bf4fcc60cc1ca
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2025-01-13 18:27:51 -08:00
Pengcheng Chen cfea629e55 vpp: modify is_tv_panel api [1/1]
PD#SWPL-190819

Problem:
modify is_tv_panel api

Solution:
modify is_tv_panel api

Verify:
s6

Change-Id: Id4b7e1218f978591726e7365b12a7e8a01f262c9
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
(cherry picked from commit 9501ec66d72460f1c8583dc0794cb3816a3a80a7)
2025-01-12 22:20:31 -08:00
hai.cao 3b828621f4 rdma: optimize rdma write time consuming [1/1]
PD#SWPL-199460

Problem:
sync rdma optimize code

Solution:
sync rdma optimize code

Verify:
all chip

Change-Id: Ifcb67aba168629ccf1bd3563fda10775d5d71ad0
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2025-01-10 02:57:12 -08:00
qiankun.wang 6f7b862c24 gki_module: add key_value common module_param_array function [1/1]
PD#SWPL-195506

Problem:
too many module_params_array extend boot time.

Solution:
Use key-val to obtain module_params_array information.

Verify:
sc2

Change-Id: I60b1c0b6f54d697747e393d2beb540f23a99a59c
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2025-01-08 22:20:49 -08:00
Tao Zeng 5adfcce57e amfc: sync driver from 5.15 for coverity [1/1]
PD#SWPL-198594

Problem:
coverity issues in amfc driver;

Solution:
1, fix coverity issues;
2, sync driver to support 576Mhz freq;
3, check if soc support amfc;

Verify:
local

Change-Id: Ie0afa615f09fc79e7e4757b5066f3f5aa008e944
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2025-01-07 22:14:16 -08:00
xiangyang.yan 61b3882fd0 eth: sync code from kernel5.15 to kernel6.12 [1/1]
PD#SWPL-197582

Problem:
sync code from kernel5.15 to kernel6.12

Solution:
sync code from kernel5.15 to kernel6.12

Verify:
S7D-S905X5M-BM201#070

Change-Id: I36100f3332297cc0e26fab4cf2013f2ff4fdd2d1
Signed-off-by: xiangyang.yan <xiangyang.yan@amlogic.com>
2025-01-02 23:52:57 -08:00
dian.shao 6e629b1fc7 usb: Refactor usb phy driver [1/1]
PD#SWPL-197735

Problem:
USB phy drivers are messy.

Solution:
Refactor usb phy driver to use phy apis and
group soc-related ops together in separated
soc-tagged file.
Gather scattered dts phy nodes and use one
core phy driver to parse them.

Verify:
s905x5m.

Change-Id: Ie01a105ba77df2d1de50df1cf5ed82b81b8027e5
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-01-01 22:59:14 -08:00
Feng Chen fc6d1ec28a s7d : spisg: driver validation [1/1]
PD#SWPL-196203

Problem:
S7D spisg driver validate.

Solution:
adapt the spisg driver.

Verify:
S7D_BM201

Change-Id: If9acb2e94c37792dee248a9a6d1d21693ecbac56
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2024-12-30 17:38:06 +08:00
Junyi Zhao b627306fc5 pwm: add support for 6.12 [4/4]
PD#SWPL-196730

Problem:
there is no s7 s7d s6 pwm driver

Solution:
add pwm driver
sync cl 450533

Verify:
s7d bm201

Change-Id: I0670c44da86c32e9cbf9103e2f391c3fcf3fe21c
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-12-30 17:37:25 +08:00
Junyi Zhao 3d563daa34 pwm: add support for 6.12 [3/4]
PD#SWPL-196730

Problem:
there is no s7 s7d s6 pwm driver

Solution:
add pwm driver
sync cl 431451

Verify:
s7d bm201

Change-Id: If41790520dd341b522cc60754dbb1328ba84b337
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-12-30 17:37:25 +08:00
Junyi Zhao f009d96d79 pwm: add support for 6.12 [1/4]
PD#SWPL-196730

Problem:
there is no s7 s7d s6 pwm driver

Solution:
add pwm driver
sync cl 350967

Verify:
s7d bm201

Change-Id: If992869da29509696485775b1d7a5a0d04670c2f
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-12-30 17:37:25 +08:00
Tao Zeng c1334247fd amfc: add driver for 6.12 [1/1]
PD#SWPL-195922

Problem:
No amfc driver on 6.12

Solution:
add it

Verify:
local

Change-Id: I781fad57d8d0ecee60a9157a628fef23c2f2c76b
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-12-30 17:37:25 +08:00
Junyi Zhao aae84795b0 pwm: support pwm for 6.12 [1/1]
PD#SWPL-195889

Problem:
6.12 bringup

Solution:
support it

Verify:
s7d bm201

Change-Id: I7b7c908dac557fd6ab6e22776270e30f1c22ef0f
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-12-30 17:36:26 +08:00
brian.zhu 867a4ed957 vpp: update src_crop and afd flow [1/1]
PD#SWPL-186685

Problem:
src_crop has conflict with user crop and overscan setting

Solution:
1. Update crop calculation flow, apply src_crop and user crop together
2. pass the crop information to AFD module

Verify:
Verified on t5w

Change-Id: I8c0d7359153b5fcea5d4abf6abc3b2593bd9a4bc
Signed-off-by: brian.zhu <brian.zhu@amlogic.com>
(cherry picked from commit 45cae0f4e6)
2024-12-27 16:23:59 -08:00
ruofei.zhao 99257a985c hdmitx: update hdmitx version to 20241227 [1/1]
PD#SWPL-195624

Problem:
update hdmitx version for release

Solution:
update hdmitx version to 20241227

Verify:
AH212-S905X4

Test:
DRM-TX-40

Change-Id: I509072c86f2e3be9e8ea456120326e7fc288ab40
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-12-27 03:12:52 -08:00
hai.cao fe7a694515 vpp: remove module parameters [1/1]
PD#SWPL-195503

Problem:
remove module parameters

Solution:
remove module parameters

Verify:
sc2

Change-Id: I39341c2cb6970bf97f0c831f0de11bd6a8570391
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-12-24 07:52:06 -08:00
ruofei.zhao 40df1c4c40 hdmitx: sync hdmitx_edid_parse.c from kernel 5.15 to kernel 6.12 [1/1]
PD#SWPL-197706

Problem:
sync hdmitx_edid_parse.c from kernel 5.15 to kernel 6.12

Solution:
sync hdmitx_edid_parse.c from kernel 5.15 to kernel 6.12

Verify:
S905X4

Test:
DRM-TX-78

Change-Id: I04a8951286dd86bbe0e128cdc2005f46a2065818
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-12-24 07:51:57 -08:00
qiyao.zhou fd769301ff di_process: support for vdec core interlace [1/1]
PD#SWPL-189234

Problem:
support for vdec core interlace.

Solution:
support for vdec core interlace.

Verify:
S905X4

Change-Id: I64ecff0b113ca14ba64a455d465fcaadbad5fca3
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
(cherry picked from commit 5caba87741)
2024-12-23 02:36:05 -08:00
yujun.zhang 5d3eb012ab drm: add video cap, src buf size prop [1/1]
PD#SWPL-187716

Problem:
Userspace needs get video cap, src buf size
by drm property

Solution:
Add video plane properties

Verify:
sc2

Test:
DRM-OSD-81

Change-Id: I5dc81140d8f4f5bc55c8cd8b454d6f4731b80e0b
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2024-12-19 23:38:05 -08:00
Jianxiong Pan add13682c0 mm: enable aml_cma for gki20. [1/1]
PD#SWPL-196879

Problem:
enable aml_cma for gki20.

Solution:
add aml_cma.ko for gki20.

Verify:
sc2.

Change-Id: I360c4b77b632cea82e128c319283d5e425252019
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-12-19 20:57:36 -08:00
baocheng sun d7c31a369e uvm: update api of get video info [1/2]
PD#SWPL-188294

Problem:
expend get video info ioctl to get vframe souce crop

Solution:
update api of get video info

Verify:
sc2

Change-Id: I6928c9d28d9123a062297a2c04e23af66f476669
Signed-off-by: baocheng sun <baocheng.sun@amlogic.com>
2024-12-19 20:56:06 -08:00
zhou.han 72577f2836 hdmitx: fix kernel6.12 UBSAN error [1/1]
PD#SWPL-194784

Problem:
kernel6.12 UBSAN error:
index 141 is out of range for type 'struct dtd[16]'

Solution:
When dtd_idx is less than 15, idx++

Verify:
sc2

Test:
DRM-TX-38

Change-Id: I0cf5b2d6728e5f13770b0941eaf8ddb9e63e60f3
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-12-19 20:55:25 -08:00
Jianxiong Pan a00c19af4d mm: add amlogic vmap stack for arm64. [1/1]
PD#SWPL-197160

Problem:
kernel stack optimization.

Solution:
add amlogic vmap stack for 64bit.

Verify:
sc2.

Change-Id: Ie3b059022e1ab8479f65921ec6fe171824fcd9a1
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-12-19 20:55:11 -08:00
qiyao.zhou eb1d45870a videodisplay: add videodisplay module in 6.12 [1/3]
PD#SWPL-190687

Problem:
Add videodisplay module.

Solution:
Add videodisplay module.

Verify:
txhd2

Change-Id: I8851593973864d54e9d6d5d7889243e8cffdb293
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-12-18 18:06:23 -08:00
Jian Cao 340dc7feea vpp: add check for type_ext VIDTYPE_EXT_HIGH_BANDWIDTH [1/1]
PD#SWPL-195155

Problem:
vpp needs to perform line skipping while high bandwidth

Solution:
add the corresponding flag check

Verify:
t5m

Change-Id: I0663dbb6dd0fb90058f8afba4ec7d75c76d77dc6
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
(cherry picked from commit 170cdf7d3d)
2024-12-17 03:16:51 -08:00
Jianxiong Pan f68684c5cb mm: add GFP_NO_CMA flags. [1/1]
PD#SWPL-196879

Problem:
some page fall into cma pool, causing slow cma allocation.

Solution:
add GFP_NO_CMA flags.

Verify:
sc2.

Change-Id: I5a319b7ce85d735e14289786fb5b80cc59f73009
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-12-16 23:31:58 -08:00
xiang.wu1 752f005796 hdmitx: module_params clean [1/1]
PD#SWPL-195505

Problem:
module_params clean

Solution:
1. Clear unnecessary module_params.
2. Some functions are implemented through debug nodes.
3. Keep hdmi_authenticated hdmitx_debug  nodes.

Verify:
SC2

Test:
DRM-TX-79,DRM-TX-80,DRM-TX-81,DRM-TX-82

Change-Id: Iea2981de243d5a52c9da437eb6dacebd0d742d15
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-12-16 23:31:20 -08:00
xiang.wu1 30f7ecad65 hdmitx: optimizes the code for sending 4kx2k vsif packet [1/2]
PD#SWPL-142291
PD#SWPL-196224

Problem:
hdmitx_common_setup_vsif_packet contains
hdmi_set_vend_spec_infofram function, remove unnecessary code

Solution:
remove it

Verify:
sc2

Test:
DRM-TX-136

Change-Id: Ib83474888e704954f3b1861cd20f4f495b87f8cf
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-12-16 03:24:55 -08:00
qiankun.wang 69f6eea16e gki_module: add key_value common module_param function [1/1]
PD#SWPL-195506

Problem:
too many module_params extend boot time.

Solution:
Use key-val to obtain module_params information.

Verify:
sc2

Change-Id: I003aad5f0442c30bd729a2ad22001223dda1975a
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-12-16 00:32:30 -08:00
ruofei.zhao 3a2b27e55f hdmitx: add edid parse in hdmitx debug function [1/1]
PD#SWPL-193432

Problem:
add edid parse in hdmitx debug function

Solution:
add edid parse in hdmitx debug function

Verify:
S905X4

Test:
DRM-TX-78

Change-Id: I1a356e16b83c12ca48907322c7a5f8810a756f79
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-12-13 01:48:26 -08:00
Pengcheng Chen 7a150c01e7 vpp: pps nonlinear support fot t3x [1/1]
PD#SWPL-159149

Problem:
pps nonlinear support fot t3x

Solution:
pps nonlinear support fot t3x

Verify:
t3x

Change-Id: I8c00382824e92fac959461dba1f3039dca23960f
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
(cherry picked from commit e62a49dffe)
2024-12-12 19:39:13 -08:00
xiang.wu1 e939e18fb6 hdmitx: remove vrr function point int the meson_hdmitx_dev struct [1/1]
PD#SWPL-186430

Problem:
need remove vrr function point int the meson_hdmitx_dev struct

Solution:
1.remove drm vrr function point callback
2.provide function api

Verify:
SC2

Test:
DRM-TX-79,DRM-TX-80,DRM-TX-81,DRM-TX-82

Change-Id: Ia0db79a517ac850e8ceec742a9ee52744b6db4fc
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-12-09 01:31:52 -08:00
Hao Shi e11f5f07ca codec_mm: clear coverity [1/1]
PD#SWPL-193202

Problem:
clear codec_mm coverity.

Solution:
clear codec_mm coverity.

Verify:
Local

Change-Id: Ibd14e9470b50cb67f26691f3c26d3505ecfa1d41
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-12-06 02:31:09 -08:00
lele xiang 89d7459d8f decoder: CF1 Prealloc Mechanism based on single decoder instance. [1/2]
PD#SWPL-188670

Problem:
Prealloc Mechanism based on single decoder instance.

Solution:
Add prealloc function for decoder

Verify:
T6d

Change-Id: Ic88eda66e6eda55607e8846125533295a7cc7f9e
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2024-12-05 23:42:19 -08:00
Hao Shi c9347601bf codec_mm: add is_reserved_ext_support [1/2]
PD#SWPL-195289
PD#SWPL-195421

Problem:
codec_mm_reserved_ext will removed for  s6 board with 2GB RAM,
the h266 mv buffer needs to support without codec_mm_reserved_ext

Solution:
alloc mv buffer form codec_mm_cma when reserved_ext not exist.

Verify:
BL201-S905X5

Change-Id: I15cd60d8bbc2cd35d2a008b13f2cb8499b9aedc2
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-12-05 22:55:47 -08:00
lele xiang e2c08783cf decoder: CF1 On-demand small block memory allocation and protection. [2/2]
PD#SWPL-191072

Problem:
tvp_pool is too big which affects system efficiency.

Solution:
During secure playback, to alloc mem according to actual requirements

Verify:
T6d

Change-Id: I119a41322e9e1028de73851e3620a50ec8d819a2
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2024-12-05 19:27:31 -08:00
nengwen.chen 6985834e81 dvb_extern: add i2c driver (V1.22) [1/1]
PD#SWPL-188398

Problem:
add i2c driver.

Solution:
add i2c driver.

Verify:
SC2.

Change-Id: I2690fa3cdde8555987d96942860ef5ab4fd4f474
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2024-12-03 01:37:08 -08:00
Wenjie Qiao cb1fc05bbb hdmitx: not use hdmi_tx_ext.c [1/1]
PD#SWPL-186428

Problem:
not use hdmi_tx_ext.c

Solution:
move the api to hdmitx_common.c

Verify:
SC2

Test:
DRM-TX-78

Change-Id: Idbc869bfa0c1ee7dc267fb31666e82aad4242dc9
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-12-02 19:45:10 -08:00
ruofei.zhao 195caaa1f3 hdmitx: refactor hdr api [1/1]
PD#SWPL-104018

Problem:
hdr api needs to be refactored

Solution:
refactor hdr api

Verify:
S905X4

Test:
DRM-TX-78

Change-Id: I06374f10b367536a2fe3e863f6538e045e308362
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-12-01 02:26:57 -08:00
Hao Shi c89a89f74c media_proxy: CB2 correct spelling errors [1/1]
PD#SWPL-188419

Problem:
correct spelling errors

Solution:
correct spelling errors

Verify:
t5m

Change-Id: I839d070752f409136377f01b643ed71b8d8492b9
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-11-28 23:17:30 -08:00
lukang.jia ab04eb7de6 frc: frc sync kernel5.15 to kernel6.12 [1/1]
PD#SWPL-192103

Problem:
frc sync kernel5.15 to kernel6.12

Solution:
frc sync kernel5.15 to kernel6.12

Verify:
T3X

Change-Id: Id500e0b47c170f89074050d633678a554e6a63d7
Signed-off-by: lukang.jia <lukang.jia@amlogic.com>
2024-11-27 18:58:58 -08:00
Jianxiong Pan 48bb91021c aml_media: differentiate config according to tv and ott. [1/1]
PD#SWPL-192258

Problem:
aml_media ko too large, need to reduce the size.

Solution:
differentiate config according to TV and OTT project.

Verify:
local.

Test:
adt4.

Change-Id: I2d45ed0a8021808926954590e0efeeb092089ae4
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-11-25 16:59:42 -08:00
jinbiao 4055fc938b mmc: fix coverity error [1/1]
PD#SWPL-193225

Problem:
Coverity defect cleanup.

Solution:
fix coverity error

Verify:
SC2

Change-Id: I598d755aeb2a95d073cfc38343a6283ff7f44abd
Signed-off-by: jinbiao <jinbiao.ou@amlogic.com>
2024-11-21 20:08:51 -08:00
yuhua.lin 92efe2bce1 video: sync code from kernel5.15 to kernel6.12 [1/1]
PD#SWPL-191966

Problem:
sync code from kernel5.15 to kernel6.12

Solution:
complete it

Verify:
sc2

Change-Id: I2a3a2c21ef239fa78e52063063cda31f117d086a
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-11-20 06:08:11 -08:00
xiang.wu1 d9467056b9 hdmitx: dump sysfs cleanups [1/1]
PD#SWPL-141552

Problem:
dump sysfs cleanups

Solution:
1.Move the common sysfs nodes to the hdmitx_sysfs_common.c file.
2.Different sysfs nodes are distinguished using macros.
3.Some debug nodes have been moved to the hdmitx_debug function.

Verify:
sc2

Test:

Change-Id: I1ebcd7e6956890925c6f32b928168b979a159f44
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-11-20 10:29:24 +08:00
ruofei.zhao 1cafaab93a hdmitx: remove edid parser in plugin handler [1/1]
PD#SWPL-158055

Problem:
remove edid parser in plugin handler

Solution:
remove edid parser to drm

Verify:
SC2
S5

Test:
DRM-TX-78, DRM-TX-79, DRM-TX-80, DRM-TX-81

Change-Id: I44006093c6fff74c23c98a1e89e5d8666a3ecfc4
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-11-19 05:46:21 -08:00
Jiucheng Xu c46ca9adf0 cma: export enable interface for using cma buffer for write file [1/1]
PD#SWPL-185295

Problem:
write file cache couldn't use cma buffer.

Solution:
add module param to control the enable/disable using cma buffer for
write file cache.

Verify:
t3/t5w

Change-Id: Ief6506d24298358560f475eb2f11393989819763
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
2024-11-19 02:08:36 -08:00