Commit Graph

873 Commits

Author SHA1 Message Date
Pengcheng Chen 2a1fa15073 vpp: update vd1/vd2 in hsize/vsize for amdv [1/1]
PD#SWPL-183223

Problem:
update vd1/vd2 in hsize/vsize for amdv

Solution:
update vd1/vd2 in hsize/vsize for amdv

Verify:
s5

Change-Id: I84062711edfecf3144a0a10997375db14b98c440
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-09-03 06:02:58 -07:00
Evoke Zhang 0333fb71eb lcd: support vpu_overclk flow [1/4]
PD#SWPL-182516

Problem:
need to add vpu_overclk flow

Solution:
disable venc and switch vpu clk

Verify:
t5m

Change-Id: I08258632634c3a1cd19addd3db06edf7a8600e0a
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-09-02 23:04:15 -07:00
Jian Cao ada197bb5d vpp: dynamically modify vpu_clk when display mode changes [4/4]
PD#SWPL-182516

Problem:
need to add vpu_overclk flow

Solution:
1. add notifier event
2. set vpu clkb
3. get and check vdin status

Verify:
t5m

Change-Id: Id3a1faba9e13a6a102d6f916d9c3743476ea577a
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-09-02 23:04:07 -07:00
qianqian.cai d600209751 deinterlace: add interface to set vpu clkb [3/4]
PD#SWPL-182516

Problem:
need to add vpu_overclk flow

Solution:
add this interface

Verify:
t5m

Change-Id: I9783f464aa2f792672342618e6366ae713074f19
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2024-09-02 23:03:55 -07:00
haitao.liu 5a5593face vdin: add interface to get and check vdin status [2/4]
PD#SWPL-182516

Problem:
need to add vpu_overclk flow

Solution:
add this interface

Verify:
t5m

Change-Id: I3e0df43f44fb817c7a53efcf11e00aa02c82cc35
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-09-02 23:03:47 -07:00
Wenjie Qiao 334b68e1b6 hdmitx: audio notfiy hdmitx set audio mode [1/1]
PD#SWPL-175070

Problem:
1, need set audio mode when change video mode
2, hdmitx will not set audio mode when audio notify hdmitx set same
audio format
3, mute/unmute flow will lead to PA/PB appears in non SP0 position

Solution:
1, send new event to audio hal and set audio mode
2, hdmitx set audio mode when audio notify hdmitx set same audio format
3, need audio hal reset set audio mode when mute/unmute

Verify:
sc2/s7d

Test:
DRM-TX-86

Change-Id: I416d7f78779b3f5e8bd751b12fcda5784ae014fb
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-09-02 21:07:27 -07:00
donghui.wang 81815d3381 ldim: modify fw time measure [1/1]
PD#SWPL-183355

Problem:
add fw time measure

Solution:
add fw time measure

Verify:
t3x

Change-Id: I46ce97a378ba28493ea2ee8282e9ee37c15c793a
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-09-02 04:11:54 -07:00
Ao Xu b166279905 drm: set vrr_enabled in logo init stage [1/1]
PD#SWPL-179882

Problem:
vrr_enabled was zero in logo init stage.
when hwc set mode, drm hdmitx connector will do a full modesetting
it will lead to black screen flicker

Solution:
get vrr status by hdmitx api.
if qms is enabled, vrr_enabled will be set to true

Verify:
s7d

Test:
DRM-OSD-2, DRM-OSD-45

Change-Id: Ic3a9d33d8e46005a84b09a480df5f2ca5c3932b2
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-08-30 20:54:18 -07:00
Gaowei Zhao d4ff642108 hdmirx: support dv unique drm [1/1]
PD#SWPL-178488

Problem:
support dv unique drm

Solution:
support dv unique drm

Verify:
t3x

Change-Id: I3fb744c4bd1b8ff6e38d8cbe1b9bd0328694690e
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-08-30 20:53:53 -07:00
Long 3f36d636a8 eMMC: Optimize the cmd tuning method. [1/1]
PD#SWPL-180164

Problem:
The results obtained by cmd tuning are all 64,
and no abnormal sampling point can be found

Solution:
Test the cmd tuning again.

Verify:
T5m

Change-Id: I2bcdfc8cb46abd8bfbfd38922fc34d36f0dd8435
Signed-off-by: Long <long.yu@amlogic.com>
2024-08-30 20:53:43 -07:00
donghui.wang ed7fe68586 ldim: add fw iparam [1/1]
PD#SWPL-179609

Problem:
miss fw iparam

Solution:
add fw iparam

Verify:
t5m

Change-Id: I8c7663b75173cea55117b69cf9ebabab745b6f43
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-08-30 09:10:38 -07:00
Yongjie Zhu b748b917a2 uvm: add v4lvideo data copy size check [1/1]
PD#SWPL-183012

Problem:
https://scgit.amlogic.com/#/c/453410/
cts regression issue

Solution:
add size check before v4lvideo data copy

Verify:
t7c+U

Change-Id: Idee2f161f1605cb5f99c78430084b42a9315551d
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2024-08-30 03:30:33 -07:00
wenlong.zhang ce20c6081e drm: encoder possible_crtc filled with real vout index [1/1]
PD#SWPL-180866

Problem:
encoder possible_crtc is mismatched with real vout index, which
caused change mode failed.

Solution:
encoder possible_crtc filled with real vout index

Verify:
t7c s6

Test:
DRM-OSD-80

Change-Id: I71b2655991aa30d883915b82da6813b41f9a8798
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-08-29 03:12:22 -07:00
yuhua.lin 1e1d898692 gdc: add uvswap for dewarp [1/1]
PD#SWPL-182203

Problem:
input format and output format are different
dewarp need to support swap U/V

Solution:
complete it

Verify:
s6

Change-Id: Ied820eca7f6690c707318317657c9e6d5edcbd89
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-08-28 05:45:30 -07:00
gerrit autosubmit a46a232cc5 Merge "vout: add vout cap get func [1/1]" into amlogic-5.15-dev 2024-08-28 04:10:56 -07:00
ruofei.zhao bb6ad77940 hdmitx: add is_hdr10plus_enable flag [1/1]
PD#SWPL-181888

Problem:
HDR10plus is only supported by OTT when
is_hdr10plus_enable is 1

Solution:
add is_hdr10plus_enable flag

Verify:
S6
S4

Test:
DRM-TX-73

Change-Id: I3998c9aa62baae836431e2fe649af5a97bd49650
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-08-28 03:56:01 -07:00
xing.xu 864ead8d83 bandwidth: CF1 Single-frame Bandwidth Sampling [1/1]
PD#SWPL-179304

Problem:
Getting bandwidth data

Solution:
Getting bandwidth data

Verify:
s6.s7

Change-Id: I64e0bdc57456e6e17cb542b608eec5e952eac9ec
Signed-off-by: xing.xu <xing.xu@amlogic.com>
2024-08-28 03:55:28 -07:00
lizhi.hu d3357a984c vout: add vout cap get func [1/1]
PD#SWPL-178530

Problem:
other module need get vout cap to set mode
especially lcd

Solution:
add get_vout_mode_cap func

Verify:
c3

Test:
DRM-LCD-2

Change-Id: I2fdfa1ed56db07b2473f47320e7816d2b4db96b1
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-08-27 20:59:05 -07:00
Jing Li1 64c7e3bfb1 Revert "Demux: Add api for multi2 [1/2]"
This reverts commit febc85e083.

PD#SWPL-183570

Revert multi2 api because it is not compatible with some old projects.

Change-Id: I209e83a07af6096234789ff7993ea3f6befa3d45
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-08-27 05:57:23 -07:00
qinglin.li 0a9e20de35 ddr_tool: add t6d outstanding support [1/1]
PD#SWPL-182359

Problem:
add t6d outstanding support

Solution:
add t6d outstanding support

Verify:
local

Change-Id: Ia9173cbfb0cc2b1861d1a3dc7ae1cfafebe65b5b
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-08-27 02:47:34 -07:00
qinglin.li 7b2e4c5340 ddr_tool: use aml_ddr_tool.h as ddr_tool drivers common head file [1/1]
PD#SWPL-182359

Problem:
use aml_ddr_tool.h as ddr_tool drivers common head file

Solution:
use aml_ddr_tool.h as ddr_tool drivers common head file

Verify:
local

Change-Id: Ie2abc7e3405192192b9de65374371b6301934933
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-08-27 02:47:29 -07:00
can.zhang ac3d7fe01f amvecm: disable hdr10plus ability [1/1]
PD#SWPL-181880

Problem:
hdr10plus func need open or not

Solution:
add code

Verify:
local

Change-Id: I30696cb2ac0df9e98e99f5ac9b57ffdeccd3b95d
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2024-08-26 05:47:31 -07:00
Wenjie Qiao 34ef11fd45 hdmitx: set segment 0 when read block0/1 under kernel [2/2]
PD#SWPL-169569

Problem:
read edid error after reboot under kernel

Solution:
set segment 0 when read block0/1
read edid use DDC master access in HW TPI mode

Verify:
s5/s7

Test:
DRM-HDMITX-104

Change-Id: I885081b383c041986c54684d0b9225e24dd1e233
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-08-23 02:05:00 -07:00
jing.li1 febc85e083 Demux: Add api for multi2 [1/2]
PD#SWPL-181881

Problem:
S6 need to support multi2

Solution:
Add api for multi2

Verify:
Verified on bl201

Change-Id: Ifb6d02d198efacea99c1360ec37d2d5de7b79086
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-08-22 23:49:05 -07:00
Sunny Luo d30056cc9f spicc: reset controller when busy [1/1]
PD#SWPL-183022

Problem:
ldim crash caused by spi abnormal transfer

Solution:
reset spicc controller when busy

Verify:
t5m

Change-Id: I1317e8e5b2ddec6198126e8cd4a9c569f13eb4d5
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2024-08-22 07:40:49 -07:00
Tao Zeng 187ca993ca t6d: amfc: use device config and compress uImage
PD#SWPL-181954

Problem:
uImage not decompressed by AMFC

Solution:
1, change zstd tools to append size at end of uImage;
2, change scripts to support uImage decomperss by AMFC

Verify:
t6d

Change-Id: I2f2465a2247085c150a1c7f42ede688011745071
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-08-22 14:40:36 +08:00
huijie.huang dc16c0cc20 lcd: t6d tcon support [2/2]
PD#SWPL-180353

Problem:
t6d lcd tcon bringup

Solution:
support tcon driver

Verify:
t6d br301

Change-Id: If52b51bf609a17de138fb76b840bf865e15a4cfc
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2024-08-22 14:27:53 +08:00
Zhongfu Luo 8542413395 efuse: T6D: efuse driver bringup [1/1]
PD#SWPL-180289

Problem:
T6D: efuse driver bringup

Solution:
update efuse node
update efuse cali subitem

Verify:
T6D BR309

Change-Id: I025dd508a630cfad3596f0ca3d7ff2165f84b468
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
2024-08-22 14:27:53 +08:00
dian.shao fb2db42f7f usb: t6d usb2t controller clks update [1/1]
PD#SWPL-180337

Problem:
S6 usb2t controller clks need update.

Solution:
Add clk mux codes & dts nodes.

Verify:
br201.

Change-Id: I5342898a9864601f58f3ba6aa49f113ca1e81642
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-08-22 14:27:53 +08:00
Tao Zeng d601d7ea09 t6d: enable amfc [1/3]
PD#SWPL-181159

Problem:
AMFC not enabled

Solution:
enable it

Verify:
t6d

Change-Id: I710887e1d00b296e8c0e804ce62cf0dccf5c8957
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-08-22 14:27:52 +08:00
dian.shao 5bdcf2ac78 usb: t6d bringup [1/1]
PD#SWPL-180337

Problem:
T6D Silicon Bringup
- Kernel
- High speed peripheral driver
- USB

Solution:
Add dt nodes & driver.

Verify:
t6d.

Change-Id: Ib714eda2d9ccc0b247d8a6dee9851e31150f7a3f
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-08-22 14:27:51 +08:00
Huijuan Xiao 3e6b6bb78e amvecm: t6d bringup [1/1]
PD#SWPL-167798

Problem:
add t6d pxp bringup flow

Solution:
probe lut1 gmt_comp lut3d osd_mtx

Verify:
t6d

Change-Id: I72b493cc8ecdf12d42bef495e6c49abee9a90439
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-08-22 14:27:51 +08:00
Pengcheng Chen b4bf41313b video: add t6d video support [1/1]
PD#SWPL-167810

Problem:
add support for t6d

Solution:
complete it

Verify:
t6d

Change-Id: I4529e7871f85abde6c2cd22ce955aadff27d5c9c
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-08-22 14:27:51 +08:00
yuhua.lin 3626f20998 canvas: add support for t6d [1/1]
PD#SWPL-163819

Problem:
add support for t6d

Solution:
complete it

Verify:
t6d

Change-Id: Ia6228907993326e8c3bc22495ac8d17b075df6cf
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-08-22 14:27:50 +08:00
huijie.huang 6fda565ebf lcd: support t6d [1/1]
PD#SWPL-167796

Problem:
t6d pxp bring up

Solution:
Support t6d pxp bring up

Verify:
t6d

Change-Id: I92a30523dd75594e78c45caa2fda64f88fe51906
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2024-08-22 14:27:50 +08:00
yuhua.lin 17413ae0d8 vpp: add codec_io/canvas/rdma support for t6d [1/1]
PD#SWPL-167808

Problem:
add support fot t6d

Solution:
complete it

Verify:
ptm

Change-Id: I27a292260e8b7e8a644b2dcd43dab5acd721a9f1
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-08-22 14:27:50 +08:00
gerrit autosubmit a8f3c5ce7b Merge "hdmitx: add edid_valid property [1/1]" into amlogic-5.15-dev 2024-08-21 21:24:07 -07:00
zhou.han 659a8d1dc2 hdmitx: add edid_valid property [1/1]
PD#SWPL-99060

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

Solution:
Add edid_valid property

Verify:
ohm

Test:
DRM-TX-20

Change-Id: I3bc300e0a8c0ec019d2ef10db976584140de4588
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-08-19 22:49:10 -07:00
Pengcheng Chen 62829a4a25 vpp: fix src_fmt_str overflow issue [1/1]
PD#SWPL-182110

Problem:
fix src_fmt_str overflow issue

Solution:
fix src_fmt_str overflow issue

Verify:
t5w

Change-Id: Ie4d2b709a027f5297e4f941df00b2971eb552422
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-08-19 21:53:07 -07:00
Feng Chen 932190b3f1 spinand: F35SQA001G QPL qualify [1/1]
PD#SWPL-148920

Problem:
STB QPL qualify

Solution:
add F35SQA001G to flash id table.

Verify:
S1A_BG201

Change-Id: I3da23fa93396f96822a3bb32fc3d2332b9e9a7fd
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2024-08-19 07:42:40 -07:00
zhenteng.tian ac4d783d72 vc: notify frame display info to mediaproxy. [1/1]
PD#SWPL-177588

Problem:
video_composer need notify frame display info to mediaproxy

Solution:
notify frame display info to mediaproxy

Verify:
T5M

Change-Id: Icd7f8f030a78245086dd0c3eba5cd1e7d3761e70
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-08-15 21:45:31 -07:00
wenlong.zhang 2745334200 drm: amvecm ctm update [1/1]
PD#SWPL-180143

Problem:
drm should not call rdma write register by video channel.

Solution:
re-implement ctm api, drm just set matrix parameters, then amvecm
will write register in vsync isr.

Verify:
t7c

Change-Id: I68700d65fa494fab2552414044b011c2ef21bdeb
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-08-15 19:46:40 -07:00
lizhi.hu e2f3ba505f lcd: projection mode support [1/1]
PD#SWPL-173046

Problem:
projection broken after lcd multi-timing support 1

Solution:
1. divide panel dtsi to tv/tablet/projection
2. add vout regist ctrl to force regist multi vout

Verify:
txhd2_be311

Change-Id: I163818378fc762c961926dac84b11c4c28404842
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-08-15 19:46:34 -07:00
jinbiao b6bce37072 SD: control sd io-related GPIO output low when reboot. [1/1]
PD#SWPL-164281

Problem:
SD io-related GPIO always output high when reboot.

Solution:
control sd io related GPIO output low via Pinctrl.

Verify:
C3_AW419

Change-Id: I487b5be27e2248b709c709c3bd7e3beb6d9adeee
Signed-off-by: jinbiao <jinbiao.ou@amlogic.com>
2024-08-15 01:42:32 -07:00
gerrit autosubmit 0d9978f078 Merge "dmabuf_manage : CF0 add secmem v3 64bit addr support [1/1]" into amlogic-5.15-dev 2024-08-13 21:46:48 -07:00
Evoke Zhang e5e428f250 lcd_extern: support reload cmd bin [1/1]
PD#SWPL-175831

Problem:
need support lcd_extern reload cmd bin

Solution:
add lcd_extern reload cmd bin

Verify:
ay301

Change-Id: I3ed9041bc680a458e5853f0ef23bdb5f6810ae13
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-08-13 21:46:32 -07:00
song.han ba1bb225eb iotrace: add preempt protections at hooks [1/1]
PD#SWPL-179411

Problem:
BUG: sleeping function called from invalid context
	at kernel/sched/completion.c
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1,
	name: swapper/0
Preemption disabled at:
[<c0428468>] queue_stop_cpus_work+0x60/0x1bc
[<c030dc24>] show_stack+0x28/0x2c
[<c105e624>] dump_stack_lvl+0x48/0x54
[<c0371660>] ___might_sleep+0x1c4/0x1e8
[<c10621b8>] wait_for_completion+0x28/0x58
[<c0428180>] stop_machine_cpuslocked+0x10c/0x208
[<c106ac28>] patch_text+0x20/0x28
[<c0501254>] __jump_label_update+0x7c/0xec
[<c05002b8>] static_key_enable_cpuslocked+0x8c/0x100
[<c050034c>] static_key_enable+0x20/0x28
[<c0441acc>] tracepoint_add_func+0x38c/0x400
[<c0441c00>] tracepoint_probe_register+0x54/0x6c
[<c0db6974>] ftrace_ramoops_init+0x288/0x2fc
[<c163cb30>] aml_iotrace_init+0x46c/0x550
[<c03020a0>] do_one_initcall+0x104/0x364
[<c1601f90>] do_initcall_level+0xa0/0x15c
[<c1601ec0>] do_initcalls+0x58/0x88
[<c1601d04>] kernel_init_freeable+0x114/0x160
[<c105fe24>] kernel_init+0x20/0x1c4
[<c0300134>] ret_from_fork+0x14/0x40

Solution:
add preempt protections at hooks

Verify:
t5w

Change-Id: Ib6a13e104aeb697e84e331152f6ea41ef6d11b35
Signed-off-by: song.han <song.han@amlogic.com>
2024-08-13 05:44:40 -07:00
Sunny Luo 0585d28c0b spi: spicc-v2: add vsync trig mode support [1/1]
PD#SWPL-159505

Problem:
vsync trig mode requirement from LDIM

Solution:
add vsync trig mode support for spicc-v2

Verify:
T3X T968D4-BC302

Change-Id: I16e24c55d884cf4871875e5a22c0935b13e36f01
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2024-08-13 01:46:32 -07:00
chen.xu 32a3341535 video_composer: vc support dec set screen mode [1/1]
PD#SWPL-178926

Problem:
video_composer need support dec set screen mode.

Solution:
1.while dec set screen mode, vpp using this 1st priority.

Verify:
T982

Change-Id: I71d9cdb4d7b7ed452427f55e6e8767709d35b052
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-08-12 23:48:34 -07:00
Hao Shi 5ef408908c dmabuf_manage : CF0 add secmem v3 64bit addr support [1/1]
PD#SWPL-176629

Problem:
add secmem v3 64bit addr support

Solution:
add secmem v3 64bit addr support

Verify:
None

Change-Id: Id5c6bca16e8620140770b7dc9f6b9dbddc395850
Signed-off-by: shipeng sun <shipeng.sun@amlogic.com>
2024-08-12 22:09:13 -07:00