Commit Graph

1121 Commits

Author SHA1 Message Date
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
Evoke Zhang 24c5946b31 lcd: not enable invalid lane [2/2]
PD#SWPL-182405

Problem:
only need enable valid lane

Solution:
check invalid lane and not enable them

Verify:
bc302, at301

Change-Id: Ic997ab4e7f8caacd49c5a78159d63deb369f3243
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-09-19 21:48:58 -07:00
xiang.wu1 a70042aac0 hdmitx: optimization frl stop flow [1/1]
PD#SWPL-181717

Problem:
cancel_delayed_work() may not cancel the work in time

Solution:
stop frl first at disable phy
Use the cancel_delayed_work_sync() instead
clear frl mode at hdmitx_set_frl_rate_none

Verify:
s5/ax201

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

Change-Id: Ifac6bce137f251c3d643afae60d567c75eee81c0
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-09-18 05:02:25 -07:00
zhenteng.tian 1facc03ea9 vc: drop error frame in low latency mode. [1/1]
PD#SWPL-181167

Problem:
vc need drop error frame in low latency mode

Solution:
need drop error frame in low latency mode

Verify:
T5M

Change-Id: If6b5c458f3abed2694db4238f259a21e436d2862
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-09-18 02:56:44 -07:00
yiting.deng dab5a1e689 clk: s7d: update pwm_clk to secure [3/3]
PD#SWPL-175924

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 it

Verify:
s7d

Change-Id: Ieddcf486196ad33f3b79188039de3143f22e99f4
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-09-12 23:02:58 -07:00
Evoke Zhang 1e7eb909af lcd: support get real state from register for phy tuning [2/2]
PD#SWPL-181614

Problem:
need get real state from register for phy tuning

Solution:
support get real state from register for phy tuning

Verify:
ay301

Change-Id: Ifffe89ac119c14049cd987e7254b64b7ad36b526
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-09-12 21:51:51 -07:00
Jiucheng Xu 70635b96bc cma: export enable interface for using cma buffer for write file [1/1]
PD#SWPL-185295

Problem:
write file cache couldn't use cma buffer.

Solution:
add module param to control the enable/disable using cma buffer for
write file cache.

Verify:
t3/t5w

Change-Id: Ief6506d24298358560f475eb2f11393989819763
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
2024-09-11 23:03:51 -07:00
zongdong.jiao 6b9d08f2b3 hdmitx: re-format the qms related log [1/1]
PD#SWPL-183838

Problem:
re-format the qms related log

Solution:
re-format the qms related log with id

Verify:
s6/raman

Test:
DRM-TX-75

Change-Id: I8f189dc67f381971cd5ec60aae58bb4c94f9cbf9
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2024-09-11 20:55:23 -07:00
ruofei.zhao 5e9be61f17 hdmitx: update hdmitx version to 20240914 [1/1]
PD#SWPL-184893

Problem:
update hdmitx version for release

Solution:
update hdmitx version to 20240914

Verify:
S7D
S4

Test:
DRM-TX-40

Change-Id: Ibdab4d6470967ddb2dbf09f3e7b15651484446fe
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-09-11 04:59:53 -07:00
jing.li1 7870aac7aa 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: I124eeda9df93d9a7f0bacba3ad5c663f341852f5
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-09-11 01:55:48 -07:00
dian.shao 62b68a6015 usb: 2t cmdline args force mode [1/1]
PD#SWPL-180337

Problem:
wifi/bt driver passes the kernel args in
uboot.

Solution:
Read args and if it is set, set the usb2phy to 960m mode.

Verify:
br201.

Change-Id: I07d057866441b13d451023bdcd4b5d985a6d941b
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-09-10 07:02:25 -07:00
song.han 23b67f45b1 IOTM: support iotm function on t6d [1/2]
PD#SWPL-170602

Problem:
support iotm function on t6d

Solution:
support iotm funciotn on t6d

Verify:
t6d

Change-Id: Ifb5e32d0ff3ee455dae60088133c01514188159f
Signed-off-by: song.han <song.han@amlogic.com>
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-09-10 04:47:00 -07:00
Evoke Zhang 11d1fad662 lcd: support more ufr timing switch method [1/1]
PD#SWPL-183033

Problem:
need support min switch without tcon reset for special panel

Solution:
support more ufr timing switch method

Verify:
at301

Change-Id: I7b5ab8d8e5d37d10211e744b83ac64fb76e81e4b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-09-06 02:19:08 -07:00
zhou.han 37e8aadf54 hdmitx: add hdcp_user property [1/1]
PD#SWPL-182609

Problem:
There are some hdcp fail messages in mesondisplay logcat.
But IVCX chip don't need HWC to enable hdcp flow, SNPS chip need.

Solution:
Add hdcp_user property to notify HWC of controlling dynamically
hdcp flow

Verify:
sc2/s6

Test:
DRM-TX-37

Change-Id: I146187a7843dbd83a7531d3415fb28249a6ef086
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-09-05 03:43:03 -07:00
qinglin.li 4b8d313875 ddr_tool: build fail if ddr_bandwidth not define [1/1]
PD#SWPL-182359

Problem:
build fail if ddr_bandwidth not define

Solution:
use static inline define function

Verify:
local

Change-Id: Iab9bb597a0c8238224c70f66cafb3c549044a3d2
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-09-04 05:40:03 -07:00
dian.shao fcdaffa1b6 usb: str power optimise [1/1]
PD#SWPL-183487

Problem:
AVDD18_AUDIO high.

Solution:
Power off controller when str.

Verify:
br301

Change-Id: I7fa56ca3449df6196cd0e6e7d0ee9ba108712928
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-09-03 18:52:09 -07:00
Pengcheng Chen 30ab20b79b vpp: add nv21/nv12 10bit fullpack support [1/2]
PD#SWPL-183317

Problem:
add nv21/nv12 10bit fullpack support

Solution:
add nv21/nv12 10bit fullpack support

Verify:
t6d

Change-Id: If5c866c5e3f27c79472f4a018fe6a241507f9475
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-09-03 18:52:04 -07:00
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
shufei.zhao b0d6124b0c uapi: fix build warning [1/1]
PD#SWPL-183190

Problem:
kernel5.15 have warnings

Solution:
change // to /**/

Verify:
build

Change-Id: I8ea6da7490033f8fd85cd6020bbd26acf8ae52f6
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
2024-08-30 02:08:36 -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
Chuan Liu e76dceefdd clk: s6: Update the axi_clk register bits definition [1/1]
PD#SWPL-183185

Problem:
VLSI updated the axi_clk register bits definition in the document.

Solution:
Fixed

Verify:
s6_bl201

Change-Id: Ibb3e5f9c5a8d7cfce58932568f26ae3dc80e4c3c
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-08-29 02:43:38 -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