Commit Graph

948 Commits

Author SHA1 Message Date
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
Hao Shi a63d66ebb9 codec_mm: circular queue [1/1]
PD#SWPL-185164

Problem:
user scatter alloc blocked by
cache lock.

Solution:
optimize cache page list to
circular queue.

Verify:
t3x

Change-Id: Ibc01e5eb829ee779a43debd56a081a7debbcea03
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-10-17 06:56:32 -07:00
Evoke Zhang 18efa2d94b lcd: update multi lcd support for phy [2/2]
PD#SWPL-187631

Problem:
lcd1 phy setting incorrect

Solution:
update multi lcd support for phy

Verify:
bc302 multi_display

Change-Id: I26803de76bab03ba2a158bcf758016343ad3b6f5
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-10-16 22:59:47 -07:00
Evoke Zhang 9b02cc1fda lcd: update dfr config for cus_ctrl [2/2]
PD#SWPL-186202

Problem:
need update dfr config for cus_ctrl

Solution:
update dfr config for cus_ctrl

Verify:
bc302

Change-Id: I6c4d0d73d00c210581dec154e723ce2eb5221e1c
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-10-16 22:59:34 -07:00
zhou.han d34b5b1fa9 hdmitx: add hdr_cap_rx and dv_cap_rx property [1/1]
PD#SWPL-185671

Problem:
Try to limit the external module directly r/w  the driver node.

Solution:
Add hdr_cap_rx and dv_cap_rx property

Verify:
ohm

Test:
DRM-TX-20

Change-Id: I236157d968f0ada10cd91156c1dd24671443f84c
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-10-16 22:59:12 -07:00
Pengcheng Chen 9e9fd34673 vpp: set videoqueue_pcrscr_update in vppx [1/1]
PD#SWPL-185106

Problem:
set videoqueue_pcrscr_update in vppx

Solution:
set videoqueue_pcrscr_update in vppx

Verify:
t7c

Change-Id: I026508e80a06550ce934b65d8a48d9b25d996c6a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-10-16 21:49:55 -07:00
donghui.wang b5c96baac8 ldim: add boost feature [1/1]
PD#SWPL-183366

Problem:
add boost feature

Solution:
add boost feature

Verify:
t5m

Change-Id: I9a4eb869031ab36c756a777fa08d0bf068a9ec56
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-10-15 18:57:20 -07:00
chenyang.liu 1a22d87d56 lcd: close tcon_pll when early suspend [1/1]
PD#SWPL-184971

Problem:
High power consumption when early suspend

Solution:
1.change clk source to fclk_div4
2.change resolution to 720*480p50fps
3.close tcon_pll

Verify:
t6d

Change-Id: I992e98c19416a7318d7bf061a6dfc31838c2cd5a
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2024-10-15 18:56:38 -07:00
jie.dai 0c1897d715 lcd: timing & phy management [2/2]
PD#SWPL-187677

Problem:
need add timing and phy management driver

Solution:
add timing and phy management driver

Verify:
T5M/T3X/T6D

Change-Id: I02e995d15eb0c9658b35c11130fb5a9948624ab8
Signed-off-by: jie.dai <jie.dai@amlogic.com>
2024-10-15 18:56:32 -07:00
Feng Chen 15f5c31110 spicc: driver optimization [1/1]
PD#TV-134026

Problem:
1.compatible with controller chip select and GPIO chip select
2.support configurable cs-clk、clk-cs delay time for ldim user

Solution:
support it.

Verify:
T5M

Change-Id: I3e7c73b7748d987e19def5e823c4d91550eff6e8
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2024-10-14 23:05:17 -07:00
Nanxin Qin f204b76888 media: CF1 Adds DHP(The Data Handler Proxy) device major ID. [2/5]
PD#SWPL-188016

Problem:
Adds DHP device major DI.

Solution:
Add a new device ID for generic media data processing.

Verify:
ohm

Change-Id: I4dfd879c35201f0812914e4f702d8fa44bcd5330
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2024-10-14 18:27:33 -07:00
jinbing.zhu 931b29588f amvecm: add slt for t6d [1/1]
PD#OPS-8743

Problem:
add slt for t6d

Solution:
add slt for t6d

Verify:
t6d

Change-Id: I8cfcaef075774818fa865e93e7bf897d6acc414e
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-10-14 05:04:50 -07:00
xiang.wu1 34e6388e01 hdmitx : Optimize node output size [2/2]
PD#SWPL-185799

Problem:
When the character length of the content exceeds PAGE_SIZE,
memory leaks may occur.

Solution:
Limit and check output size

Verify:
s7d/sc2

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

Change-Id: I538183ca41520bf5119062508f7d47b4d33b0eb6
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-10-09 03:50:24 -07:00
donghui.wang b5531bdf87 ldim: optimize spi interface [1/1]
PD#SWPL-183850

Problem:
1,low probability crash when dirspi_dma_trig called in isr
2,async need use coherent buf
3,low probability send unexpected data when start dma trig

Solution:
1,spicc add controller capability
2,async use coherent buf
3,rm dq2/dq3 for t3x ref board
4,optimize dma trig state management
5,alloc descriptor in controller probe but not in dirspi_dma_trig
6,fix clk div 0 error caused by CFG_BUS clearing by dirspi_dma_trig
7, optimize controller isr
8, add spin lock for smp

Verify:
t3x/t5m

Change-Id: Ic1d5c338ebc65dfa8b33add14cdbf0aff1cc0b46
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-10-08 19:52:35 -07:00
Hao Shi 58fc84e99e codec_mm: support reserved bak pool [2/2]
PD#SWPL-177308

Problem:
H.266 support 34bit

Solution:
add a reserved pool to alloc mv buffer

Verify:
s6_s905x5_bl201

Change-Id: Iff86b122bed9eef0c7dd8858aef7a452f02bd015
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-10-08 04:18:27 -07:00
Zelong Dong bc6e434c55 mailbox: support device id & command for IR [1/3]
PD#SWPL-182441

Problem:
support device id & command for IR

Solution:
support device id & command for IR

Verify:
t6d

Change-Id: I42f6a0117cf8ce3891c9a97885ad3216d54a0f29
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-09-30 21:03:16 -07:00
Doosan Baek 29fe9c3b05 kl/kt: add mid extra function [1/1]
PD#SWPL-187016

Problem:
need mid_extra
need tdes kt capability
need m2m_any kl capability

Solution:
add mid extra mode
add tdes kt capability
add m2m_any kl capability

Verify:
s6

Change-Id: I1f49890b61bf70110596c036c970d895388317c1
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2024-09-29 23:54:54 -07:00
Xiangyu Cai 77d26a5e1a vrr: update delay line when video axis [1/1]
PD#SWPL-182514

Problem:
update delay line when video axis

Solution:
update delay line when video axis

Verify:
t3x

Change-Id: I098e70eeae1bcb1d0152d0737df8ea4ff575113a
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-09-29 19:01:23 -07:00
lizhi.hu 0c8184bce5 lcd: fix lcd phy lock when multidisplay [1/1]
PD#SWPL-187055

Problem:
lcd phy lane_lock_total was cleared when second lcd probe

Solution:
bypass lcd lane_lock_total reset

Verify:
t3x_multidisplay

Change-Id: I7b79b6a99b18537445f022caee5a88871857809c
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-09-29 05:06:56 -07:00