Commit Graph

955 Commits

Author SHA1 Message Date
hai.cao b75ff7de8d vpp: add bypass video mute control [1/1]
PD#SWPL-230799

Problem:
add video mute bypass to debug

Solution:
add support

Verify:
tv chips

Change-Id: I83a956b949e7edcf6983b1aab728f70964c4f71c
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2025-09-09 02:11:41 -07:00
huijie.huang 1242492a55 lcd: support t6w and t6x chip [1/1]
PD#SWPL-228770

Problem:
Kernel 6.12 need to support t6w

Solution:
Kernel 6.12 T6W bringup

Verify:
t6w

Change-Id: Ied122f870bc5d141bc2201ff5e99f1293d74132b
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2025-09-08 04:58:58 -07:00
ruofei.zhao cff695651d hdmitx: optimize hdmitx_edid_check_data_valid code [1/1]
PD#SWPL-229484

Problem:
hdmitx_edid_check_data_valid is called multiple times, code is redundant

Solution:
optimize hdmitx_edid_check_data_valid code

Verify:
S905X5M

Test:
DRM-TX-78

Change-Id: I6bdab3a2275b25d2d60e893b81f3fadc8511f4ea
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2025-09-08 04:58:51 -07:00
Jianxiong Pan 4faea8d07f mm: provide interface to set cma task priority. [1/1]
PD#SWPL-229258

Problem:
some scenarios hope to dynamically modify the cma task priority.

Solution:
provide interface to set cma task priority.

Verify:
local.

Change-Id: I72ad141f3535a9173f622ff73c79c96440aa76da
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-09-08 01:19:00 -07:00
dongfei.li 282862c937 frc: frc sync k5.15 [1/1]
PD#SWPL-230806

Problem:
sync k5.15

Solution:
sync k5.15

Verify:
T5M

Change-Id: Id133261c3c87e636b85853978b45414ab1ff6039
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2025-09-05 05:16:31 -07:00
hai.cao ab179b938e rdma: sync codec_io canvas rdma for t6w [1/1]
PD#SWPL-228894

Problem:
sync codec_io canvas rdma for t6w

Solution:
sync codec_io canvas rdma for t6w

Verify:
t6w

Change-Id: I7678a6c93fdd0002bc23023c998359a66e717c31
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2025-09-05 04:52:11 -07:00
qinglin.li 3d18d31974 ddr_bandwidth: move dmc_side_band define [1/1]
PD#SWPL-226991

Problem:
move dmc_side_band define

Solution:
move dmc_side_band define

Verify:
local

Change-Id: I407e8fb8783f4bdeb7a456c0a298dc76e5a79f68
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-09-05 04:51:57 -07:00
Ao Xu d7f68502e7 meson_tx_connector: update dptx and hdmitx driver [1/1]
PD#SWPL-229825

Problem:
update dptx and hdmitx driver

Solution:
update dptx and hdmitx driver

Verify:
s7d

Test:
DRM-TX-38

Change-Id: Ic0f8ccdfd250b3fa5bc54f63d4c73c4904948b50
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2025-09-05 04:50:02 -07:00
Jianxiong Pan 4fa9cce6f5 mm: profile cma pool usage. [1/1]
PD#SWPL-225018

Problem:
statistic cma pool usage.

Solution:
echo cma_name > /proc/cma_stat
cat /proc/cma_stat
or call get_cma_stat() to get info;

Verify:
local.

Change-Id: I39ad7e9fbc6ad8b1bf75e40d2f3074ccd77b0f2b
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-09-05 04:49:33 -07:00
yicheng shen d6f9e99cee cec: add gpio_w17 support [1/2]
PD#SWPL-213081
PD#SWPL-228901

Problem:
T6W has two kinds of chips,one uses gpio_w16 for CE,the
other one uses gpio_w17,but current driver only supports
gpio_w16;

Solution:
add gpio_w17 support for CEC

Verify:
T6W

Change-Id: Ie9fb286f00586465b11aaa456b3bb0a6bd5a2de8
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2025-09-01 04:33:16 -07:00
yao liu 537cb57c50 amdv: optimize code [1/1]
PD#SWPL-194769

Problem:
pyramid related logic is a bit messy

Solution:
optimize pyramid code

Verify:
t3x

Change-Id: Ied8045e1cca36673fd68a753075c88428b50fa71
Signed-off-by: yao liu <yao.liu@amlogic.com>
2025-09-01 02:21:29 -07:00
yao liu e36e986a02 amcsc: fix compile error [1/1]
PD#SWPL-222700

Problem:
compile error when DOLBYVISION disabled

Solution:
fix cmopile err

Verify:
s7d

Change-Id: If4cd94b75ef5982fd3ab6297e7497ddaa2d365d8
Signed-off-by: yao liu <yao.liu@amlogic.com>
(cherry picked from commit 7dbd82b70c42a1c6d455e87fe2c33e4c3c1cbdc6)
2025-09-01 02:21:24 -07:00
Jian Cao a135889e21 rdma: add more interfaces for RDMA read function [1/2]
PD#SWPL-221001

Problem:
add RDMA read function

Solution:
1.add read function in RDMA module
2.enable for t6w vdin0

Verify:
t3/t6w

Change-Id: Ib5558abde7f69e1c393986af1e6c7d9823a56702
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2025-09-01 02:07:17 -07:00
jinbing.zhu 22e28dcff2 amvecm: sync kernel 5.15 to 6.12 with pq [1/1]
PD#SWPL-226504

Problem:
sync kernel 5.15 to 6.12 with pq

Solution:
sync kernel 5.15 to 6.12 with pq

Verify:
t5m

Change-Id: I2efecf27542eee4378ff0b7a8e9c053715df25fc
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2025-08-31 19:44:08 -07:00
Zhongfu Luo 884e4716c4 efuse: T6W: efuse driver bringup [1/1]
PD#SWPL-207464

Problem:
T6W: efuse driver bringup

Solution:
enable efuse node in dtsi
update efuse cali subitem

Verify:
T6W BS319

Change-Id: I512c841e24bf08530b2480ad0714141c31d06499
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
2025-08-27 23:04:15 -07:00
chenyang.liu f6e39c784b lcd: add phy clk range match rules [2/2]
PD#SWPL-224205

Problem:
add phy clk range match rules

Solution:
add phy clk range match rules

Verify:
bs311
ay301

Change-Id: Ib8b46eb25e6adcb30a7f38c1c354f11bd27da106
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2025-08-27 22:24:48 -07:00
qinglin.li 9b384d63d0 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>
2025-08-27 02:27:58 -07:00
qinglin.li d1bc1e8cce freertos: C3 fix rtos lose frame [1/2]
PD#SWPL-175077

Problem:
C3 doorbell lose frame

Solution:
Optimize ISP and encoder processes

Verify:
c3

Change-Id: Ief888fb4d5e9a7e93af94487dc92eeadbe22c7e1
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-08-27 02:27:47 -07:00
Long Yu 0d18c631c9 eMMC: Support for CQE mode with Inlinecrypt. [1/1]
PD#SWPL-229101

Problem:
not support for CQE mode with Inlinecrypt.

Solution:
Support for CQE mode with Inlinecrypt

Verify:
S6 bl201

Change-Id: I2dfcc962c4385a149e67d95c04d0337cbd1913e7
Signed-off-by: Long Yu <long.yu@amlogic.com>
2025-08-26 20:35:24 -07:00
qinglin.li 5724876ed7 debugfs: add class debug replace debugfs [1/1]
PD#SWPL-227680

Problem:
add class debug replace debugfs

Solution:
limit aml_reg and aml_ddr, set cmdline 'debug_class=2'
/sys/class/debug/atrace_tag --> /sys/class/debug/atrace/atrace_tag
/sys/kernel/debug/aml_debug --> /sys/class/debug/aml_debug
/sys/kernel/debug/aml_reg --> /sys/class/debug/aml_reg
/sys/kernel/debug/aml_ddr --> /sys/class/debug/aml_ddr
/sys/kernel/debug/watchdog --> /sys/class/debug/watchdog

Verify:
Detail info

Change-Id: I90d6944729b699b7c4b0c3cceb56eff9956edd57
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-08-25 19:54:30 -07:00
Ruixuan.li e0feed4f7e emmc: store pattern in last gap [1/1]
PD#SWPL-226607

Problem:
some project remove reserved partition

Solution:
save pattern in last gap

Verify:
s7

Change-Id: I084be4129f079711d0738e99face5fac395e9357
Signed-off-by: Ruixuan.li <ruixuan.li@amlogic.com>
2025-08-25 19:53:07 -07:00
jinbing.zhu 66a395ee6d amvecm: sync 5.15 lcevc to 6.12 [1/2]
PD#SWPL-223334

Problem:
sync 5.15 lcevc to 6.12

Solution:
sync 5.15 lcevc to 6.12

Verify:
s7d

Change-Id: Ife432ccc2c8be5052d9c2e0615ed716cf6a3768e
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2025-08-22 08:09:45 -07:00
Doosan Baek fc72a77dd3 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>
(cherry picked from commit aee0ed53b6)
2025-08-21 19:39:31 -07:00
Doosan Baek 809837677b 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>
(cherry picked from commit 29fe9c3b05)
2025-08-21 19:39:24 -07:00
Doosan Baek fb26a7369a KL: add etsi challenge-response function [1/1]
PD#SWPL-149012

Problem:
KL driver should be able to check
if KL's fuse is okay without M2M or descrambler in REE.

Solution:
add etsi challenge-response function

Verify:
T5D

Change-Id: I8492896086ba3e6e4701ee4511794e803ed6d900
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
(cherry picked from commit d7d4979d9d)
2025-08-21 19:39:11 -07:00
Xiangyu Cai 44c2c587c1 frame_lock: sync code [1/1]
PD#SWPL-226563

Problem:
sync code

Solution:
fix code

Verify:
t5m

Change-Id: Id8fec606a4cf7dadbe4df7295769f3bb659fc235
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2025-08-21 19:32:42 -07:00
Jianxiong Pan 623502fb52 mm: sync memory related patches from 5.15. [1/1]
PD#SWPL-225609

Problem:
sync memory related patches from 5.15.

Solution:
sync memory related patches from 5.15.

Verify:
local;

Change-Id: I010fa5dc436d486bc46b7d49f8e0b32057c05ac7
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-08-20 09:08:02 -07:00
lizhi.hu 42c423017c eDPTX: fix resume link training [1/1]
PD#SWPL-226583

Problem:
link training failed when resume

Solution:
fix

Verify:
t7_an400

Change-Id: I28898fad70eddf190201f00a4eddaf27bb077720
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2025-08-20 09:06:54 -07:00
Evoke Zhang e4d3f53736 lcd: add frame change debug test support [1/1]
PD#SWPL-224872

Problem:
need support frame change test for debug

Solution:
add frame change debug test support

Verify:
ay301

Change-Id: I1e0d9f1707a4aa9eba8ac28b3d4da7d012956cee
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2025-08-20 02:13:14 -07:00
Mingyen Hung 02e14860d3 cryptodev: support HMAC [1/1]
PD#SWPL-226830

Problem:
Need to make cryptodev support HMAC

Solution:
1. Add new ioctl to support HMAC from kte
2. Not support state export and import now.
3. All data should be sent once.

Verify:
1. S7 + bh201 + kernel 5.15

Change-Id: Ie2acd1bcd3b8f319a3bbfbcd612b08bd5783b4c9
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
(cherry picked from commit 0751e1018df03d6d37a46f6e5e5b1077bbdac617)
2025-08-18 08:40:04 -07:00
zhicheng.huang 628cb19270 dvb_extern: add i2c interface(V1.31) [1/2]
PD#SWPL-213861

Problem:
reduce dependence on kernel interfaces

Solution:
1.add i2c interface
2.VER V1.31

Verify:
t5m, s7

Change-Id: Ic388e569d7885cfa53467a27b7be36f7e5fb8307
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2025-08-18 08:38:36 -07:00
congyang.huang 15e81d58e7 hdmitx: clean validate vmode [1/1]
PD#SWPL-216213

Problem:
need clean validate vmode for hdmitx

Solution:
1.move viu_mux flow from validate_vmode to get_viu_mux
2.move vout_device flow to post_enable
3.move vmode setting flow from validate_mode to encoder_atomic_check

Verify:
s7d t7c

Test:
DRM-TX-151

Change-Id: I7c7670feb3411745414f5074430049e59d94c28c
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2025-08-16 22:55:15 -07:00
jinbing.zhu cf874db493 hdr: sync 5.15 to 6.12 with modify to use hdr y hist [1/1]
PD#SWPL-213193

Problem:
sync hdr tmo use hdr y hist for 6.12

Solution:
sync hdr tmo use hdr y hist for 6.12

Verify:
t5m

Change-Id: Ib97bf7e3b58648cc8f9b120b7f7fe3f262611e64
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2025-08-13 04:41:53 -07:00
can.zhang f397d47340 prime_sl: update 16 code [1/1]
PD#SWPL-217316

Problem:
No prime_sl support

Solution:
Add prime_sl support

Verify:
Verified on s6/sc2/s7d

Change-Id: I635c0935f71d7087ab413648d905db7173ebd8a6
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2025-08-13 04:41:10 -07:00
xiang.wu1 5de01883b8 hdmitx: config enc clk for vsync when pre enable mode failed [1/1]
PD#SWPL-179911

Problem:
When hotplug interrupts frequently occur, the hpd may be
detected as low during pre_enable_mode, and pre_enable_mode
may fail, resulting in no vsync and long-term lag.

Solution:
When pre_enable_mode fails, configure enc clk to ensure vsync

Verify:
s7d

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

Change-Id: I67d67c6260f8918004f8c7153fff4a0affa4d901
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2025-08-11 13:14:14 -07:00
Xindong Xu 71a757690c reboot: add reboot reason to enter factory mode [1/1]
PD#SWPL-208146

Problem:
add reboot reason to enter factory mode

Solution:
add reboot reason to enter factory mode

Verify:
local

Change-Id: I5bdc66112107f51b05d4c0b9c28ae63f29983970
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
2025-08-11 06:21:10 -07:00
qinghui.jiang a5200d1ca4 amvecm: add more flow for dv pq bypass [1/1]
PD#SWPL-225920

Problem:
add more flow for dv pq bypass.

Solution:
add more flow for dv pq bypass.

Verify:
s905x5

Change-Id: I652068fa6be7895a2dde4d312175993561ef534e
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2025-08-11 06:19:54 -07:00
qinglin.li 0191da66bc upgrade: common16-6.12 upgrade by July 23 [1/4]
PD#SWPL-223950

Problem:
update include/linux/upstream_version.h
fix conflict

Solution:
AML_KERNEL_VERSION      10
UPSTREAM_VERSION        "dd35623c836a"
AML_PATCH_VERSION       "dd35623c836a"
MERGE_DATE              "2025-07-25"

Verify:
local

Change-Id: Id6c57206aa49ec95667f25c936a69956bece6c4f
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-08-06 20:30:04 -07:00
qiyao.zhou 10d4209c7c buf_mgr: Separate buffer manager from DI process [1/1]
PD#SWPL-204336

Problem:
Separate buffer manager from DI process.

Solution:
Separate buffer manager from DI process.

Verify:
S7D

Change-Id: I62e3c7199fc6b98f1bd71d91408b8bd665f82e81
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2025-08-05 18:31:41 -07:00
Evoke Zhang bac0653634 lcd: add dphy set data support [2/2]
PD#SWPL-223996

Problem:
need support lcd dphy set data always high or low

Solution:
add lcd dphy set data always high or low support

Verify:
ay301

Change-Id: I3918f2254c131d00d7adfb17b40156a6529398dd
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2025-07-31 07:17:44 -07:00
qinglin.li 641b58e560 ddr_bandwidth: fix build error [1/1]
PD#SWPL-225640

Problem:
fix build error

Solution:
fix build error

Verify:
local

Change-Id: Ie1e6d80f31fdca21d509fc89f4c83fa7c8fcdeef
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-07-31 05:24:09 -07:00
zhou.han 88f80feab1 hdmitx: Obtain the value of enc_idx from dts [1/1]
PD#SWPL-223360

Problem:
There are differences between 5.15 and 6.12. The value
of enc_idx should be obtained from dts

Solution:
Remove the logic of hdmitx_get_connector

Verify:
T7C

Change-Id: Ieb1b394bfcf88412ff0d66126684f987be6112e6
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2025-07-31 05:04:42 -07:00
lizhi.hu 2eea656e59 eDPTX: add support for 2-port eDP [1/1]
PD#SWPL-205218

Problem:
need support 2port eDP panel for pre-dev MS1

Solution:
add

Verify:
t7_an400

Change-Id: I3e4e7c5d7ef412ff058cf94d1e942035064f4a40
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2025-07-30 03:16:47 -07:00
Yao Jie d9981b6a30 mailbox: support DSP to ARM transmission [1/1]
PD#SWPL-181268

Problem:
DSP need to send mailbox message to ARM actively

Solution:
1. Modify mailbox driver to support DSP to ARM
transmission
2. Configure mailbox channel to support DSP to ARM
transmission
3. Add test case and mailbox command to support testing
DSP to ARM transmission

Verify:
A5_AV409
SC2-AH212
T7C-AN400
A1-A113L

Change-Id: I2fe9a067e2d94bba18ce1478c8ac016c6f890c5c
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2025-07-30 01:12:37 -07:00
jie.dai f9dfa6ff6b lcd: optimize ss parameter [1/2]
PD#SWPL-224077

Problem:
optimize lcd ss parameter

Solution:
give priority using optimized parameters

Verify:
t6w

Change-Id: Iba65adeb7f16c39fc547f8dcb48e92c0972faadf
Signed-off-by: jie.dai <jie.dai@amlogic.com>
2025-07-29 07:08:29 -07:00
Ao Xu 6a9faa4e9f drm: add dptx connector driver support [1/1]
PD#SWPL-220560

Problem:
no dptx connector driver

Solution:
add dptx connector driver support

Verify:
t7c

Test:
DRM-TX-38

Change-Id: I3315c549217fc964cfdd23e09b8243a7b43a5d9e
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2025-07-29 07:07:56 -07:00
Evoke Zhang cc465adbbd lcd: fix clk_change mistake for vmode switch [2/2]
PD#SWPL-224501

Problem:
vmode switch not change clk

Solution:
fix clk_change mistake for vmode switch

Verify:
bs311

Change-Id: Ic42035e45db46cbc696809762077dfc79a047414
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2025-07-29 05:24:45 -07:00
ruofei.zhao 3e0a527421 hdmitx: add csc delay config [1/1]
PD#SWPL-222171

Problem:
when switching from HDR to SDR, YUV422, 12bit is switched to
YUV444, 8bit via CSC, and the picture will flash a purple frame

Solution:
when switching from HDR to SDR, add CSC delay config, after 2 frames,
YUV422, 12bit is switched to YUV444, 8bit through CSC

Verify:
S905X5M

Test:
DRM-TX-78

Change-Id: I46987dc28ba5bb90766b617077b52a9321644a50
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2025-07-29 05:23:38 -07:00
congyang.huang e5dd5676a0 vout: notify loopback status for vpp [1/1]
PD#SWPL-223349

Problem:
VPP and vout writing VPP_MISC register conflict,
resulting in abnormal display

Solution:
vout notify vpp to write reg

Verify:
txhd2

Test:
DRM-OSD-55

Change-Id: I76e27382a96e3aa24b6572ef064ee53510251853
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2025-07-29 05:23:29 -07:00
Tao Zeng 1107abec0f f2fs: use amfc to support compress [1/2]
PD#SWPL-223540

Problem:
f2fs do not support compress

Solution:
1, sync drvier code from 5.15
2, use amfc to support compress

Verify:
S7D

Change-Id: Ia8ac5086a567c18179f1b83bdcbe83d59c2ffb08
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2025-07-28 03:13:30 -07:00