Commit Graph

1131 Commits

Author SHA1 Message Date
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
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