Commit Graph

936 Commits

Author SHA1 Message Date
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
Ao Xu 49216de422 meson_tx_connector: add dptx and hdmitx new driver [1/1]
PD#SWPL-220560

Problem:
add dptx and hdmitx new driver

Solution:
add dptx and hdmitx new driver

Verify:
s7d

Test:
DRM-TX-38

Change-Id: I67bd41a05f2a047fdb01dd341e9db85e2ec9fd9a
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2025-07-28 01:20:00 -07:00
qiankun.wang c6c1a57139 IOTM: sync kernel5.15 code [1/1]
PD#SWPL-203987

Problem:
sync kernel5.15 code.

Solution:
IOTM: Fix coverity issue [1/1]
IOTM: enlarge iotm record size [1/1]
iotm: Fix coverity issue [1/1]
IOTM: stop iotm when irq has abnormal [1/1]
IOTM: data is out of bounds [1/1]
IOTM: enable iotm on t6w [1/2]

Verify:
T6D

Change-Id: I87712d26d9e6d2f062a08dd0e4bc3e8586b34a03
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2025-07-27 22:09:09 -07:00
jing.li1 56b237cddf Demux: Demux driver supports 16G memory [1/1]
PD#SWPL-176906

Problem:
Demux driver need to support 16G memory

Solution:
Update demux driver to support 16G memory

Verify:
Verified on s6

Change-Id: If6d80a9be5c33bfda0310e2f5d6771448c7d9c68
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2025-07-27 22:08:21 -07:00
mingyang.he 3f1e8d80f0 drm: add write permission for uvm buffer for kernel 6.12 [1/1]
PD#SWPL-221231

Problem:
add write permission form uvm buffer

Solution:
add write permission form uvm buffer

Verify:
t6d

Test:
DRM-OSD-36

Change-Id: I10260c456a45531c74078b12810c6a510f17272f
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2025-07-24 19:31:47 -07:00
Jian Cao d2e59724b5 amdv: optimize dma time cost [1/1]
PD#SWPL-219628

Problem:
Video artifacts in vpp low latency mode

Solution:
optimize dma time cost

Verify:
s7d

Change-Id: Iccf16486b84bd26c652ab0201317b5e5c961a3a5
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2025-07-24 19:31:23 -07:00
jiabin.chen 0370f1b06c wifi: add pwm 32k start or stop api [1/1]
PD#SWPL-223442

Problem:
wifi module api for start or stop wifi 32k

Solution:
add pwm 32k start or stop api

Verify:
ross

Change-Id: Ie3826ec93652e011d5802af508ff134c6253e761
Signed-off-by: jiabin.chen <jiabin.chen@amlogic.com>
2025-07-23 05:37:14 -07:00
Haotian Guo 4a0a978530 tvafe: sync 5.15 code [1/1]
PD#SWPL-222460

Problem:
sync 5.15 code

Solution:
sync 5.15 code

Verify:
t5m

Change-Id: Ia5138e6f1975ab479acf0abd03f23d6ef70581bb
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2025-07-23 02:13:59 -07:00
Tao Zeng 63b4ca630c amfc: sync driver from 5.15 [1/2]
PD#SWPL-223138

Problem:
amfc driver is too old compared with 5.15

Solution:
sync it from 5.15

Verify:
S6

Change-Id: Ia405e1ec397c2b06782126488f3a8171f234c9ec
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2025-07-23 00:31:33 -07:00
jie.dai e674b2523a lcd: QMS/QMS+ sw_vrr [1/1]
PD#SWPL-217442

Problem:
QMS dynamic framerate switch flicker

Solution:
implement QMS/QMS+ by sw vrr

Verify:
T5M

Change-Id: I4668dfba02c4aaedea4baaf2b3875d9a3df78d03
Signed-off-by: jie.dai <jie.dai@amlogic.com>
2025-07-22 23:17:52 -07:00
jie.dai 5d1a8a0680 lcd: fix vbyone flash when frame_rate change [1/1]
PD#SWPL-220372

Problem:
panel will flash by vbyone reset when frame_rate change(clock changed)

Solution:
1.do not reset vbyone if PLL multiplier don't change
2. remove LCD_CLK_PLL_RESET, it repeats the LCD_CLK_PLL_CHANGE

Verify:
t6w

Change-Id: I8f8745c511b16aa8bc9b36957e906fa8fd731c43
Signed-off-by: jie.dai <jie.dai@amlogic.com>
2025-07-22 23:04:48 -07:00
Evoke Zhang c7406a1897 lcd: support more ioctl cmd for get panel info [1/1]
PD#SWPL-222608

Problem:
1.need sync lcd config ready state
2.need get lcd interface type

Solution:
add lcd config ready and get interface cmd

Verify:
ay301

Change-Id: I18890b604ad4df3ccc7f995de34423f4380c589a
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2025-07-22 20:01:19 -07:00
zijie.hong 4f61c0ab24 vdin: sync code from k5.15 [1/1]
PD#SWPL-222264

Problem:
WSS can not work

Solution:
1) driver sync code from 5.15
2) app auto insmod ko

Verify:
TXHD2

Change-Id: I8cb8333cdfd7b478eaaace58bc98c178b18816e9
Signed-off-by: zijie.hong <zijie.hong@amlogic.com>
2025-07-22 20:01:13 -07:00
zhikui.cui 3e54277a4e NAND: refactor NAND rsv module [1/1]
PD#SWPL-193926

Problem:
Linux-5.15 rsv module refactor

Solution:
1.support rsv partition from dtb、cmdline、default.
2.support adaptive Uboot added rsv partition
3.optimization rsv message log
4.prune the code and remove unnecessary code

Verify:
T6D

Change-Id: I7d452e97671a85f9d50e8ebc8dd68415bb193ebd
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2025-07-21 03:15:56 -07:00
Ao Xu b0bd34746d hdmitx: fix header file reference issue in multi directory [1/1]
PD#SWPL-222968

Problem:
same header file compile fail

Solution:
change BUILD.bazel header rules

Verify:
s7d

Test:
DRM-TX-38

Change-Id: I01b36bc3bc6f6d572367ff3ea7ddf1bbfcc8cf9f
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2025-07-16 21:01:11 -07:00
wenlong.zhang 544ddb67ea drm: add status trace log and fix the rdma irq_cb is incorrect [1/1]
PD#SWPL-210501

Problem:
1.add debug trace to check drm status
2.rdma irq_cb is incorrect for multiple vpp, which always choose
the last one

Solution:
1.add debug trace to check drm status
2.fix problem of the rdma irq_cb is incorrect

Verify:
s7d

Test:
DRM-OSD-99

Change-Id: I9678513e6f07282fef94e0b8c5066c186c3f5826
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2025-07-16 21:00:37 -07:00
qinglin.li 39e602cd1b upgrade: common16-6.12 upgrade by July [1/3]
PD#SWPL-221547

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

Solution:
AML_KERNEL_VERSION      9
UPSTREAM_VERSION        "eb58d7821a70"
AML_PATCH_VERSION       "eb58d7821a70"
MERGE_DATE              "2025-07-18"

Verify:
local

Change-Id: I7e188c33c2f4213bad29bf25e1e8425c921ce535
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-07-16 20:38:10 -07:00
Huqiang Qin c5d8293675 watchkey: Add Watch-Key driver [1/1]
PD#SWPL-222162

Problem:
After power on, key need to be continuously detected.

Solution:
Add Watch-Key driver unified management.

Verify:
T5M/AY301 T6D/BR301

Change-Id: Ifb46bbb3b9b077c94341e2f70bdd934bcd6ec4b4
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2025-07-16 05:58:21 -07:00
hai.cao 7f1c8d030d vpu: sync vpu code from 5.15 [1/1]
PD#SWPL-221651

Problem:
sync vpu code from 5.15

Solution:
sync vpu code from 5.15

Verify:
t6w

Change-Id: Ic3c03ba5657a08ae1a3c404cf8cba83b1992ac2e
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2025-07-16 05:57:45 -07:00
Wanwei Jiang 3d597dbf9a dmc: add get_vpu_bus_num() for sideband [1/1]
PD#SWPL-218353

Problem:
other modules are unable to determine how many VPU buses this chip has

Solution:
add get_vpu_bus_num() for sideband

Verify:
local

Change-Id: Iccd1e2dc157fae98efa57df0b3543e06f779ead4
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-07-15 05:37:27 -07:00