Commit Graph

1232 Commits

Author SHA1 Message Date
mingyang.he a8657529c1 drm: combine libdrm meson_drm.h and kernel meson_drm.h [1/1]
PD#SWPL-199967

Problem:
include kernel meson_drm.h in libdrm

Solution:
combine libdrm meson_drm.h and kernel meson_drm.h

Verify:
sc2

Test:
DRM-OSD-44

Change-Id: Iec6b2ea1926a0696bd4f2b43f3237a23cdcfd21e
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
(cherry picked from commit c60eea1f4179796ba89519a1daf45e189589b7d7)
2025-03-14 00:26:54 -08:00
chen.xu 62d7ae6b5e amlvideo2: screencap support random buffer num [1/1]
PD#SWPL-201711

Problem:
screencap need support random buffer num.

Solution:
support.

Verify:
T982

Change-Id: Icfe2d5d0e65837c164a113aefb3e0b249c5279e5
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2025-03-13 01:03:04 -08:00
qinghui.jiang 5e93b93e46 amvecm: add ioctl for params [1/1]
PD#SWPL-197567

Problem:
Add IOC interface for parameter access.

Solution:
Add IOC interface for parameter access.

Verify:
T950D5

Change-Id: I8ff2f6b409c65703a4aec765555853fea088ff2a
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2025-03-06 00:24:21 -08:00
can.zhang 64ae87eeaa amdv: add IOC Interface to replace direct module parameter access [1/1]
PD#SWPL-197568

Problem:
need add IOC Interface

Solution:
add code

Verify:
sc2

Change-Id: Iff33dee840ba66e259170b0947b00e355d1b18fe
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2025-03-06 00:24:12 -08:00
mingyang.he 8c2a5de15e drm: set connector force by ioctl instead of write node [1/1]
PD#SWPL-197569

Problem:
write/read nodes in libdrm is no longer allowed

Solution:
use ioctl instead of the connector's status node function

Verify:
sc2

Test:
DRM-OSD-44

Change-Id: I6a2433854f69e5be993be8d7455532fe5c178b45
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2025-03-06 00:24:02 -08:00
hai.cao 377cbf1ec6 vpp: add ioctl for some module parameters [1/1]
PD#SWPL-198205

Problem:
add ioctl for some module parameters

Solution:
add ioctl for some module parameters

Verify:
all platforms

Change-Id: I0b8203f3ff32f05efa57e59ce37ceb261c6f9f8a
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2025-03-06 00:23:52 -08:00
zhan.wang 028ca86a00 amvecm: pi & safa reg control [1/1]
PD#SWPL-201224

Problem:
Both pq and vpp control pi_en

Solution:
pq don't control pi_en reg

Verify:
verify on s7d

Change-Id: Ib33e435742c8bf909accf94e7728a7ef6294d891
Signed-off-by: zhan.wang <zhan.wang@amlogic.com>
2025-02-25 02:39:24 -08:00
Zelong Dong f82bcc98aa ir: update IOCTL cmds [1/1]
PD#SWPL-195993

Problem:
move ir header file to include/uapi/ & update IOCTL cmds

Solution:
move ir header file to include/uapi/ & update IOCTL cmds

Verify:
sc2

Change-Id: Ib98ccb26746a67d6bc040666101193bd104eee6a
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2025-02-20 17:17:24 +08:00
yajing.li af6615f3c2 uvm: add interface for info sync [1/1]
PD#SWPL-197008

Problem:
metadata miss after do rotation with ge2d

Solution:
add interface for info sync

Verify:
Yocto 5.15

Change-Id: I935e4930fea97455d77210e886be93d88e01ffbf
Signed-off-by: yajing.li <yajing.li@amlogic.com>
2025-02-20 17:16:38 +08:00
rong.wang dfa9bc84fe deinterlace: modify motion param for link mode [1/1]
PD#SWPL-187819

Problem:
PQ problem happened when link mode

Solution:
modify motion param for link mode

Verify:
t6d

Change-Id: I654938a6cc26b520654ed81f9185515371c957e4
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2025-01-01 17:26:28 -08:00
zijie.lin 19fd2159d4 lcd: add preboot mode [1/1]
PD#SWPL-186970

Problem:
add new feature: preboot mode
lcd on, bl off in uboot and kernel

Solution:
add init level ctrl

Verify:
t5m

Change-Id: I5fba2dc23fd2090afb5b699e471e2448a0b80124
Signed-off-by: zijie.lin <zijie.lin@amlogic.com>
2025-01-01 17:24:11 -08:00
Gerrit Code Review 6fc2019e00 Merge "rdma: optimize rdma write time consuming [1/1]" into amlogic-5.15-dev 2024-12-31 02:57:19 -08:00
Tao Zeng b44e41fa7c amfc: coverity clean for amfc driver [1/1]
PD#SWPL-197988

Problem:
AMFC have coverity issues

Solution:
fix following issues:
338199	Uninitialized
338198	Unused value
338197	Unused value
338196	Uninitialized scalar variable
369089	Thread deadlock	Medium

Verify:
S7D

Change-Id: I9a8adb6487d472ae2678d03bcc70064ec99fe399
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-12-31 02:56:10 -08:00
hai.cao fea1b1eb88 rdma: optimize rdma write time consuming [1/1]
PD#SWPL-176955

Problem:
rdma write reg time consuming too long

Solution:
write reg by different table to reduce time consuming

Verify:
all chip

Change-Id: Iba5254de3039958afcca33c0813ed6d479e8414c
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-12-31 02:50:32 -08:00
lizhi.hu 2617e08f33 DisplayPortTX: isolate driver and interface IP ctrl [1/1]
PD#SWPL-197920

Problem:
be ready for next DPTX chip
be ready for dual-port(master and slave) interface ctrl

Solution:
isolate driver and interface IP ctrl

Verify:
t7_an400

Change-Id: I4dfe179326098dcbd8c4bfa151be63904dd2001c
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-12-29 22:28:28 -08:00
Evoke Zhang d95cd37b49 lcd: update ini parser version [2/2]
PD#SWPL-190740

Problem:
need update ini parser version

Solution:
update ini parser version

Verify:
ay301

Change-Id: I009bdb41e0e169904199b1d75be0f6aba7a296a7
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-12-29 22:28:19 -08:00
Tao Zeng c1cf3a672e amfc: do not run ko on soc which not support amfc [1/1]
PD#SWPL-197993

Problem:
boot crash due to amfc driver run on sm1

Solution:
check if soc support amfc before run

Verify:
local

Change-Id: Ia10bd62ebbe65fecf10a7488ec38db601be5dd34
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-12-27 03:13:10 -08:00
Junyi Zhao 13fca4e045 pwm: open double channel for tee [1/1]
PD#SWPL-196869

Problem:
when pwm's clk be locked by tee, all pwm should follow tee.
so, should support wifi 32K on pwm tee module.
in case of clk of wifi's pwm channel being locked.

Solution:
add  double channel to match wifi 32K legacy used.

Verify:
s6

Change-Id: I09a0ccbdf191ed31f86a6e3fc006672368eedd15
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-12-26 19:36:30 -08:00
donghui.wang 49fe639a1e ldim: multiple spi support [1/2]
PD#SWPL-193315

Problem:
need multiple spi support

Solution:
add multiple spi

Verify:
t3x

Change-Id: Ia5323f0260872343859ce9ba289c61e7c7705707
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-12-25 03:01:58 -08:00
Yongjie Zhu d460db6d07 dmaheap: add t6d cma secure [1/1]
PD#SWPL-183499

Problem:
t6d new secure gpu

Solution:
heap-secure change to cma memory

Verify:
t6d

Test:
t6d gpu secure test

Change-Id: I7b227e3dde35be4eb4d112828a8c42f8a05e8fff
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2024-12-25 03:01:22 -08:00
lukang.jia 1db0f137b3 vrr: add vrr support ioc [1/1]
PD#SWPL-196427

Problem:
add vrr support ioc

Solution:
add vrr support ioc

Verify:
t6d

Change-Id: I4fb2b0683d33e5c8b456675da92ee406955003a9
Signed-off-by: lukang.jia <lukang.jia@amlogic.com>
2024-12-24 00:41:14 -08:00
ruofei.zhao 43236a595c hdmitx: sync hdmitx_edid_parse.c from kernel 6.12 to kernel 5.15 [2/2]
PD#SWPL-197049

Problem:
The hdmitx_edid_parse.c of kernel 5.15 and kernel 6.12 need to be the same

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

Verify:
S905Y5-BH201

Test:
DRM-TX-78

Change-Id: I27a6f624df64450111f9a764659985305d13d425
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-12-23 18:11:16 -08:00
qiankun.wang 20e1de1b2c IOTM: support iotm_v2 function on t6w [1/2]
PD#SWPL-188937

Problem:
support iotm function on t6w

Solution:
support iotm funciotn on t6w

Verify:
t6w,t6d

Change-Id: I89c835ea502bfe13612f270e095307cc0bdb898b
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-12-19 23:16:49 -08:00
qiyao.zhou 5caba87741 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>
2024-12-19 20:54:53 -08:00
haitao.liu e99b7c2b96 vdin: optimize the cropping function [1/1]
PD#SWPL-194265

Problem:
After enabling cropping on t6d/t3x,the video
is abnormal.

Solution:
optimize the configuration and flow of cropping function

Verify:
t3x/t6d/t5m

Change-Id: I47007d3177600a4ea7c6119c9aefbcc2cc467885
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-12-17 18:38:46 -08:00
Jian Cao 170cdf7d3d 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>
2024-12-12 06:12:02 -08:00
Sunny Luo b54429856b spi: optimize spicc timing [1/1]
PD#SWPL-195518

Problem:
SPI timing should be apply on each spi device independently.

Solution:
Apply SPI timing from the controller_data of spi device.

Verify:
T5M

Change-Id: If7b814e75bff88ffac75efdd6f780f0e80b791de
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2024-12-11 22:43:21 -08:00
lizhi.hu c1db354d15 lcd: MIPI-DSI non-burst mode [1/1]
PD#SWPL-194229

Problem:
MIPI-DSI non-burst mode para error

Solution:
fix non-burst mode config

Verify:
s6
t7

Change-Id: I086e631dcb7f2b9077e5c028de66ee9722f3bdd4
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-12-11 21:51:33 -08:00
Hao Shi be1c18d9d1 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-11 00:51:49 -08:00
Hanjie Lin 27566bfcd3 meson_atrace: add memory alloc and meminfo event [1/1]
PD#SWPL-184150

Problem:
add memory related trace info

Solution:
1, __alloc_page and __alloc_pages_slowpath: use trace event and vendor hook
2, cma_alloc: use vendor hook in aml_cma.ko
3, handle_pte_fault: use kretprobe
4, trace meminfo periodly

Verify:
sc2_ah212

Change-Id: Icf5695f421832c00c5cad7026663f66b2dcc58a5
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2024-12-09 22:47:26 -08:00
Jian Hu 7c81baeff3 mmc: t6d: fix compiling error when CONFIG_MMC is disabled [1/1]
PD#SWPL-191471

Problem:
there is compiling error when CONFIG_MMC is disabled

Solution:
add empty function for aml_sd.h

Verify:
t6d

Test:
Boot

Change-Id: I30f1a37558a9e8758caf15aa03420665721e5b97
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2024-12-09 18:32:22 -08:00
yiting.deng b34a34a69e clk: s6: update pwm_clk to secure [3/3]
PD#SWPL-191710

Problem:
secure permission needs to be set for the pwm_clk register
related to voltage regulation. Relevant clk configurations
need to be stored in bl31. kernel configurations need to
be deleted.

Solution:
fix pwm clk related to voltage regulation to secure

Verify:
s6_bl201

Change-Id: I5d7eb80055a120cfa2342c48dbfc1b7c8d87d1c8
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-12-09 18:31:55 -08:00
Hao Shi f2f612a58d 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-08 22:56:38 -08:00
Pengcheng Chen e62a49dffe 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>
2024-12-08 22:47:13 -08:00
dian.shao 47dd1f20a9 usb: m31 phy&crgu3drd role switch feature [1/1]
PD#SWPL-194901

Problem:
m31 phy&crgu3drd role switch feature.

Solution:
m31 phy driver updates.

Verify:
s5 t5m t3x.

Change-Id: Ic395e4fcc01549f9cda51acb321e843fbd578607
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-12-06 02:36:44 -08:00
ruofei.zhao 67499d11a4 hdmitx: update hdmitx version to 20241206 [1/1]
PD#SWPL-193335

Problem:
update hdmitx version for release

Solution:
update hdmitx version to 20241206

Verify:
BL201-S905X5

Test:
DRM-TX-40

Change-Id: I917b1e658f4df31980e0ddf78507d1eeac37bd03
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-12-05 04:12:44 -08:00
bangzheng.liu 60339f2ef4 SoC s6: kernel support DSP suspend resume with ffv [1/2]
PD#SWPL-184689

Problem:
DSP needs to support low power mode.

Solution:
Add dts config for DSP suspend.
Enable mailbox path for DSP to ARM.

Verify:
S6

Change-Id: Ib1198d260e9658a486d8e75817af8ebbb751d164
Signed-off-by: bangzheng.liu <bangzheng.liu@amlogic.com>
2024-12-05 11:01:39 +08:00
lele xiang c3bf0bad99 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-04 04:11:20 -08:00
jie.dai de08957f7b lcd: lcd coverity fix [1/2]
PD#SWPL-195021

Problem:
coverity exist in lcd config

Solution:
fix coverity

Verify:
T5M

Change-Id: Iabbacfe909cd720ad78b70649237a3af601f97af
Signed-off-by: jie.dai <jie.dai@amlogic.com>
2024-12-03 22:03:49 -08:00
nengwen.chen 209d67ee5b dvb_extern: add i2c driver (V1.26) [1/1]
PD#SWPL-188398

Problem:
add i2c driver.

Solution:
add i2c driver.
exmple:
&i2c0 {
	status = "okay";
	clock-frequency = <300000>;
	pinctrl-names="default";
	pinctrl-0=<&i2c0_pins1>;

	aml_dvb_extern_i2c0: aml_dvb_extern_i2c@7B {
		compatible = "aml_dvb_extern_i2c";
		dev_name = "tuner0";
		reg = <0x7B>;
		status = "okay";
	};

	aml_dvb_extern_i2c1: aml_dvb_extern_i2c@7A {
		compatible = "aml_dvb_extern_i2c";
		dev_name = "tuner1";
		reg = <0x7A>;
		status = "okay";
	};
};

Verify:
SC2.

Change-Id: I2690fa3cdde8555987d96942860ef5ab4fd4f474
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2024-12-03 18:20:17 -08:00
zhan.wang 1f6636918c amvecm: PQ tool hdr curve [1/1]
PD#SWPL-158122

Problem:
PQ tool hdr curv

Solution:
add debug cmd for tool r/w curve

Verify:
verify on t5m

Change-Id: I96299f4490f740f4713c344a6ee6912ce44d3ff2
Signed-off-by: zhan.wang <zhan.wang@amlogic.com>
2024-12-02 06:00:17 -08:00
chenyang.liu 968dfb6730 lcd: save boot_ctrl into regs of venc [2/2]
PD#SWPL-193338

Problem:
boot_ctrl in command line is not safe

Solution:
save boot_ctrl into regs of venc

Verify:
t6d

Change-Id: Id170c88f6f775ecee5531690c2e5d16098480f42
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2024-11-28 22:25:33 -08:00
lei.chen 056702779b BT: suspend host wake bt [1/1]
PD#SWPL-194042

Problem:
1.not support host wake bt

Solution:
1.support host wake bt;

Verify:
ohm.

Change-Id: Id70d84239b035b1565991cff726c125a17b59028
Signed-off-by: lei.chen <lei.chen@amlogic.com>
2024-11-28 22:24:54 -08:00
jie.dai 8abfc01060 lcd: panel parameter json parse [2/2]
PD#SWPL-187680

Problem:
need add json to parse panel parameter

Solution:
1. add json parse
2. recombine panel parameter in json file

Verify:
T5M/T3X/T6D

Change-Id: Ic9a45e258a36d16102c6f9e9883fff6c03d163f6
Signed-off-by: jie.dai <jie.dai@amlogic.com>
2024-11-28 22:23:33 -08:00
Long fed20af8d8 mmc: Optimizing the Read and Write Performance. [1/1]
PD#SWPL-178215

Problem:
An I/O operation with a large amount of read and write data is divided
into multiple I/OS with a small amount of data, resulting in degraded
I/O performance

Solution:
config req-size as 512KB

Verify:
s7,s7d,T5M

Change-Id: I876c5d4f7e7677a94c40eff37b057678ebd21a75
Signed-off-by: Long <long.yu@amlogic.com>
2024-11-28 01:38:55 -08:00
Liming Xue 890050e175 thermal: add ddr control driver [1/1]
PD#SWPL-192734

Problem:
ddr kernel refresh setting s6/T3x

Solution:
ddr kernel refresh setting s6/T3x

Verify:
t3x/s6

Change-Id: I54bef4c15c54d9f2b18c9e2b06905bd1e1f541f7
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-11-27 17:57:33 -08:00
Evoke Zhang e25e64bdd7 lcd: remove unused cma_pool [2/2]
PD#SWPL-194226

Problem:
lcd cma_pool is unused now

Solution:
remove unused lcd cma_pool

Verify:
ay301

Change-Id: I9476601867df0c4a999545c2c8a5b87fcdc533a3
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-11-27 04:01:18 -08:00
congyang.huang 4bbab937eb drm: add osd matrix block [1/1]
PD#SWPL-8538

Problem:
need add osd matrix block

Solution:
add osd matrix block

Verify:
t3x

Test:
DRM-OSD-83

Change-Id: I58301c316de4d1df4346ee2e8162685d9a9f5184
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-11-26 23:00:20 -08:00
Huiwen Yu ef90a4d9a7 atv_demod: Revert V4.02 commit (V4.03) [1/2]
PD#SWPL-193956

Problem:
Revert "add ops callbacks mutex and state callbacks for tvafe (V4.02)".

Solution:
Revert "add ops callbacks mutex and state callbacks for tvafe (V4.02)"
AMLATVDEMOD_VER "V4.03".

Verify:
T5M/TXHD2.

This reverts commit 856293324e.

Change-Id: I3d90b96bfce0d1033c3518ab86997b9e28450d17
Signed-off-by: huiwen.yu <huiwen.yu@amlogic.com>
2024-11-25 22:27:24 -08:00
jie.dai 04e8c0ad1c lcd: mini-lvds phy clk_phase match [2/2]
PD#SWPL-193958

Problem:
mini-lvds phy clk_phase match

Solution:
update phy clk_phase to interface while phy match

Verify:
t6d

Change-Id: Iecb5f7497af0e1cb8ca3aad23fa1682c481553ca
Signed-off-by: jie.dai <jie.dai@amlogic.com>
2024-11-25 18:53:57 -08:00