Commit Graph

683 Commits

Author SHA1 Message Date
mingxiu.sun 0150bfa426 vdin: Provides vdin1 hist values for the upper layer [1/1]
PD#SWPL-135475

Problem:
txhd2 vdin1 hist uses the vdin0 hist register

Solution:
Open the clk of vdin1 and configure the hist related register

Verify:
txhd2

Change-Id: If86d6fbfd7a760e1a51db98aecce9c37c685687e
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2024-01-19 23:06:58 +08:00
yongbing.he bcbbfd82e2 freertos: freertos featrue reorganize [2/2]
PD#SWPL-140884

Problem:
c3 not freertos notifiers
c3 need ipi send

Solution:
c3 add freertos notifiers config
c3 add ipi send config

Verify:
c3

Change-Id: I8f624cdf329880cb5a0e01ba83cc93119938b509
Signed-off-by: yongbing.he <yongbing.he@amlogic.com>
2024-01-19 23:06:17 +08:00
Bichao Zheng d33d0a1e0b spinand: update info page [1/1]
PD#SWPL-140211

Problem:
need update spinand info page.

Solution:
update new info page, for compatibility with A1 S1A C3.

Verify:
A1 S1A C3

Change-Id: I73ce561dc716aedd18ac2887af00fa912818794b
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2024-01-19 23:06:17 +08:00
Xingxing Wang 31b73819fc thermal: add more registers control in ddr cooling [1/1]
PD#SWPL-139694

Problem:
add more regs control in ddr cooling device

Solution:
add more regs control in ddr cooling device

Verify:
txhd2

Change-Id: I99c978d2034b3dcf01239752ce1a112f8e07afce
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-01-19 23:00:35 +08:00
yaoyu.xu f2f7b05174 hdmirx: add support for 240p [1/1]
PD#SWPL-139463

Problem:
add support for 240p.

Solution:
add support for 240p.

Verify:
txhd2

Change-Id: Id2a0e2dec3aad54143cf78a7ce9fbae0568291d0
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-01-19 22:54:31 +08:00
yaoyu.xu 5c52b715ef hdmirx: t3x reb bring up [1/1]
PD#SWPL-136712

Problem:
1.add support for 5k 8k.
2.frl flow.
3.frl overlap.

Solution:
t3x sw flow.

Verify:
t3x

Change-Id: I4aeb0b6fff064db89a13b2f1454ad7cb95e8ed50
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-01-19 20:52:47 +08:00
Xingxing Wang d3d8793e29 thermal: modify ddr control point [1/1]
PD#SWPL-125800

Problem:
ddr test

Solution:
modify ddr temperature control point

Verify:
txhd2

Change-Id: Icab99c885673981577e0545a8fbe5191f49f2e07
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-01-19 20:39:22 +08:00
qiang.liu fe8e739d1c dsc_dec: add dsc_dec bringup [1/1]
PD#SWPL-117267

Problem:
not dsc_dec function

Solution:
add dsc_dec bringup

Verify:
T3X

Change-Id: I36ccbe87c9773af8ce08dc2b122d41a7924000f1
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2024-01-19 20:39:05 +08:00
Bichao Zheng 83dbb57da9 nand: s1a nand partition confirmation [1/3]
PD#SWPL-137498

Problem:
1. need get partition from env
2. need get rsv info from env

Solution:
1. get partition from cmdline
2. get rsv info from cmdline

Verify:
s1a

Change-Id: I5de9ca2479d60ce0c24698abda1b01403be4c283
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2024-01-19 20:37:49 +08:00
Gaowei Zhao fab849c568 hdmirx: support iMax mode [1/1]
PD#SWPL-137268

Problem:
not support iMax mode

Solution:
parse iMax flag from VSIF packet

Verify:
T5W

Change-Id: I3b1c52f132e47d825cf086473c6c60af44c5045f
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-01-19 20:37:30 +08:00
qiang.liu d87274dfe0 vdin: if fmt is null send nosig [1/1]
PD#SWPL-137116

Problem:
fmt is null vdin send unstable will black screen

Solution:
if fmt is null send nosig

Verify:
txhd2

Change-Id: I482068d6bbc6aeb867c6c59528d9d8edf3dd79dd
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2024-01-19 20:31:24 +08:00
Wanwei Jiang 54f637c81e 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: I2019a7b8201dedec1f71a1edf09f9b51b730f5c2
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2024-01-17 19:22:35 +08:00
congyang.huang 7801be4b3d vout: move vout ioctls to uapi [1/1]
PD#SWPL-134166

Problem:
move vout ioctls to uapi

Solution:
move vout ioctls to uapi

Verify:
T5W

Change-Id: Idcb298b99738883cbb9b5e6486248fa698fbfb33
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-01-16 19:58:18 +08:00
Xiangyu Cai 485ff8f87b vrr: change delay line when vpp crop [1/1]
PD#SWPL-147349

Problem:
vpp crop caused blurred screen

Solution:
change vrr delay line when vpp crop

Verify:
t3x

Change-Id: Iecda72b8be18883bd7eb6636b634f8eff5a3e5fb
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-01-16 15:41:05 +08:00
Nanxin Qin 38d6895fb9 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>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2024-01-16 15:34:14 +08:00
Hanjie Lin d51eb0e286 vmap: protect and alloc harder vmap pages [1/1]
PD#SWPL-153716

Problem:
vmap alloc fail cause crash

Solution:
add vmap cache size
add retry when vmap alloc failed

Verify:
t5m

Change-Id: I975022ff1b46938207d4911fb3199bab7dd7c135
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2024-01-15 13:59:28 +08:00
Wenjie Qiao d0d074f16a hdmitx: add efuse ctrl [1/1]
PD#SWPL-133056

Problem:
lack efuse ctrl hdmitx

Solution:
add efuse ctrl hdmitx

Verify:
s1a/sc2/t7

Test:
DRM-TX-87

Change-Id: I2c5438e841fc50a3dabed98d3bca51c3ac726f94
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-01-10 13:51:24 +08:00
ruofei.zhao a3906f035b hdmitx: fix hdmitx DDC GPIO level interface [1/1]
PD#SWPL-149201

Problem:
DDC's SDA and SCL are always LOW

Solution:
fix hdmitx DDC GPIO level interface

Verify:
S4

Test:
DRM-TX-54

Change-Id: I304167eae488d98358807d1cac63911428fa22c1
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2024-01-09 16:42:09 +08:00
xiang.wu1 73801210a4 hdmitx: Adjust the disable phy timing during mode switching [1/1]
PD#SWPL-144353

Problem:
During the mode switching process, when systemctrl writes the
node to close phy, the phy action is to close it immediately.
At this time, part of the video data may have been transmitted,
but the data is incomplete. At this time, rx got part of the image.
Some TVs did not perform frame dropping processing after getting part
of the data and parsed it, but the solution was wrong, which may
cause some display abnormalities.

Solution:
Referring to the processing method of the Apple box,
during the mode switching process, when systemctrl issues
a shutdown phy command, we will wait until vsync is
interrupted before shutting down the phy. At this time,
there is no video data transmission, which is relatively safe.

Verify:
ohm/T7

Test:
DRM-TX-67, DRM-TX-78, DRM-TX-79, DRM-TX-80, DRM-TX-81

Change-Id: I25162448f6d8f432bc48e0e038bac9a108bf8151
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-01-03 20:12:02 +08:00
shipeng.sun a300644537 resourcemanage: Add res_sys_debug node to report debug level [3/4]
PD#SWPL-145651

Problem:
Add res_sys_debug node to report debug level

Solution:
Add res_sys_debug node to report debug level

Verify:
ohm

Change-Id: I07e86aa1c3c747232a5fbe2cdf5a2d06814888d3
Signed-off-by: shipeng.sun <shipeng.sun@amlogic.com>
2024-01-02 20:24:48 +08:00
jialong.jiang 9f08728bce amdv: hdr dv policy problem. [1/1]
PD#SWPL-148414

Problem:
hdr dv policy problem.

Solution:
get amdv hdr policy return false for 8k.

Verify:
s5

Change-Id: I2695926a8d0503e43da1e702ba6ec2eb73fbf3ab
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-12-29 19:55:05 +08:00
Wenjie Qiao b6c48eee1b hdmitx: delete cinemavrr [2/2]
PD#SWPL-148293

Problem:
hdmi spec2.1b Table 10-7, cinemavrr, pb5 bit4 should always be 0

Solution:
delete cinemavrr

Verify:
T7

Test:
DRM-TX-77 DRM-TX-75

Change-Id: I85e8a68f1c3e6252a8787633f6b3840a8a21c1ae
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-12-28 19:42:44 +08:00
congyang.huang b5a838812b projector: support txhd2 keystone [1/1]
PD#SWPL-137139

Problem:
not support txhd2 keystone

Solution:
add vpp1 and dummy_p connector to support keystone

Verify:
txhd2

Test:
DRM-OSD-82

Change-Id: I43aa67f39a968255753c882c9ec6b93ae3512900
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-12-28 19:16:03 +08:00
yahui.liu 46be3354db hdmitx: add tracer for hdr/dv [1/1]
PD#SWPL-142521

Problem:
no event for hdr/dv

Solution:
add tracer for hdr/dv

Verify:
verify on oppen

Test:
DRM-TX-73

Change-Id: Iec5fc64b641a87c237c6f413760361b2924e644f
Signed-off-by: yahui.liu <yahui.liu@amlogic.com>
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-12-28 19:06:52 +08:00
yahui.liu 9cfe029de8 hdmitx: add tracer for audio [1/1]
PD#SWPL-142522

Problem:
no event for audio

Solution:
add audio trace event

Verify:
s5

Test:
DRM-TX-71

Change-Id: Ic2592cd06f1ef392adb29131a45f72af3ae2933a
Signed-off-by: yahui.liu <yahui.liu@amlogic.com>
2023-12-28 19:06:39 +08:00
hang cheng d0747a64c8 hdmitx: add driver mode setting test [1/1]
PD#SWPL-148833

Problem:
there's no method to set hdmi mode for
hdmitx driver level check on PXP

Solution:
add driver mode setting test interface
cd /sys/class/amhdmitx/amhdmitx0
echo 444,8bit > test_attr
echo 1080p60hz > disp_mode
echo bistauto > debug

Verify:
S5

Test:
DRM-TX-74

Change-Id: I44410ace6a0fdf2801373ba25099a3e7e344f9a2
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-12-28 12:35:50 +08:00
zongdong.jiao 15bae111f2 hdmitx: add debug interface for testing edid [1/1]
PD#SWPL-147036

Problem:
Lack debug interface for testing edid

Solution:
Add debug interface for testing edid
echo 00ffffffffffff00.... > /sys/class/amhdmitx/amhdmitx0/edid

Verify:
t7/an400

Test:
DRM-TX-9

Change-Id: I67553180ea3c4d805706ea52978d0eba4a464a82
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-12-28 11:19:05 +08:00
dezhi kong 2280ad2920 uvm: fix memory leak [1/2]
PD#SWPL-143214

Problem:
uvm sgt memory leak

Solution:
add free for sgt
add skip debug interface

Verify:
AndroidT kernel5.15 ohm

Change-Id: I8419e60318409a15bdec41d3918e875fc547778c
Signed-off-by: dezhi kong <dezhi.kong@amlogic.com>
2023-12-28 11:12:09 +08:00
sky zhou 7731bcc491 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-26 20:11:57 +08:00
chen.xu d4b382c10a 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-12-26 20:09:49 +08:00
Bichao Zheng 53287c3b86 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-12-26 14:26:43 +08:00
yahui.liu 6685c25605 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-12-25 12:27:36 +08:00
rong.quan d47e7784c3 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-12-24 22:21:02 +08:00
Doosan Baek 1f06a9e073 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>
2023-12-23 17:39:16 +08:00
Doosan Baek 0ab45fe728 seckey: add s/w vendor id [1/1]
PD#SWPL-141635

Problem:
need support s/w vendor id.

Solution:
add s/w vendor id.

Verify:
s1a

Change-Id: I1fc71057a7a376b24c92b33532cb26917c746d08
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2023-12-23 17:39:16 +08:00
Nanxin Qin 8056065a70 media: CF1 Extends the type of dmabuf for info dumping. [1/1]
PD#SWPL-142144

Problem:
Extends the type of dmabuf for info dumping.

Solution:
It supports the dump of commonly used of dmabuf info,
which are UVM, ES, and dmabuf heap. Please refer to
the confluence instructions for specific usage.

Verify:
ohm

Change-Id: I5f1482043c46ef983c37277bec1eb49cf70bd4fd
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2023-12-22 17:26:56 +08:00
MingLiang Dong 21e3bcf004 amvecm: add sdr2020 source process [1/1]
PD#SWPL-140725

Problem:
new feature, add sdr2020 source process case

Solution:
new feature, add sdr2020 source process case

Verify:
t5m

Change-Id: I5d4d701c11066bc853b2cf24579363cec44bd963
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2023-12-22 17:08:10 +08:00
yao liu 7a2d0dbeb0 amdv: idk case5364 failed [1/1]
PD#SWPL-141487

Problem:
afbc read incomplete data

Solution:
1.change axis from 2159x3839 to 1079x1919 in script file
2.set force_vskip_cnt to 0xff, to avoid skip
3.enable pps to scaler
4.config decoder data size for top2

Verify:
t3x

Change-Id: Icd7e11846c1b407936712a26350b1868af186843
Signed-off-by: yao liu <yao.liu@amlogic.com>
2023-12-22 16:54:34 +08:00
qiyao.zhou 705290fdcf vicp: add HDR support in vicp. [1/1]
PD#SWPL-102788

Problem:
add HDR10+/HLG support in vicp module.

Solution:
add HDR10+/HLG support in vicp module.

Verify:
t3x

Change-Id: Ie59d98965cc8b956a9e03c9f8cba7258019150c6
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-12-22 16:27:48 +08:00
Jian Cao 378064c38a ge2d: add support to swap two 64bits of 128bits [1/1]
PD#SWPL-140070

Problem:
need to support swap 64bits

Solution:
implement this support

Verify:
s1a-bg201

Change-Id: I7addda02429200cf95ef495de392f4ab3f11b886
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2023-12-22 16:26:10 +08:00
Jianxiong Pan d45ee00486 mm: fix crash when enable debug spinlock. [1/1]
PD#SH-16324

Problem:
enable CONFIG_DEBUG_SPINLOCK, system crash.

Solution:
not neable cma_mmu_op function when enable debug spinlock.

Verify:
local.

Change-Id: I61b7edb7c5026b72b7ac6e66c6e19304eca00a61
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-22 16:24:52 +08:00
song.han 0ed0c81593 iotrace: replace clk/power kprobe [1/1]
PD#SWPL-139455

Problem:
try to replace kprobe hook in iotrace

Solution:
replace clk/power kprobe

Verify:
SC2_AH212

Change-Id: Id53c97a5d0679c118625670a5216ae54e0567aec
Signed-off-by: song.han <song.han@amlogic.com>
2023-12-21 17:46:45 +08:00
qiyao.zhou 0eaec286f4 videoqueue: resync for out with no pannel. [1/1]
PD#SWPL-139458

Problem:
AV sync abnormal after TX plug out/in, this is because
canot enter resync flow for output with no pannel.

Solution:
Add resync flow for Not pannel output case.

Verify:
t7

Change-Id: Ifa1b814a226476bb8b2a3b3cbde2135acd06a4a1
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-12-21 17:45:40 +08:00
ruofei.zhao 407a7a3c11 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-29 13:59:20 +08:00
zhentao.guo edd367ce14 media: CB1 Fix cts CRC flaky issue [1/1]
PD#SWPL-139469

Problem:
Dirty date in cacheline may pollute data in memory when
flush cacheline

Solution:
Use noncache mapping in afbc decompress lib

Verify:
T7C

Change-Id: I4f6ed2ad6473c0aaab80d175663434b38dfb2af5
Signed-off-by: zhentao.guo <zhentao.guo@amlogic.com>
2023-11-28 17:00:44 +08:00
jialong.jiang 2b5fd04286 amdv: 5.15 ioc move to uapi. [1/1]
PD#SWPL-140850

Problem:
5.15 ioc move to uapi.

Solution:
5.15 ioc move to uapi.

Verify:
t3.

Change-Id: Icc1bd8efb807a84d55fd3b380fd3a016b34f4849
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-11-22 13:24:00 +08:00
hang cheng daacd9b64d 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-15 15:24:53 +08:00
jintao xu 84de425939 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-14 10:14:33 +08:00
lele xiang ee55f4f201 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 19:46:37 +08:00
xiang.wu1 7bbc687a18 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 19:14:56 +08:00