Commit Graph

966 Commits

Author SHA1 Message Date
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
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
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
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
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
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
chen.xu 21924f1a88 amlvideo2: modify to vdin1 do crop rather than amlvideo2 [1/1]
PD#SWPL-193604

Problem:
modify to vdin1 do crop rather than amlvideo2

Solution:
support

Verify:
T982

Change-Id: Ie1033ad8318ddb407d593e378b73d81c5afc5edd
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-11-24 22:22:34 -08:00
zhikui.cui 004559c858 NAND: slcnand support update bl2 with new page info [1/1]
PD#SWPL-186183

Problem:
recent soc slcnand switch to new page info

Solution:
1. page_info.c move to /drivers/mtd/common from /drivers/spi/
2. slcnand support new page info

Verify:
BR309-T950D5_SOCKET #48

Change-Id: If1d8ea15e922349cc880ce98a7c6cb04f97e8e41
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-11-22 01:23:32 -08:00
brian.zhu 45cae0f4e6 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>
2024-11-21 22:13:05 -08:00
yao liu 3ea1939849 amdv: optimize check format function [1/1]
PD#SWPL-189410

Problem:
optimize check format function

Solution:
optimize check format function

Verify:
s6

Change-Id: I5291589046c6d9ea073aff8f75d9fa3b55e280f4
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-11-20 18:18:10 -08:00
lizhi.hu 84e2cc8605 DisplayPortTX: initial version [1/1]
PD#SWPL-177221

Problem:
support DisplayPort output

Solution:
support DisplayPort output

Verify:
t7c_an400

Change-Id: I8a591f516119242c550781797e1853ef0acf01cd
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-11-20 18:16:19 -08:00
zhikui.cui 3506a975d2 NAND: adapt to new reserve designs [1/1]
PD#SWPL-186183

Problem:
extern reserved partition maybe overlap inside bbt reserved partition

Solution:
1. parsing reserved partitions from dtb
2. skip overlap bbt blocks when scan other reserved partition

Verify:
BR309-T950D5_SOCKET #48

Change-Id: If2c2f780aa320078ed8a33bd8fadebaffaf39a43
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-11-19 22:26:25 -08:00
nengwen.chen 856293324e atv_demod: add ops callbacks mutex and state callbacks for tvafe (V4.02) [1/2]
PD#SWPL-192795

Problem:
add ops callbacks mutex and state callbacks for tvafe.

Solution:
add ops callbacks mutex.
add aml_fe_get_atvdemod_state.
AMLATVDEMOD_VER "V4.02".

Verify:
T5M/TXHD2.

Change-Id: I04f252afc965b3d023bf0c1f08bf242736ba0827
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2024-11-19 02:55:43 -08:00
Evoke Zhang 3148aa9ae0 lcd: optimize config load flow [2/2]
PD#SWPL-192343

Problem:
lcd get config need separate as a individual file

Solution:
lcd get config separate as a individual file

Verify:
ay301, br301

Change-Id: Ib4106ba378e6532125d68f8ef4363ba70bf483b7
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-11-19 02:08:44 -08:00
Tao Zeng 05e8ab0105 amfc: optimization of driver [1/1]
PD#SWPL-186530

Problem:
AMFC driver need optimization

Solution:
1, update content of statistics sysfs
2, try to reduce copy in erofs system
3, reduce cache flush size of zram
4, improve cache maintain efficience, 7% ~ 10% increase for speed;

Verify:
s7d

Change-Id: I4f87120ad1358a8b1756a01654e17908dd61dc22
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-11-19 02:07:50 -08:00
Jianxiong Pan 7c8ae1189f memory: add vmap stack cache page order config [1/1]
PD#SWPL-179931

Problem:
add vmap stack page order to facilitate project modification.

Solution:
add vmap stack page order config.

Verify:
Locally

Change-Id: I33d8bcc757c3956a82865e631d7af94a59467af0
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-11-18 20:02:42 -08:00
Yahui Han 7cdf4bf5ab dtv_demod: CF2 add dummy frontend. [1/1]
PD#SWPL-158421

Problem:
Needs dummy fe.

Solution:
Support.

Verify:
AP222-S905y4

Change-Id: Ib1880ef21f60d568ea1028486f48dace315a682c
Signed-off-by: Yahui Han <yahui.han@amlogic.com>
2024-11-18 18:55:26 -08:00
donghui.wang 7470d7fc89 ldim: optimize boost feature [1/1]
PD#SWPL-183366

Problem:
optimize local iset

Solution:
optimize local iset

Verify:
t5m

Change-Id: Ia75285458ecdc27c606d1cabee0bff34d77d66f9
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-11-13 02:02:25 -08:00
jie.dai 30fcadc624 lcd: power sequence optimize [2/2]
PD#SWPL-192045

Problem:
lcd and bl power step need management together

Solution:
add bl power step in lcd power step

Verify:
T5M/T6D

Change-Id: I8f21381a6c7474238b08178d0379201eaa6b9df4
Signed-off-by: jie.dai <jie.dai@amlogic.com>
2024-11-12 18:09:16 -08:00
li.dong 1f9a0a8584 wifi: optimize 8822es wifi max sdio clk set on 5.15 [1/1]
PD#SWPL-192342

Problem:
After factory reset or burning up,8822es has sdio data error
and sdio I/O error.It also has kernel warning
with I/O operation.

Solution:
add 8822es(0xa822) sdio clk to 167M

Verify:
SDMC

Change-Id: Ia4a08297d28c6b380ff3380a58a95b2b07656b48
Signed-off-by: li.dong <li.dong@amlogic.com>
2024-11-11 23:54:56 -08:00
jie.dai e6ccb50e57 lcd: lcd bits optimize [2/2]
PD#SWPL-192044

Problem:
need lcd bits(per pixel) to support more format

Solution:
use lcd bits per pixel

Verify:
T5M

Change-Id: I04eaea425d7235b33a2a4ac52a051e8c6b485701
Signed-off-by: jie.dai <jie.dai@amlogic.com>
2024-11-11 23:54:27 -08:00
lele xiang 15521e2d96 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-11-10 20:10:38 -08:00
jinbing.zhu 9552f28cbd amvecm: move ve_source_input_e definitions into uapi. [1/1]
PD#SWPL-192175

Problem:
move ve_source_input_e definitions into uapi

Solution:
move ve_source_input_e definitions into uapi

Verify:
t5w

Change-Id: I2ade9705b185661c207a7a6a76b590b32a61f437
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-11-08 00:28:07 -08:00
zhewen.luo a77f12abaf resman: support reporting error info. [1/1]
PD#SWPL-149860

Problem:
1.ErrorMonit requires additional debug
levels to be set to the driver.
2.ErrorMonit needs to receive the error
information from the driver in real time.

Solution:
resman driver needs to add nodes so that
ErrorMonit can get the error information
in real time.

Verify:
S905Y4

Change-Id: I8feaacc2e03b201a568b8abbdf77ba4c5e2e0859
Signed-off-by: zhewen.luo <zhewen.luo@amlogic.com>
2024-11-07 00:40:32 -08:00
chenyang.liu cdc197db10 lcd: fix coverity defects from linux-5.15 [1/1]
PD#SWPL-190841

Problem:
lcd driver in linux-5.15 has coverity defects.

Solution:
fix defects

Verify:
none

Change-Id: Iabb3077719f4963c49d1cd2dfce48af225259856
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2024-11-06 17:52:25 -08:00
Pengcheng Chen 8c5c49a91f vpp: update vd crop info for amdv [1/1]
PD#SWPL-191318

Problem:
update vd crop info for amdv

Solution:
update vd crop info for amdv

Verify:
t5m

Change-Id: Ieaf380c85d0fe3e735f43d5878d6967460b3509c
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-11-04 06:02:19 -07:00
Evoke Zhang 76f7aaccf1 lcd: optimize driver log [2/2]
PD#SWPL-185137

Problem:
need optimize driver log

Solution:
optimize driver log

Verify:
bc302

Change-Id: I472ae14740d8ba37821aa04665591f27e79447c2
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-11-04 05:41:37 -07:00
huijie.huang ac4bb9500f lcd: tcon: support dccd dlg [2/2]
PD#SWPL-166562

Problem:
need to support dccd dlg

Solution:
support dccd dlg parsing flow

Verify:
t5m ay301

Change-Id: Id02e7cca5ae2c48ad4396bc2f6fe4cf6d10b29f9
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2024-10-30 23:49:15 -07:00
gan.zhang a47ac8298b decoder: CB2 Pass the under input information to the upper layer. [1/3]
PD#SWPL-179486

Problem:
In stream mode, when the decoder cannot decode the data, it
needs to pass the under input information to the upper layer.

Solution:
Pass the under input information to the upper layer.

Verify:
Ohm

Change-Id: I55530bcd0085c87dfa752ca831ee76b070c1bce4
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
2024-10-30 04:06:46 -07:00
Sunny Luo 9718981dd0 spi: optimize spisg driver [1/1]
PD#SWPL-189005

Problem:
To use scatter/gather DMA, protocol driver has to use a nonstandard
struct spicc_transfer;
Every transferring would alloc/free lots of coherent memory, it maybe
cause unexpected issues.

Solution:
Fix nonstandard ccxfer issue;
dirspi IF apply the uniform function to achieve timing configurable;
Replace coherent memory with normal memory mapped;
Add transferring cs_change support;
Fix issue of parent clk not fixed though assigned in dts.

Verify:
s7 bh201, t3x bc302

Change-Id: I0680e11f411404ab383cd8af7c8b12ffe0a2b633
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2024-10-29 22:57:21 -07:00
Hao Shi ffab5edb92 codec_mm: dump_mem_infos in atomic [1/1]
PD#SWPL-188627

Problem:
dump_mem_infos in atomic context.

Solution:
remove dump_mem_infos from
codec_mm_get_free_size.

Verify:
sc2

Change-Id: I9597da2b7a20afba1ab0d42247e3a8fc1463e663
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-10-29 04:45:37 -07:00
qinghui.jiang 6bf3bdaede amvecm: lc mapping flash for t3x [1/1]
PD#SWPL-159758

Problem:
lc mapping reg control flow need to adjust for t3x.

Solution:
modify code flow.

Verify:
t3x_revb

Change-Id: If30d3ee3233baada337ba1ac7414fa3590c179d2
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2024-10-29 00:05:33 -07:00
Evoke Zhang f81cb7a66b lcd: optimize mute/unmute flow [1/1]
PD#SWPL-187281

Problem:
unmute_add is invalid for ufr_switch_type 1 and 2.

Solution:
optimize mute/unmute flow, support unmute_add function for common flow

Verify:
bc302

Change-Id: I35f496c70339e786a55cd20f02ee30dd1f02da17
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-10-28 23:53:33 -07:00
Jian Cao 0abdd339a9 ge2d: fix the problem of use-after-free error [1/1]
PD#SWPL-184743

Problem:
BUG: KASAN: use-after-free in ge2d_monitor_thread+0xa00/0xec8

Solution:
1. to avoid releasing the wrong address due to no assignment
use kzalloc to replace kmalloc
2. modify the repeated application and release of clut8 table memory
3. modify the condition to avoid be released while processing context

Verify:
t7

Change-Id: Id2dbc8ee370651d77c45b12e442f3ca5b59b622d
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-10-28 04:26:29 -07:00
Xiangyu Cai dcabfae28c vrr: change delay when set to dot by dot [1/1]
PD#SWPL-187126

Problem:
blurred screen when set doy by dot mode

Solution:
change delay when set doy by dot mode

Verify:
t3x

Change-Id: Idb92004ccaf19de819e789b7f9b2ad24a0ded0e9
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-10-25 00:38:41 -07:00
Cheng Wang 07bb05fdf5 frc: fix frc abs abnormal [1/1]
PD#SWPL-190039

Problem:
exception in absolute value operations on unsigned int

Solution:
convert a unsigned int to a signed int for processing

Verify:
T5M

Change-Id: I546dad80fe2c93d2889d248dec27f26ba4d71aa5
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2024-10-25 00:38:20 -07:00
Doosan Baek aee0ed53b6 kt: add key flag command [1/1]
PD#SWPL-189327

Problem:
need key flag info

Solution:
add key flag command

Verify:
s6

Change-Id: If77ae46dfba7c696c1e6093b977d694f7fb2cd97
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2024-10-23 01:12:39 -07:00
zhan.wang 1ec14403f4 amvecm: add debug cmd for tool [1/1]
PD#SWPL-183757

Problem:
add debug tool for pq tool

Solution:
add debug cmd

Verify:
verify on t5m

Change-Id: Ice99ea1d0e1db9a9569bf50a030930f9a1da2e4b
Signed-off-by: zhan.wang <zhan.wang@amlogic.com>
2024-10-22 00:42:12 -07:00
Hangyu Li e4648826f1 tee: add secure table API [1/1]
PD#SWPL-176853

Problem:
provide API for t6d secure table function

Solution:
add API for t6d secure table

Verify:
t6d

Change-Id: If9aaf0dee3c970a5de73428b29c3f7e24f71a0b3
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
2024-10-22 00:41:07 -07:00
yuhua.lin 4e9e31352e ge2d: calculate ge2d cost time [1/1]
PD#SWPL-189576

Problem:
add ge2d calculate time cost

Solution:
complete it

Verify:
t7c

Change-Id: I97861b2ee36cee3c7f525ac926705a049b521ac3
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-10-22 00:40:55 -07:00
qiyao.zhou 51db133e04 vicp: vicp output error when standard mode. [1/1]
PD#SWPL-187629

Problem:
vicp output error when crop info is invalid(0 0 -1 -1).

Solution:
Add support flow for this case.

Verify:
t3x

Change-Id: I7e17ee6eedf4930e24edbac7f9326c9854621195
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-10-18 01:43:08 -07:00