Commit Graph

691 Commits

Author SHA1 Message Date
zhikui.cui 96748bd4f2 nand: select slc nand mode [1/1]
PD#SWPL-142784

Problem:
can't read slc nand id

Solution:
select slc mode when detect prop "spi_cfg" in dts

Verify:
A4

Change-Id: I64d536d72c628bcd525177f5d732a8554b08b7b8
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-01-20 09:11:08 +08:00
hai.cao 06c62755cb video: remove mutex in video mute [1/1]
PD#SWPL-143291

Problem:
mute function will use in other module isr

Solution:
remove it,and set mute use fixed bit

Verify:
txhd2

Change-Id: I7f09f1ea1efb6269eef6422b7e5730ecdadc484e
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-01-20 09:10:40 +08:00
qiang.liu 26daf0d8f3 vdin: dv 444 low-latency need convert to 422 [1/1]
PD#SWPL-138069

Problem:
dv 444 low-latency not convert to 422 will abnormal

Solution:
dv 444 low-latency need convert to 422

Verify:
t5w

Change-Id: Iff9d00a31d135334feb5bc5943f82426768f5e31
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2024-01-20 09:07:41 +08:00
Jian Cao dac6bacd49 vpp: add support for video_composer reverse [1/1]
PD#SH-16709

Problem:
video_composer cannot reverse display

Solution:
add this support

Verify:
t3x

Change-Id: If109dadff12cdba288cb3c3bb0c0f6ffc865935b
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-01-20 09:04:57 +08:00
qiang.liu 50244e4bf9 vdin: add upper use signal format [1/1]
PD#SWPL-142519

Problem:
driver not add upper layer use format

Solution:
driver add upper layer use format

Verify:
t5w

Change-Id: I6c9ff0487453f5122ca51a2f47f47fc5b656b873
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2024-01-20 09:02:53 +08:00
jinbing.zhu 8ce389818d amvecm: 515 move struct to uapi [1/1]
PD#SWPL-142608

Problem:
move to uapi

Solution:
move to uapi

Verify:
t5w

Change-Id: Ie6737b1ad87792a6fb5ee5cff101464195da8354
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-01-20 08:59:15 +08:00
hai.cao 7df09b12af video: expand vpp mute function [1/1]
PD#SWPL-142295

Problem:
vpp mute control conflict

Solution:
control on or off by module self

Verify:
txhd2

Change-Id: Id3f35903c5c409793fd303d0086975434e83e137
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-01-20 08:58:27 +08:00
Song Zhao b7145c1c3a msync: add mono time into pts structure [1/2]
PD#TV-89282

Problem:
HbbTV need more accurate position.

Solution:
Add two more ioctl to get the A/V pts/mono pair

Verify:
T5W + Sandia

Change-Id: I9bc5408d0b41b4429056e581a18646d16d44fe41
Signed-off-by: Song Zhao <song.zhao@amlogic.com>
2024-01-19 23:13:51 +08:00
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