Commit Graph

729 Commits

Author SHA1 Message Date
Wanwei Jiang bd79bdd444 chipid: read chipid fail [1/1]
PD#SWPL-152551

Problem:
read chipid fail

Solution:
the chipid can be read by reading registers, but the register address is
set in DTS, which is prone to setting errors. It can be read through a
unified command, so there will be no previous problems.

Verify:
s905x2

Change-Id: I69b9e3236a338655e2fbc2293baa917d2c04312c
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-01-16 21:46:56 -07:00
Dezhen Wang bcfa0ee2e4 bring up: revert compatibility code for kernel 6.6 [1/1]
PD#SWPL-151245

Problem:
kernel6.6 will not distinguish different versions of kernel.
so we do not make compatibility code in 6.6.

Solution:
revert compatibility code for kernel 6.6.

Verify:
local

Test:
local

Change-Id: I24b8acac62cec05ffb2f637a86f91789f1d0b905
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-01-11 18:46:45 -07:00
hai.cao 2a321681da vpu: add vpu_top support [1/1]
PD#SWPL-152127

Problem:
add vpu_top support

Solution:
add vpu top support

Verify:
a4

Change-Id: I1f0d9e1ab58514cc1ebc4831abd314baa0f7a8f9
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-01-10 01:55:53 -07:00
Wanwei Jiang c73f5afdef module: disable module_param [1/1]
PD#SWPL-151470

Problem:
many of module parameters are no longer in use, but have not been deleted,
which affects memory and performance. all module parameters are now
disabled and can only be used after the application is approved.

Solution:
disabled all module parameters

Verify:
a4 a5

Test:
none

Change-Id: I27ee98a0437542d7b8a3da437c1525e0afded6b1
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-01-09 19:58:31 +08:00
Jianxiong Pan 37bae44b81 mm: add slab trace support. [2/2]
PD#SWPL-150034

Problem:
not slab trace.

Solution:
add slab trace support.

Verify:
local.

Change-Id: I98253cef4c59a2ee4c0b8e685e6147bd50d61c8d
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-28 19:48:12 +08:00
Jianxiong Pan 9028d0e264 mm: add memory extend support. [2/2]
PD#SWPL-150034

Problem:
add memory extend support

Solution:
add memory extend support

Verify:
local.

Change-Id: I5ca1f549005fba7c7dc16a13ecb5d1e82ac84bad
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-28 01:09:44 -07:00
Jianxiong Pan c639f92679 mm: porting CMA optimization from 5.15 [2/2]
PD#SWPL-150034

Problem:
No cma optimization on 6.6

Solution:
porting CMA optimization from 5.15

Verify:
local.

Change-Id: Ia74fd6262e903167b35bd33e3567690485df89b3
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-27 23:17:34 -07:00
Jianxiong Pan 20b22833ba mm: enable pagetrace for amlogic-6.6. [2/2]
PD#SWPL-150034

Problem:
enable pagetrace for amlogic-6.6.

Solution:
update the function interface according to 6.6.

Verify:
local.

Change-Id: I48fef620a1da21a40f38da4abe59b44d211ce015
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-28 11:03:26 +08:00
Hangyu Li 335f302fe5 tee: kernel6.6 optee linuxdriver bringup [1/1]
PD#SWPL-150080

Problem:
optee linuxdriver support kernel 6.6

Solution:
optee linuxdriver support kernel 6.6.
sync from upstream https://github.com/linaro-swg/linux.git
tag optee-4.0.0 and branch wip/optee-v6.6

Verify:
A5 409

Change-Id: I67fe2ec366528780b66060eaa62ee13fcd45f870
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
2023-12-26 04:02:48 -07:00
yiting.deng f1b6d97729 rtc: a4 and a5 rtc bringup [1/1]
PD#SWPL-149396

Problem:
a4 and a5 rtc bringup

Solution:
a4 and a5 rtc bringup

Verify:
a4_ba400
a5_av400

Change-Id: I6b12773cffcbee522d4c8d0152fea1df5ad1f497
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2023-12-22 02:19:26 -07:00
Dezhen Wang e93cf9ea7f kernel6.6: bring up fix some code problem [1/1]
PD#SWPL-150782

Problem:
bring up kernel6.6

Solution:
fix some code problem

Verify:
sc2 c2 a4 a5

Test:
local

Change-Id: I6b9affa83e6d46f6b857f4b542991bc70de4bfb5
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-12-21 00:09:33 -07:00
Yao Jie 3e50c8b359 mailbox: A4 and A5 mailbox bringup [1/1]
PD#SWPL-149443

Problem:
A4 and A5 mailbox bringup

Solution:
A4 and A5 mailbox bringup

Verify:
A4-BA409
A5-AV409

Change-Id: Id7be65a6baf621bf10e72b3a0a8ec16a21f7eeb1
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2023-12-20 01:52:30 -07:00
Wanwei Jiang b5524e8e6c kernel6.6: bring up to console for a4 and a5 [1/1]
PD#SWPL-149306

Problem:
bring up to console

Solution:
1. poritng dts from kernel5.4
2. modify build script for kernel6.6

Verify:
local

Change-Id: I41748eedb1592c01b54c0b7c4a96623df99fa5ec
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-15 18:34:04 +08:00
Wanwei Jiang 43461aec82 kernel6.6: bring up [1/1]
PD#SWPL-145682

Problem:
bring up kernel6.6

Solution:
1. porting kernel6.6
2. compatible with different kernel versions
3. bring up kernel6.6

Verify:
sc2 c2 a4 a5

Test:
None

Change-Id: Ie22af0abc8ea96261e8a8cc7804b58565aedd904
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-14 16:55:55 +08:00
sky zhou 4fb47a422e hdmitx: add kms/edid trace event [1/1]
PD#SWPL-142523

Problem:
no event for modesetting

Solution:
add kms/edid trace event

Verify:
verify on ohm.

Test:
DRM-TX-39

Change-Id: Ide543ed7928bfd94e11a520bb9401cdb543c93de
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-12-04 02:27:19 -07:00
Doosan Baek c52457801a KT: modify key clean for IV slot [1/1]
PD#SWPL-147883

Problem:
IV slot does not need cleaning.

Solution:
IV slot is not clean.

Verify:
S1A

Change-Id: Id5f9bf3b95573cacb53de2e85796b10ce96ea7be
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2023-11-29 00:33:37 -07:00
Liang Yang a856f9ff4a spi-nand: device encryption [1/1]
PD#SWPL-130883

Problem:
need to support inline partition encryption

Solution:
add support inline partition encryption in
spi nand driver

Verify:
s1a

Change-Id: Iadb9b9ae121939ef37a3abbd603a5eec17500739
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
2023-11-29 00:33:11 -07:00
mingxiu.sun 15a3f407ab vdin & hdmirx: modify colorimetry delivery method [1/1]
PD#SWPL-125462

Problem:
open the HDMI2.0 ,the color of image is changed

Solution:
add vf info for colorimetry

Verify:
t5m kernel5.15

Change-Id: I126786f130d59fe2977ad8ea46b921aadd302d67
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2023-11-28 08:19:14 -07:00
Bichao Zheng 92da8aaea5 spinand: add DS35Q2GB support [2/2]
PD#SWPL-134893

Problem:
need add DS35Q2GB support

Solution:
add DS35Q2GB id

Verify:
a1

Change-Id: I18eef2cae78a2e672ee6ea8a0b3e1bac734b53b5
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2023-11-28 02:15:14 -07:00
Feng Chen b68a304179 nand: slcnand & spinand: fix mutex deadlock [1/1]
PD#SWPL-142875

Problem:
deadlock will happen in mark bad block process.

Solution:
add rsv-ops interface in rsv-manage to avoid deadlock.

Verify:
c3

Change-Id: I3841a8d3ca8c8f48142828b03ba9aefdf21adc62
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2023-11-27 20:09:21 -07:00
yao liu 47d848537b amdv: hdmi in top1+top2 idk case [1/1]
PD#SWPL-141054

Problem:
hdmi in top1+top2 idk case fail

Solution:
1.add top1 rdmif config for hdmi
2.modify chroma fmt to p444 for hdmi
because vdin dw is 444-10
3.support variable_fps
4.update hist read id only when vf content changed, to match
hist delay with cmodel

Verify:
t3x

Change-Id: Ib5a9bbb266d2105f4729afa12347ee8eb80fae3a
Signed-off-by: yao liu <yao.liu@amlogic.com>
2023-11-24 16:39:06 -07:00
shufei.zhao 92ffe3e6aa unifykey: auto attach after flash probe [1/1]
PD#SWPL-143927

Problem:
unifykey ready too late

Solution:
attach after flash probe

Verify:
g12b

Change-Id: I637874304ea70f34074d32ac08c4728a1b80cef8
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
2023-11-21 22:39:17 -07:00
Huijuan Xiao 51f15ed7a3 aipq: t5m support aipq [1/1]
PD#SWPL-138322

Problem:
t5m support aipq.

Solution:
add t5m aipq flow.

Verify:
t5m

Change-Id: Iaf01c6edb512bbea01ebedeedd770869a25b7ad4
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2023-11-17 04:23:35 -07:00
chen.xu 7e0a996ccb uvm_aipq: need modify for aipq of GPU [1/6]
PD#SWPL-138653

Problem:
need modify for aipq of GPU.

Solution:
modify for aipq of GPU.

Verify:
T5M

Change-Id: I2703b3bba282eae827255793e9a94b659b37dc37
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-11-17 04:23:30 -07:00
Jian Cao 56be7cb185 media: delay clk/power/irq init for ge2d/dewarp [1/1]
PD#SWPL-144572

Problem:
dewarp/ge2d interrupt resource usage between RTOS and Linux

Solution:
To avoid interfering with RTOS clock/power/interrupt resources,
turn on and keep power/clk first.
Poll the status of rtos,
then turn off power/clk and register interrupt.

Verify:
T7C

Change-Id: Ie2a3ae61df97c594324ffb3dde68d41250c946e3
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2023-11-16 22:11:17 -07:00
ruofei.zhao 19abf54369 hdmitx: add SVD_VIC to store SVD in VDB [1/1]
PD#SWPL-145586

Problem:
When the vic of VSDB is stored first, the vic of video data block
is inserted at the end, and an error occurs in 420 capability map

Solution:
add SVD_VIC, used to store SVD in VDB, mapped with 420 CMDB

Verify:
S5/AX201-S928X

Test:
DRM-TX-44

Change-Id: I18b42e9c304b01b6712d9640f4bc08020595f305
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2023-11-16 20:15:33 -07:00
Nanxin Qin e8045f9b34 media: CF1 Adds debugfs for codec status management. [1/1]
PD#SWPL-145646

Problem:
Adds debugfs for codec status management.

Solution:
Add codec state module, mainly collect and
manage codec status information, and facilitate
the management of the configuration of each module.

Verify:
ohm

Change-Id: I8f877a954f9873c4aa4d632e007a67c0a41ff2b1
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2023-11-15 20:27:47 -07:00
yahui.liu 9198211c96 hdmitx: update hdmitx version [1/1]
PD#SWPL-142528

Problem:
update hdmitx version for release.

Solution:
update hdmitx version

Verify:
verify on ohm

Test:
DRM-TX-40

Change-Id: I8ba7e32e165b6a45cd0a30d9ab8e4494ac333475
Signed-off-by: yahui.liu <yahui.liu@amlogic.com>
2023-11-15 03:07:29 -07:00
donghui.wang 9593ac7960 ldim: fix power on duty on kernel [1/1]
PD#SWPL-144978

Problem:
duty change when enter kernel

Solution:
keep duty until get level_idx

Verify:
t3x bc302

Change-Id: I747f6389420d367d34e009f4758110ae49a28220
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-11-13 20:37:36 -07:00
hang cheng c04b4575db hdmitx: not clear edid when suspend [1/1]
PD#SWPL-144627

Problem:
when kernel goes to early suspend, need keep the edid data

Solution:
Keep edid data during the suspend state. If there is HPD in
early suspend, there will update the EDID in the bottom of
hpd ISR

Verify:
ohm

Test:
DRM-TX-38

Change-Id: If1975a68da8c7431bb7867359bc5368b37dbc1f3
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-11-13 02:59:19 -07:00
lele xiang 79835ce49e decoder: CF1 decoder transfer fcc flag to DI. [1/2]
PD#SWPL-144474

Problem:
For fcc,don't need keep di_multi memory

Solution:
Decoder transfer fcc flag to DI.

Verify:
ohm

Change-Id: I37d1da0dc5c99dd086ee1291d403525a009bc64b
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2023-11-13 00:02:52 -07:00
rong.quan 04275ad21a common: CB2 fix typo error . [1/1]
PD#SWPL-144466

Problem:
function name has typo error.

Solution:
fix typo error.

Verify:
ohm

Change-Id: I89e3d79da8ada1d445bc0e5a32b7502baaef3b46
Signed-off-by: rong.quan <rong.quan@amlogic.com>
2023-11-13 00:01:39 -07:00
zhikui.cui 6996aaf408 nand: support driver for T5D [1/1]
PD#SWPL-129598

Problem:
need support nand driver for T5D bringup

Solution:
select FixDiv2PLL clock source in module

Verify:
AM301_T950D4

Change-Id: Ida6b579062937fc3089583de300a69ec8ddfde91
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2023-11-10 08:17:22 -07:00
Gaowei Zhao 9dd6f6e994 hdmirx: dual hdmi input [1/1]
PD#SWPL-134200

Problem:
new feature,dual hdmi input on t3x

Solution:
add code

Verify:
t3x

Change-Id: Ic51e37520a752e122deb7f5ef885456e1ab49781
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2023-11-10 06:47:06 -07:00
jian zhou 39b14aea33 audio: reset hpd when earc resume [1/1]
PD#SWPL-145468

Problem:
when suspend & resume, heartbeat lost,so earc disconnected

Solution:
when resume, reset hpd for earc discovery.

Verify:
t5m

Change-Id: I522108773d1f0262b2503e9c48126bd043184ea2
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2023-11-10 02:06:07 -07:00
jintao xu 28735aa3a3 di: free buffer when REG_STEP1 [1/1]
PD#SWPL-137948

Problem:
fcc 3 channel has di buffer

Solution:
free buffer when REG_STEP1

Verify:
sc2

Change-Id: I921fece2180357c6fb986a459475081a15239d20
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-11-10 02:05:23 -07:00
yufei.huan bcb0e2ba8f deinterlace: di prelink frc splash screen [1/1]
PD#SWPL-143172

Problem:
Splash screen when switching resolution

Solution:
Determine the output to screen ratio setting prehold

Verify:
T5m

Change-Id: I8c027e107287e5583923dcb271b1810fe00112ab
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2023-11-09 23:01:11 -07:00
lizhi.hu a7a934b019 lcd: support 4lane edp panel [1/1]
PD#SWPL-143094

Problem:
add support for 4 lane edp panel

Solution:
enable enhanced frame by DPCD

Verify:
t7_an400

Change-Id: I534eb2d0dbab9f38a99968a2e3a8ab16598a1e64
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2023-11-08 00:39:29 -07:00
linfang.zhao d44cc4a246 drm: add mute plane interface [3/3]
PD#SWPL-143936

Problem:
show or hide video does not work

Solution:
add mute plane interface

Verify:
AP222

Test:
DRM-OSD-111

Change-Id: Ib5898c9a0bc3201d397a3a33a9c073f0799c3aee
Signed-off-by: linfang.zhao <linfang.zhao@amlogic.com>
2023-11-07 04:51:50 -07:00
xiang.wu1 da7016341e hdmitx: check the box frl capability [1/1]
PD#SWPL-143972

Problem:
when clac_tmds_clk > max_tmds_clk, only check whether
the edid support frl, not check the box frl capability

Solution:
add check the box frl capability

Verify:
s905x4

Test:
DRM-TX-42

Change-Id: I502b130c7fc613d020566af35438465c52ee3b60
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-11-07 02:09:10 -07:00
Song Zhao 84bd527247 msync: sync driver from 5.4 [1/1]
PD#TV-98016

Problem:
5.15 has old driver version.

Solution:
Back port some of the missing change from 5.4 and add CL370123

Verify:
T3X + RDK

Change-Id: I15c7d3bdb1e87aa95aaa4e8238bc4dcd2b5287b6
Signed-off-by: Song Zhao <song.zhao@amlogic.com>
2023-11-06 23:37:49 -07:00
jinbing.zhu d0123a3d3f amvecm: add amvecm ai color enable control ioctl [1/1]
PD#SWPL-144175

Problem:
add new ioctl

Solution:
add new ioctl

Verify:
t3x

Change-Id: I3a4f8eb446059f940bfce3c97b7800f8c90baf0c
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2023-11-06 04:33:31 -07:00
zongdong.jiao b74f7746bb hdmitx21: add qms-vrr function [1/1]
PD#SWPL-137039

Problem:
Lack qms-vrr function

Solution:
Add qms-vrr function

Verify:
t7/an400

Test:
DRM-TX-17

Change-Id: I8aff33d9cf2db80c5b82310d8dd4531d5d32b288
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-11-03 01:05:11 -07:00
Long 482b6555d3 G12a: sdio and sdcard use time-sharing multiplexing. [1/1]
PD#SWPL-133324

Problem:
not support time-sharing multiplexing function.

Solution:
enable time-sharing multiplexing function.

Verify:
g12a_u212

Change-Id: I78392775c01b6b58aaf224b47537669bfe7737e1
Signed-off-by: Long <long.yu@amlogic.com>
2023-11-01 20:38:03 -07:00
Long 89c6649032 G12a: enable emmc/sdcard/sdio. [1/1]
PD#SWPL-133324

Problem:
not support emmc/sdcard/sdio function.

Solution:
enable emmc/sdcard/sdio function.

Verify:
g12a_u211

Change-Id: Ifa30eb5b7d2b3f9f817576290fd154ebf59ea9d7
Signed-off-by: Long <long.yu@amlogic.com>
2023-11-02 11:15:49 +08:00
Xingxing Wang 195a41ef95 thermal: add media cooling device on txhd2 [1/1]
PD#SWPL-141014

Problem:
txhd2 need to add media related thermal control

Solution:
1. add media cooling device. media module should call
media_cooling_register to register the cooling device.
and usually configure maxstate of the cooling device.
2. reconstruct cpucore cooling device.

Verify:
txhd2

Change-Id: I0576e0d91a3062b60f877a4e8577e4fe84e5f53b
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-10-30 20:03:42 -07:00
zongdong.jiao 32a2031511 hdmitx21: add sbtm packet sendout func [1/1]
PD#SWPL-142695

Problem:
add sbtm packet sendout func

Solution:
add sbtm packet sendout func

Verify:
s5/ax201

Test:
DRM-TX-17

Change-Id: I3479412e30415e0a6cf47e233e1c0b78460759fb
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-30 04:08:59 -07:00
zongdong.jiao ddc17be80e hdmitx: cleanup the bool return value in edid [1/1]
PD#SWPL-141768

Problem:
cleanup the bool return value in edid

Solution:
cleanup the bool return value in edid

Verify:
sc2/ah212

Test:
DRM-TX-17

Change-Id: I05ab9f8a5d20c457178349f7400f4ccb6e009d20
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-30 03:59:50 -07:00
Chuan Liu 9ecf96e6a7 clk: g12a/g12b/sm1: lost gen_clk [1/1]
PD#SH-16937

Problem:
gen_clk is missing from the clock tree.

Solution:
added

Verify:
g12b

Change-Id: I66f2bd0b98ba0e4f05bb502ea72fe6b64ac45887
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-10-30 02:27:46 -07:00
Pengcheng Chen 745da85bd6 vpp: set vd1_vd2_mux according dts cfg [1/1]
PD#SWPL-143084

Problem:
vd1_vd2_mux set error

Solution:
set vd1_vd2_mux according dts cfg

Verify:
t5db

Change-Id: Ie1b8fd9a9e158f336559b6925612d624a85bf807
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-10-29 22:19:39 -07:00