Commit Graph

1119 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
Qianggui Song ede7c11019 dtb: t6w: add device tree to bringup [1/1]
PD#SWPL-227611

Problem:
Bringup t6w for kernel 6.12

Solution:
Add and modify files to bringup kernel 6.12 for t6w

Verify:
t6w_bs311

Change-Id: I423dafe205b2fd317780f9185253eca9ff94a8e5
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2025-08-15 01:12:25 -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
jinbing.zhu 832befe05d amvecm: new ioctl cmd for get force output [1/1]
PD#SWPL-220920

Problem:
new ioctl cmd for get force output.

Solution:
add new ioctl cmd and flow.

Verify:
t5w

Change-Id: Iae3b1752457b1543291b4cb263a7d0a171f453f4
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2025-08-11 13:13:53 -07:00
can.zhang 4715acc1fb amdv: add policy ioctl [1/1]
PD#SWPL-221572

Problem:
need add ioctl

Solution:
add code

Verify:
Verified on local

Change-Id: I3a8b802bfe2a05fb60ab92e9b79fe4334655fb12
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2025-08-11 08:56:43 -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
jing.li1 1c5cbd8f71 dvb: include standard linux dvb header files [1/1]
PD#SWPL-215766

Problem:
not support standard linux dvb header files

Solution:
include standard linux dvb header files

Verify:
t6w

Change-Id: If04996c3605b0d7f57f04ddc4b3569b149e22fb2
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2025-08-11 06:20:20 -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
Ao Xu 9da8ecfc07 drm: add connector id in DRM_IOCTL_MESON_TESTATTR ioctl [1/1]
PD#SWPL-218705

Problem:
DRM_IOCTL_MESON_TESTATTR ioctl has no connector id

Solution:
add connector id in DRM_IOCTL_MESON_TESTATTR ioctl

Verify:
s7d

Test:
DRM-OSD-5

Change-Id: If179dd0a252e2ad1578bef46b156916cd5522a4f
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2025-08-11 02:33:16 -07:00
yaoyu.xu 78e7f34c7f hdmirx: Fix some dsc special case [1/1]
PD#SWPL-208493

Problem:
some dsc special case can not display normal.

Solution:
add negative vsync support.

Verify:
t3x

Change-Id: I57e77423a8237378d8c6a0364b7fef9190b7a488
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2025-08-09 14:05:15 -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
hongyu.chen1 365b7ba1d1 T6W: port power domain. [1/1]
PD#SWPL-225104

Problem:
The code configuration of K5.15
and K6.12 is different.

Solution:
add power domain config.

Verify:
t6w

Change-Id: Iba39d9a58f619e8d31b1e476a1ce970f1a8c4a5c
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2025-07-30 03:17:15 -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
jialong.jiang 955d6a6856 amdv: add gd control interface. [1/1]
PD#SWPL-220376

Problem:
add gd control interface.

Solution:
1.upper layer can use DV_IOC_SET_DV_GD to open and close gd.
2.driver can use the following command to open and close gd:
echo global_dimming 0/1 > /sys/class/amdolby_vision/dv_pq_info

Verify:
T6W

Change-Id: I7ddce412a02b6389b330ce58d157309b806a77a6
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2025-07-22 23:04:38 -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