Commit Graph

5830 Commits

Author SHA1 Message Date
chuangcheng.peng 0d2bcea4ee demux: don't jump es to handle corner case for t5w [1/1]
PD#SWPL-184101

Problem:
AV not sync

Solution:
don't jump es to handle corner case.
notify high level when dmx can't get any data

Verify:
verified at T5W

Change-Id: I5285916b1541652cb1fa7c422ed792864b7253ba
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-11-06 19:04:37 +08:00
chuangcheng.peng b00d425c11 demux: add pts adjust for t5w chip [1/1]
PD#SWPL-172223

Problem:
video not smooth

Solution:
add pts adjust for slow es

Verify:
verified at project

Change-Id: I74df9a677aca67a243d1c00b1be5bcfcaf5ce27e
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-11-06 19:04:27 +08:00
chuangcheng.peng 3e17e18623 demux: correct wp for t5w [1/1]
PD#SWPL-165949

Problem:
video/audio is async

Solution:
correct wp

Verify:
verified at T5W

Change-Id: I694f171be349584b670d10665ffc9b1b23f2acb9
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-11-06 19:04:21 +08:00
chuangcheng peng 7815c5780d demux: add notify for t5w [1/1]
PD#TV-104514

Problem:
no notify for test streams

Solution:
add notify when es wp change and es header no change, just for t5w

Verify:
verified at t5w

Change-Id: I325c1b422bbe3831d9b44a915f962e4fd0babf9d
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2024-11-06 19:03:09 +08:00
qiyao.zhou e68039afd3 di_process: di not work for interlace stream [1/1]
PD#SWPL-191644

Problem:
bypass flag been set in dummy output,but not
reset for later frame

Solution:
Modify bypass flag set flow in DI process.

Verify:
s7

Change-Id: Ie9d72638c8ee903e59fb90b6a508ec6ecb2fea3d
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-11-06 10:27:59 +08:00
xiang.wu1 8e4502a7d3 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-11-05 11:25:21 +08:00
qiyao.zhou ea4041f475 s5: enable di in display side for s5 [1/3]
PD#SWPL-186512

Problem:
Android U support di backend for s5.

Solution:
Android U support di backend for s5.

Verify:
s5

Change-Id: I91de8156994914e16da8cda4b448a7252c709c97
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-11-04 10:20:58 +08:00
shipeng sun 1652c8028d amlogic_secure_dmabuf : CB0 Fix a regression of support secmem v3 64bit [1/1]
PD#SWPL-184274

Problem:
cma_release crash

Solution:
Fix a regression of add secmem v3 support double free
secure dmabuf block's private struct memory space lead
random aml_cma_free crash

Verify:
T3X

Change-Id: I163a8a4bebe99f650518cdad8fc22b9b97d20382
Signed-off-by: shipeng sun <shipeng.sun@amlogic.com>
2024-11-01 15:14:13 +08:00
Hao Shi 53a4bddcc3 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-11-01 15:13:23 +08:00
shipeng sun 5860b6f2db dmabuf_manage : Free Secmem V2 Handle for USER_TA Implement [1/1]
PD#SWPL-187548

Problem:
Free Secmem V2 Handle for USER_TA Implement

Solution:
Free Secmem V2 Handle for USER_TA Implement prevent no handle
available

Verify:
T6D

Change-Id: Id3e72baf05c8f87c92c0a540a9a39b1a5c64a64d
Signed-off-by: shipeng sun <shipeng.sun@amlogic.com>
2024-11-01 15:09:17 +08:00
shipeng sun abb0e839f9 codec_mm : CF0 add driver pm interface for hibernation [1/1]
PD#SWPL-184881

Problem:
add driver pm interface for hibernation to register
secure vdec memory range

Solution:
add driver pm interface for hibernation to register
secure vdec memory range

Verify:
S905Y5

Change-Id: I95674dc599d0627ab2ad7481c3d549449ea2280c
Signed-off-by: shipeng sun <shipeng.sun@amlogic.com>
2024-11-01 15:07:28 +08:00
shipeng sun 79aed07904 dmabuf_manage: CB1 Remove unused code [1/1]
PD#SWPL-176200

Problem:
Remove dmabuf_manage and secure vdec heap's unused code

Solution:
Remove dmabuf_manage and secure vdec heap's unused code

Verify:
ohm_wv4

Change-Id: Ib88ff7393c41767e275a4db26035bdc00ba2d4db
Signed-off-by: shipeng sun <shipeng.sun@amlogic.com>
2024-11-01 15:06:48 +08:00
shuanshuan.jiang 65b7ee84be camera: fix coverity issue [1/1]
PD#SWPL-190770

Problem:
coverity issue: the function of "parse_power"
may cause memory - corruptions

Solution:
using static value to save label of gpio

Verify:
local

Change-Id: I95b79ca2ed461959e9be6ddd731429f79e4a2e7e
Signed-off-by: shuanshuan.jiang <shuanshuan.jiang@amlogic.com>
2024-11-01 10:32:42 +08:00
Yu Tu f6c5e61be7 pci: clean coverity error [1/1]
PD#SWPL-190822

Problem:
clean coverity error

Solution:
modified code

Verify:
sc2

Change-Id: Iefef6c015b1a4271928ce9f162a23e06cabf23d7
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-11-01 10:29:26 +08:00
Yu Tu 76715aa01b uart: clean coverity [1/1]
PD#SWPL-190834

Problem:
clean coverity

Solution:
modified code

Verify:
sc2

Change-Id: I141d90acfcf42495fefa5b51ab78be74567b0b88
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-11-01 10:29:26 +08:00
Jianxiong Pan 5e4a4b2719 mm: reduce cma isolate failed print. [1/1]
PD#SWPL-190181

Problem:
isolate failed print too much.

Solution:
reduce cma isolate failed prints.

Verify:
local.

Change-Id: I2fc12f448bb7513ce6372a811408b24b0ee91f63
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-11-01 10:29:12 +08:00
yujun.zhang c9e4177446 drm: reuse current out fence if display is delayed [1/1]
PD#SWPL-182727

Problem:
Two present fences may be created within one vsync,
but current drm driver doesn't support it.

Solution:
In one vsync, only the first fence is created. For the 2nd
fence, reuse the first one, and only increase its ref
count, and install a new fd.

Verify:
SC2

Test:
DRM-OSD-39

Change-Id: I9cd2d7d54043bf7640f0130b3ab86bb732686b16
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2024-11-01 10:28:48 +08:00
Hao Shi 6f9ac5fb63 codec_mm: config codec_mm dma mask [1/1]
PD#SWPL-191251

Problem:
codec_mm fail issu on S905X5 16G board

Solution:
config codec_mm dma mask

Verify:
verify by raman

Change-Id: Id419efd02efda7fdab7a7830179a6dd8b4de82a4
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-10-31 15:08:47 +08:00
gan.zhang 7ae11945d2 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-31 11:06:17 +08:00
Hao Shi 42d0d38ed3 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-30 11:19:38 +00:00
Pengcheng Chen b1e1e162e3 vpp: add lowlatency support fot s6 [1/1]
PD#SWPL-190955

Problem:
add lowlatency support fot s6

Solution:
add lowlatency support fot s6

Verify:
s6

Change-Id: I4d222ccf499e5ec0004032585206d39e070da182
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-10-30 10:46:07 +08:00
Hao Shi 68fb0f928e 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-30 10:46:06 +08:00
ruofei.zhao 63564a1307 hdmitx: add s7d rterm config [2/2]
PD#SWPL-190079

Problem:
hdmitx eye diagram test fail

Solution:
add s7d rterm config

Verify:
S7D

Test:
DRM-TX-78

Change-Id: I83fd368e5848893961646ab41e27b4d2ebf9ddd6
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-10-30 10:46:04 +08:00
hai.cao 753d024996 vpu: disable gp1_pll when suspend [1/1]
PD#SWPL-160032

Problem:
suspend can not disable gp1_pll

Solution:
fix suspend vpu clk

Verify:
t3x

Change-Id: Iec44917486c6376bd410654944c1e8bc31661ef9
Signed-off-by: hai.cao <hai.cao@amlogic.com>
(cherry picked from commit 8daf645356)
2024-10-29 14:17:40 +08:00
hongyu.chen1 a0b1614dae Wakeup: Clean up netflix wakeup reason. [1/1]
PD#OTT-68017

Problem:
S4 & S4D need clear.

Solution:
add dts config.

Verify:
S4 & S4D

Change-Id: I28233b214ba41b4841da83a601c2e2f280f44d14
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-10-29 10:44:24 +08:00
jiebing chen 7b7c21a00f Audio: change sy602 codec eq config [1/1]
PD#SWPL-183953

Problem:
sy602 hw performance test failed

Solution:
reconfig the sy602 eq config

Verify:
use s6

Change-Id: Ic2125d0e221f2f6acf425dfd6faab872651e9ea5
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-10-29 10:44:24 +08:00
Junyi Zhao 7cb26c1223 clk: s7: ignore unused pwm clk [1/1]
PD#SWPL-189570

Problem:
no wifi 32K pwm after boot to kernel
because pwm clk was been closed

Solution:
ignore unused pwm

Verify:
s7_bh201

Change-Id: I053455a8210b3940335be2162ba6e553c7d6c966
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-10-29 10:44:24 +08:00
Zelong Dong 2460f518be dts: arm: remove t5d ir mailbox support [3/3]
PD#SWPL-182441

Problem:
this branch doesn't support t5d mailbox

Solution:
remove t5d ir mailbox support

Verify:
t5d

Change-Id: Ie885fbc4aea83c12c71b02572b788695a05626a2
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 16:46:08 +08:00
Jianxiong Pan 4058b46d22 mm: add __nocfi in amlogic cma. [1/1]
PD#SWPL-175996

Problem:
fix cfi check failed.

Solution:
add __nocfi flags in amlogic cma.

Verify:
local.

Change-Id: I5ea21b79c564d19f9158b7142fa237200f2823de
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-28 14:39:01 +08:00
Wentao.Sun c5b971dcd3 dts: change secmon reserved memory alignment to 1M [1/1]
PD#SWPL-170620

Problem:
optimize secmon reserved memory for some platform

Solution:
1.change secmon reserved memory alignment to 1M
2.relocate ramoops memory

Verify:
AndroidU

Change-Id: Ic53381d705415a72bcd91970d8226577864dcdcd
Signed-off-by: Wentao.Sun <wentao.sun@amlogic.com>
2024-10-28 14:28:29 +08:00
qiyao.zhou b2f1968e77 di_process: video will shake when play mbaff stream [1/1]
PD#SWPL-169109

Problem:
Send decoder frame and di frame to vc for the same
input frame,this lead to fence out of order range.

Solution:
Modify send frameflow in DI process.

Verify:
s7d

Change-Id: I1dbb7ffbec8e8414e9295a6890286c5e5b8f04ae
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-10-28 14:21:38 +08:00
chao.zhang dbf68e9521 pdvfs: enable s6 cpu pdvfs [2/2]
PD#SWPL-186065

Problem:
enable s6 cpu pdvfs

Solution:
use different index by efuse vmin

Verify:
S6

Change-Id: Ib72389afdd77b675a7187696f3db59201f0af4ef
Signed-off-by: chao.zhang <chao.zhang@amlogic.com>
2024-10-28 14:11:39 +08:00
Chuan Liu 2853f283e4 clk: s6: fix gen_clk configuration errors [1/1]
PD#SWPL-189174

Problem:
1 The en bit of gen_clk is incorrectly configured.
2 The driver is automatically generated using the latest auto_clk_driver
scripting tool.

Solution:
Fixed

Verify:
s6_bl201

Change-Id: I441d66947241a5a0ded5be6e60280c49deedea50
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-10-28 10:49:32 +08:00
he.he a01025d36d usb: No longer recognize any u-disk [1/1]
PD#SWPL-189723

Problem:
This hub no longer recognizes any disks
after unplugging the U-disk once.

Solution:
debug aml_xhci_disable_port

Verify:
s7d

Change-Id: Ie463b8bb239951881f2e2489af8de0c7d7bf2ea8
Signed-off-by: he.he <he.he@amlogic.com>
2024-10-28 10:48:43 +08:00
zhenteng.tian c6f0d4c0c0 vc: enable low latency mode for dec vf in game mode. [1/1]
PD#SWPL-181820

Problem:
enable low latency mode for dec vf in game mode

Solution:
enable low latency mode for dec vf in game mode

Verify:
T5M

Change-Id: I168f33dfe6777e2cb2fd20d4538ab52fd5722a3b
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-10-25 19:32:36 +08:00
Zelong Dong 0408300b55 ir: support multi wakeup key event [3/3]
PD#SWPL-182441

Problem:
only support power key and one custom key

Solution:
support multi wakeup key event, kernel ir drivers
gets framecode from bl30 by mbox

Verify:
t6d

Change-Id: I0f118bbbec12a9e86d3cc8e37128fb906bc22f12
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-25 17:54:13 +08:00
Zelong Dong 194c938816 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-10-25 17:53:58 +08:00
Zelong Dong a53ae472bc 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-10-25 17:53:39 +08:00
Zelong Dong 66ec40264d ir: support all IR devices in one common input device [2/2]
PD#SWPL-180331

Problem:
there are 2 IR controllers (2x2 multi-format) in T6D

Solution:
support all IR devices in one common input device

Verify:
t6d_br301

Change-Id: Ib01291b4b3e399ae4b1d15df5aa055339b6ece6c
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-25 17:53:15 +08:00
Zelong Dong 40292c7475 ir: support multi IR devices [1/2]
PD#SWPL-180331

Problem:
there are 2 IR controllers (2x2 multi-format) in T6D

Solution:
support multi IR devices

Verify:
t6d_br301

Change-Id: I597bea15e9b919279f8267344221d5721f9559df
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-25 17:52:40 +08:00
Zelong Dong 09714ccd80 ir: optimize multi input device [1/1]
PD#SWPL-180331

Problem:
the number of input devices are fixed, up to 3.
Fixes: Ie8c857e0761 ("remote: supports ir functions of various ID")

Solution:
alloc input device dynamically

Verify:
t6d

Change-Id: Ic519000f4a8e6faf0020711ddecb56fd50aa8d80
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-25 17:52:15 +08:00
Zelong Dong af672e745a ir: support hibernate mode for ir [1/1]
PD#SWPL-145760

Problem:
support hibernate mode for ir

Solution:
support hibernate mode for ir

Verify:
s4

Change-Id: Ied8d29fc620b6650583b10b7bb30b309e697fcc3
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-25 17:51:51 +08:00
yao liu 2f63b7c521 amdv: flashing when dv pip mode [1/1]
PD#SWPL-183223

Problem:
1.when setting pip mode, apk set small crop 86x48 once,
lead to video disable and enable. Then dv graphic max
changed from hdr10 value to sdr value to HDR10 value.
2.s5 swap reg latch is not disable, lead to flash when
size changed.

Solution:
1.if no video, keep graphic max the same as before.
2.disable latch

Verify:
s5

Change-Id: I4464d3aa5a25321665f374c1aeeea3ac626b0d38
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-10-24 19:45:07 +08:00
Pengcheng Chen 5eea67f42f 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-10-24 19:19:12 +08:00
pengzhao.liu fad07eb9eb kernel: s6 Change logo_addr to 8M [1/1]
PD#SWPL-187344

Problem:
s6 Change logo_addr to 8M

Solution:
s6 Change logo_addr to 8M

Verify:
s6

Test:
s6 start up

Change-Id: I6e1ea32f0013c5e7756177aefa3ed1ea450af932
Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
2024-10-24 19:16:26 +08:00
chuangcheng.peng 5a4ad7a9b5 demux: don't use scb flag [1/1]
PD#SWPL-182856

Problem:
pvr play fail

Solution:
scb is 2 or 3, but ts is clear
don't adjust scb flag

Verify:
verified at s7

Change-Id: I23641730a89e259f48a942fc8e88f0c102e6e4b2
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-10-24 16:42:00 +08:00
hongbin wang 233af2db38 tee: change shm register flag when restore [1/1]
PD#SWPL-185800

Problem:
Youtube can not play when restore in STD function.
the TEE print :
std_entry_with_parg:235 Bad arg address 0x1200c180

Find the dynamic shm flag should not have
OPTEE_SHM_ARG_ALLOC_PRIV flag.  it should same to
optee_probe function , just need OPTEE_SHM_ARG_SHARED

Solution:
remove OPTEE_SHM_ARG_ALLOC_PRIV when re-register

Verify:
S7 + Yocto

Change-Id: Ibe9708cb4db0e0b98f1a144d204f66e93bb56d22
Signed-off-by: hongbin wang <hongbin.wang@amlogic.com>
2024-10-24 15:53:19 +08:00
hai.cao 6f831bc6d8 video: aisr demo display error [1/1]
PD#SWPL-189256

Problem:
special size video enable aisr demo error

Solution:
fix axis logic

Verify:
s7d

Change-Id: Ia839660ac670aed2eef5ccfc49a1b86cbf6172c7
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-10-24 13:46:03 +08:00
Yu Tu fb46eaa2f4 pcie: modify clock to pll1 [1/1]
PD#SWPL-188251

Problem:
HW test clock pll1 signal better than pll0

Solution:
modify clock to pll1

Verify:
bl208

Change-Id: I4900f969f2c6b9e9ec04e63dd105686936822de2
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-10-24 10:33:38 +08:00
Lei Zhang 1c0bf1a4a3 cpufreq: optimize cpu frequency strategy [1/1]
PD#SWPL-160731

Problem:
cpu freq drop quickly in RT scene

Solution:
optimize cpufreq strategy, not drop too quickly

Verify:
on T7C

Change-Id: I42d3bcf445a0496f393a7f491c99a593e6b18f17
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2024-10-24 10:07:45 +08:00