Commit Graph

1165 Commits

Author SHA1 Message Date
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
zhan.wang b05eff5711 amvecm: add iotcl to get chip cls [1/1]
PD#SWPL-191789

Problem:
add iotcl to get chip cls

Solution:
add iotcl to get chip cls

Verify:
verify on t5m

Change-Id: I2f578e0b0296da5c9a826963b9524572368164b9
Signed-off-by: zhan.wang <zhan.wang@amlogic.com>
2024-11-06 17:39:38 -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 fc4159b16e vrr: add instead vlock when afr change display mode [1/1]
PD#SWPL-187048

Problem:
blurred screen

Solution:
change display mode when vrr instead vlock

Verify:
t3x

Change-Id: I625715f303b9ea7045934fda1ae24c90f8a187fd
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-10-28 04:26:19 -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
yiting.deng f702df39a6 clk: g12a: optimize clk.ko insmod time [1/1]
PD#SWPL-188271

Problem:
g12a clk has two ko, insmod ko consume CPU time, and both ko
are insmod when actually used. In order to optimize startup
time, the two ko are merge into one.

Solution:
fixed one ko to insmod

Verify:
g12a_u212, g12b_w400, sm1_ac215

Change-Id: I97cf96e6e00e502225ef8521b8c51b9b0253a360
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-10-15 18:53:08 -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 b79dc57e92 ir: support mbox for some func [2/3]
PD#SWPL-182441

Problem:
need to support mbox for some func

Solution:
1. get wakeup framecode
2. enable/disable debug log
3. set wakeup key table
4. enable/disable bl30 ir
5. get the last powerkey

Verify:
t6d_br301

Change-Id: I40e3d6eb08903533f975eba87e18a24148055b70
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-09-30 21:03:57 -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
huijie.huang a6c606d945 lcd: t6d support phy tuning [2/2]
PD#SWPL-184861

Problem:
t6d need to support phy tuning

Solution:
t6d support phy tuning driver

Verify:
T6D BR301

Change-Id: I27f090450aaa6dd1e5d1c1bc7b77bde44a67ae9a
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2024-09-29 05:06:29 -07:00
Jianxiong Pan bf648bc096 aml_media: differentiate config according to tv and ott. [1/1]
PD#SWPL-184652

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

Solution:
differentiate config according to TV and OTT project.

Verify:
local.

Change-Id: I2d45ed0a8021808926954590e0efeeb092089ae4
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-09-29 05:06:22 -07:00
jialong.jiang a530c19a63 amdv: add method to get dv_id from vf. [1/1]
PD#SWPL-186419

Problem:
play the DV video source,
and the picture mode is SDR

Solution:
add method to get dv_id from vf.

Verify:
s7d

Change-Id: If8836fed66b11bef012046278ce24ee6ea0db0d0
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2024-09-27 01:06:53 -07:00
zhou.han 276e4dc768 hdmitx: add hdmi_used property [1/1]
PD#SWPL-99075

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

Solution:
Add hdmi_used property

Verify:
ohm

Test:
DRM-TX-20

Change-Id: Ie6f27ad380c90186275ec3af0ddfe7287ada09c8
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-09-26 18:50:12 -07:00
chenyang.liu 10661f0a43 lcd: update bist index on t6d [2/2]
PD#SWPL-186989

Problem:
want to support x icon,but it doesn't work

Solution:
1.reserve bist index 9 to be consistent with the other chips
2.set description to Not support and the function is same as None

Verify:
T6D-BR301

Change-Id: I2992eb0a543b2840b8c1b69fbfa97d873d2ce1f9
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2024-09-26 18:47:28 -07:00
jie.dai 0542982734 lcd: handle panel parameter to kernel within reserved memory [2/2]
PD#SWPL-184978

Problem:
need transmit parameter to kernel through reserved memory

Solution:
transmit parameter to kernel through reserved memory

Verify:
T5M/T5W/T6D

Change-Id: Icaf75763ac95a0e90b5ebc5e67739d6f86a35dc9
Signed-off-by: jie.dai <jie.dai@amlogic.com>
2024-09-25 01:58:34 -07:00
zhou.han 04da30af11 drm: Optimize encoder_atomic_check flow [1/1]
PD#SWPL-183146

Problem:
On RDK-S7D, westeros did not set the attr property when
switching from 1080P to 2160P on the UI. 2160p60hz+444,10bit
is an invalid combination, causing atomic_check fail and
the TV display black screen.

Solution:
The flow matching mode and attr is moved to the check flow.
meson_hdmitx_encoder_atomic_mode_set api keep in the commit flow,
because vinfo is updated here.If it is moved to the DRM check
flow, it may cause timing issues and lose vsync.

Verify:
S7D/OHM

Test:
DRM-TX-130

Change-Id: I5a1d29564fe0163f91529459ff844ca7f69ca189
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-09-24 02:58:51 -07:00
chenyang.liu 659b134a11 lcd: update mute method for t6d [1/1]
PD#SWPL-185995

Problem:
t6d bist support vsync latch

Solution:
use black bist when putting screen black

Verify:
br301

Change-Id: I9d543a28b976652c4ebee5e8031216470653e7a3
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2024-09-24 01:43:38 -07:00
ruofei.zhao eca9e67757 hdmitx: hdr log optimization [1/1]
PD#SWPL-183936

Problem:
the hdr log is not good

Solution:
hdr log optimization

Verify:
SC2
S7D

Test:
DRM-TX-78

Change-Id: Ia8d6ee9eb18388cbab2d1440ce74faa7c0a62412
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-09-20 08:49:26 -07:00
yuhua.lin 0cd5ecf294 dewarp: dewarp kasan issue [1/1]
PD#SWPL-178593

Problem:
current_item use after free

Solution:
us is_idle instead of current_item

Verify:
s6

Change-Id: I95051da49c0bfd7ae6feaf73f3334bd18791bd08
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-09-20 02:29:04 -07:00