Commit Graph

5639 Commits

Author SHA1 Message Date
qinghui.jiang ccc0a60795 amvecm: lc off not fit [1/1]
PD#SWPL-158582

Problem:
calling apis not fit for t3x.

Solution:
modify calling apis.

Verify:
t3x_revb

Change-Id: Ie900c4b0a1ae18163d6d31788c15d6e727353421
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2024-04-07 00:33:37 -07:00
yicheng shen ee9f3c1bb7 hdmirx: optimize 1.5G phy setting [1/1]
PD#SWPL-160572

Problem:
some specific device does not work well on the frequency 1.5G

Solution:
optimize 1.5 G phy setting

Verify:
T5M/TXHD2/T3X

Change-Id: Idacd41b0195fb76ee5deba79744a0ab7a6c94c6e
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2024-04-07 00:33:13 -07:00
jinbing.zhu d7c8c44b1c amvecm: need optimize vframe for 5.15 [1/1]
PD#SWPL-161639

Problem:
need optimize vframe for 5.15

Solution:
.need optimize vframe for 5.15

Verify:
t3

Change-Id: I7ecb26b4d602c3620a4064831e23fea961d74ff9
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-04-06 21:46:57 -07:00
yao liu 2619e87819 amdv: hdmi in precision function [1/1]
PD#SWPL-159561

Problem:
hdmi in precision function

Solution:
1.add disable_detunnel check for hdmi in dw data
2.add enable_ro_check,default is false
3.support precision for low crop

Verify:
t3x

Change-Id: I8d524b94c1d5f5df07bd89ae24c45fedb9046763
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-04-03 06:05:06 -07:00
congyang.huang 9dba6f4574 drm: support vrr range debugfs [1/1]
PD#SWPL-162048

Problem:
the value of the vrr range debugfs node is incorrect

Solution:
update the value of vrr range to the debugfs node in get_modes

Verify:
t7

Test:
DRM-OSD-16

Change-Id: Ie465fabc761f23beaca406c8bb60b743f173c3bb
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-04-03 06:04:58 -07:00
guoqing.sun 4c4f1eef84 usbcam: CB2 set driver disconnect state. [1/1]
PD#SWPL-127187

Problem:
when card is removed, the device node cannot released immediately

Solution:
If the device is disconnected, set the driver to disconnected state

Verify:
android-u ATF T5m

Change-Id: Ieb0caa11f4059ce495fb53083c46740aa9aff529
Signed-off-by: guoqing.sun <guoqing.sun@amlogic.com>
2024-04-03 03:49:22 -07:00
Wenjie Qiao e5512c9d42 hdmitx: set segment 0 when read block0 and block1 edid [2/2]
PD#SWPL-160326

Problem:
uboot and kernel read edid twice and
read edid error when edid has more than 2 block

Solution:
set segment 0 when read block0 and block1 edid

Verify:
sc2

Test:
DRM-TX

Change-Id: I8613f7e4c1c6826fbe5edefb7232d761693659b6
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-04-03 03:49:08 -07:00
yongqiang.tang c444ec527c tcon: AndroidU T3x BDS cma-reserved remove tcon [1/1]
PD#SWPL-162547

Problem:
AndroidU T3x tcon is not necessary

Solution:
remove tocon at T3x BDS

Verify:
t3x

Change-Id: Ib118826aa40d8e74e77b08533105b3cd4fe039a6
Signed-off-by: yongqiang.tang <yongqiang.tang@amlogic.com>
2024-04-03 00:15:39 -07:00
Jian Cao 1a44c4421d vpp: dump current display buffer information [1/1]
PD#SWPL-161054

Problem:
vpp add log to print final display with timestamp and buffer address

Solution:
add this support

Verify:
t3x

Change-Id: I4df8f1fd1495291919e34942d3b2e4b6cb679713
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-04-03 00:15:28 -07:00
hang cheng 30f20d31f5 cvbs: merge dts device node into dtsi [1/1]
PD#SWPL-161872

Problem:
cvbs node is separate in each board dts file,
it's not easy to maintain, and the load sequence
is not certain with drm driver, and may cause
timing issue with drm: cvbs shutdown before
drm, and venc is disabled, and drm may block
as no vsync.

Solution:
merge cvbs dts device node into dtsi, so cvbs
and hdmitx node are before drm node, and it
will call drm shutdown interface before cvbs
and hdmitx, thus drm won't block

Verify:
s1a bg201/s7 bh201/sc2 ah212/s4 ap222/t7 an400/s5 ax201

Test:
DRM-CVBS-3

Change-Id: I1dc09bc30158b635b5742e78e103b6e4d3282383
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2024-04-03 00:15:12 -07:00
Pengcheng Chen c8f5991026 vpp: add no_compress info and bitdepth_dw [1/1]
PD#SWPL-160446

Problem:
1.add no_compress info for amdv
2.afbc and mif data format maybe different

Solution:
1.add no_compress info for amdv
2.add bitdepth_dw for dw data

Verify:
t3x

Change-Id: Ia47d24744dd1e87768e1b856d95ddb3e2e41780f
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-04-03 00:14:59 -07:00
Jianxiong Pan 3923075c2e mm: delay enable cma after kswap low. [1/1]
PD#SWPL-162740

Problem:
cma alloc too long in cts.

Solution:
CMA used up when startup and cause cma alloc slow
delay enable CMA until swap free ratio less than 70%

Verify:
t5d

Change-Id: Idac4be36533ed1ae9995ba84435ea7f44833dd61
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-04-02 07:44:55 -07:00
Yiming Sun 3fb2a1ceae heap-fb: correct heap-fb size for t3x [1/1]
PD#SWPL-162765

Problem:
t3x heap-fb size is not accurate

Solution:
modify heap-fb size to 388m

Verify:
t3x

Change-Id: I085d7b34ba8eb6432f8c8a3a221b5ae7d632cc48
Signed-off-by: Yiming Sun <yiming.sun@amlogic.com>
2024-04-02 05:53:30 -07:00
haitao.liu 1d598ad190 vdin: disabe the forced yuv444 mallocation mode on txhd2 [1/1]
PD#SWPL-162627

Problem:
Forcing memory allocation in 444 mode leads to
memory wastage.

Solution:
Disable the forced yuv444 allocation mode

Verify:
txhd2

Change-Id: I19a0699a75cffedeafb69f619ba80cfa682d709a
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-04-02 05:53:25 -07:00
haitao.liu fe24a71897 vdin: enable auto clk gating of vdin [1/1]
PD#SWPL-159534

Problem:
Vdin clock gating is still enabled even not in use,
should be disable to save power.

Solution:
disable vdin clock when not in use.

Verify:
t5m

Change-Id: I8d1d6a8ff25bb8992db2fa318f91713a4855d715
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-04-02 05:53:13 -07:00
haitao.liu e27f5937c4 vdin: Configurable dw output width and height for dv hw5 [1/1]
PD#SWPL-159909

Problem:
Need debug cmd to set the h/v of double write frame

Solution:
Add debug cmd

Verify:
T3x

Change-Id: Ie93c1dfed65670d79f75553f892abad78a22a671
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-04-02 05:53:08 -07:00
Pengcheng Chen 76bd00f805 vpu_security: miss config vd1 slice3 secure [1/1]
PD#SWPL-159826

Problem:
miss config vd1 slice3 secure, the reg used for oled eco

Solution:
skip config vd1 slice3 secure

Verify:
t3x

Change-Id: Idb46ff3690b90f29d47f13fb270f38f14636a235
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-04-02 04:41:02 -07:00
yufei.huan 41b8a3ba39 deinterlace: txhd2 Insufficient bandwidth [1/1]
PD#SWPL-161202

Problem:
Insufficient bandwidth

Solution:
10bit-8bit

Verify:
txhd2

Change-Id: Icd2c39d96a03c7852e2c5a43407bb489bf23f74d
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2024-04-02 04:40:58 -07:00
lizhi.hu a403694421 lcd: reduce lcd driver memory usage [1/1]
PD#SWPL-161573

Problem:
memory usage optimize

Solution:
remove text in lcd_debug.c

Verify:
none

Change-Id: I370cba27f8bc104f92f9fad6ca384b478adc31dd
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-04-02 01:51:29 -07:00
can.zhang d26cf75919 amdv: get ll_policy from uboot [1/1]
PD#SWPL-161157

Problem:
kernel can't get ll_policy

Solution:
add add

Verify:
local

Change-Id: Ie0a32df3691b6973741fc157732f0f178b2ade01
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2024-04-02 00:39:21 -07:00
linfang.zhao c52d22d045 drm: conflict between drm and dv when write afbc top ctrl reg [1/1]
PD#SWPL-153008

Problem:
conflict between drm and dv when write afbc top ctrl reg

Solution:
write osd_axi_sel bit when update_state func come firstly,
and the bit only set mali_afbcd_data one time.

Verify:
T7C

Test:
DRM-OSD-6

Change-Id: Ib05927b147f524862cfa20070cc0474dd0dc5854
Signed-off-by: linfang.zhao <linfang.zhao@amlogic.com>
2024-04-02 00:39:15 -07:00
zhikui.cui 9796e942a9 nand: spinand bitflip threshold set to 75% ecc strength [1/1]
PD#SWPL-162429

Problem:
It is not really very good for ecc threshold
to be equal to the maximum capacity of ecc.
we refer to raw nand method to set it.

Solution:
Refer to raw nand method (nand_base.c) to set ecc
threshold to the 75% of ecc maximum capacity.

Verify:
S1A-BG201

Change-Id: I92fea91008a93fd5472bfcadcd338e89e985d40c
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-04-02 00:39:10 -07:00
Evoke Zhang ca2ea8cb9c lcd: tcon: remove unused code [2/2]
PD#SWPL-162001

Problem:
need cleanup tcon unused code

Solution:
cleanup tcon unused code

Verify:
ay301

Change-Id: I936dce510a039fd7eb9a1bfdb63e6171d6e0f272
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-04-02 00:39:05 -07:00
hang cheng 85b0e173b9 hdmitx21: need porting hdcp api for drm [1/1]
PD#SWPL-162848

Problem:
need porting hdmitx21 hdcp api for drm

Solution:
porting hdmitx21 hdcp api for drm

Verify:
s1a

Test:
DRM-TX-37

Change-Id: I483bda469f945e4f21eac234de61c8aa3537933b
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2024-04-02 00:39:00 -07:00
Jianxiong Pan 160cc55262 mm: autopatch: optimize system heap default. [1/1]
PD#SWPL-155289

Problem:
system heap optimization.

Solution:
use CONFIG_AMLOGIC_MEMORY_OPT or
CONFIG_AMLOGIC_MEMORY_DEBUG

Verify:
local.

Change-Id: I6f63aa616909ed19dbfdbbe1550b705db1c4da9d
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-04-01 21:59:02 -07:00
Xiangyu Cai ef96d0c3ea framelock: notify lfc off when vrr disable [1/1]
PD#SWPL-162447

Problem:
atv frame rate not correct

Solution:
vrr lfc off wneh vrr disable

Verify:
t3x

Change-Id: Ic2547c0be307d4e1b03751de638e0bc00a868f5a
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-04-01 19:47:05 -07:00
lukang.jia 26955bb5f3 frc: Optimize t3x frc_cma to 312MB [1/1]
PD#SWPL-162550

Problem:
Optimize t3x frc_cma to 312MB

Solution:
Optimize t3x frc_cma to 312MB

Verify:
T3X

Change-Id: I2bdfd31bf39fc79849141c589271bb278713ab5f
Signed-off-by: lukang.jia <lukang.jia@amlogic.com>
2024-04-01 19:47:00 -07:00
qiyao.zhou 492ebc3819 vc: Add debug info in vc. [1/1]
PD#SWPL-151899

Problem:
Require VC debug info to match player and vpp.

Solution:
Add debug info in VC.

Verify:
t3x

Change-Id: I1840f214c579484f1966914b10898b9cd4169acb
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-04-01 19:46:57 -07:00
jian zhou a87a6d9391 audio: fix earc Cert HFR5-1-35 failed [1/1]
PD#SWPL-159771

Problem:
get CDS info which is not ready by the spec.
rootcause:when the earc connection success, it send
the earc state to framework, then send connet msg to
audio hal, and audio hal get cds info, but the cds is
not ready by the spec.

Solution:
when we get the cds ready info, then send the earc
connection success event.

Verify:
T3X

Change-Id: Ie80a0523d71330d7dd47040cc7f7ec57228f3133
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-04-01 04:39:33 -07:00
Pengcheng Chen c7739ddc99 vpp: update vd2 postblend scope when post vsync [1/1]
PD#SWPL-160742

Problem:
vpp_blend_update(vinfo, PRE_VSYNC), vd2 is VPP0,
vd2 size not match vd2 postblend scope size

Solution:
judge postblend update via vpp_index
update vd2 postblend scope when post vsync

Verify:
t3x

Change-Id: Ib3e7700e757084ed6146cf7a857a539ebf906aa3
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-04-01 04:39:30 -07:00
zhikui.cui b42c4003f4 nand: fix can't scan nbbt in bitflips case [1/1]
PD#OTT-57502

Problem:
system partition filesystem mount fail. the problem is bring from commit
<b68a304179e8> (nand: slcnand & spinand: fix mutex deadlock)

Solution:
fix rsv_ops->_read_oob should return -EUCLEAN or 0 or negative error

Verify:
S1A-BG201

Change-Id: I40704ca9d89e5122622111513b7874fa103e3750
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-04-01 04:39:26 -07:00
yu.xie 6bb010f858 dts: modify android_u S805X3 1G codec_mm_cma size to 168MB. [1/1]
PD#SWPL-160726

Problem:
adjust the size of codec_mm cma to 168M.

Solution:
adjust the size of codec_mm cma to 168M.

Verify:
S805X3

Change-Id: I48c46506de9b0a34bceeea25d15fb41bcbccf790
Signed-off-by: yu.xie <yu.xie@amlogic.com>
2024-04-01 04:39:22 -07:00
yu.xie 30481467d3 dts: modify android_u S805X2 1G codec_mm_cma size to 168MB. [1/1]
PD#SWPL-160725

Problem:
adjust the size of codec_mm cma to 168M.

Solution:
adjust the size of codec_mm cma to 168M.

Verify:
S805X2

Change-Id: I6ad528eadd119dd01d7fdc27c878f68d85666a3c
Signed-off-by: yu.xie <yu.xie@amlogic.com>
2024-04-01 04:39:17 -07:00
Pengcheng Chen d85f2d481f vpp: recovery video set when vpu power closed in STR [1/1]
PD#SWPL-160995

Problem:
recovery video set when vpu power closed in STR

Solution:
recovery video set when vpu power closed in STR

Verify:
s7

Change-Id: Icb8083923e2e104a5106a55e8dfc9ade7087b18a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-04-01 04:39:09 -07:00
mingyang.he cf15989a9f drm: kasan failed for slab-out-of-bounds [1/1]
PD#SWPL-151540

Problem:
kasan failed
cat/echo sysfs osd node crash in s5
cat fbdump return zero size file in s5

Solution:
reset BLOCK_ID_MAX with 32
sysfs node should according to vpu block by index
set correct plane index

Verify:
s5, t5m

Test:
DRM-OSD-17

Change-Id: I02094c9044b172af46ab9b5bd5688a12f18ce96a
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-04-01 04:39:02 -07:00
yao.zhou 6e909d41ff Camera: cts test fail [1/1]
PD#SWPL-162054

Problem:
android.hardware.camera2.cts.SurfaceViewPreviewTest#testDeferredSurfaces
android.hardware.camera2.cts.BurstCaptureTest#testYuvBurst
failed for sw jpeg performance

Solution:
enlarge codec_mm for hw jpeg encoder for 40M

Verify:
T7C

Change-Id: I8cf983005237ac9fe959cab7d94a1156b7e6e3fa
Signed-off-by: yao.zhou <yao.zhou@amlogic.com>
2024-04-01 02:37:11 -07:00
nengwen.chen 1e9b7d7382 dtv_demod: remove more print logs (V3.5.033) [1/1]
PD#SWPL-161566

Problem:
remove more print logs.

Solution:
remove more print logs.
AMLDTVDEMOD_VER "V3.5.033"

Verify:
TXHD2.

Change-Id: Ib5fd141c1fe54cf827edf5f7673d658867d13b84
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2024-04-01 02:37:05 -07:00
hai.cao 6a75360ec4 vpu: init arb and urgent [1/1]
PD#SWPL-162676

Problem:
set arb and urgent default val

Solution:
add arb and urgent default val

Verify:
txhd2

Change-Id: Id3813f6da55a45fba27f0988be3c8fdd3bf224f2
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-03-31 21:45:37 -07:00
Evoke Zhang da28ba7b30 lcd: fix clk mistake for vmode switch [2/2]
PD#SWPL-161892

Problem:
lcd clk incorrect when 2160p60hz switch to 3840x1080p240hz

Solution:
fix clk mistake for vmode switch

Verify:
bc302

Change-Id: I8077b8755c6a34680888adc99ce7d4c1beed884e
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-03-31 21:45:22 -07:00
Pengcheng Chen fac8d78ecf vpp: recovery vpu hw set when vpu power closed in STR [1/1]
PD#SWPL-160993

Problem:
recovery vpu hw set when vpu power closed in STR

Solution:
recovery vpu hw set when vpu power closed in STR

Verify:
s7

Change-Id: I2dd2f1ae24791deab42d426aa8aa626e206080e2
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-03-31 21:45:14 -07:00
chuangcheng.peng b9d7718ece demux: close smartcard node to avoid pin conflict [1/1]
PD#SWPL-162825

Problem:
pin conflict

Solution:
close smartcard node to avoid pin conflict

Verify:
not verified

Change-Id: Ic01b46600e88ffd242f8958804422c47276742e7
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-03-29 04:33:23 -07:00
Mingyen Hung 6261750d06 Crypto: wait completion of Crypto DMA [1/1]
PD#SWPL-150680

Problem:
Wrong encryption results for AES128/CTR when using
/dev/aml_crypto

Solution:
Polling owner bit to make sure operation of Crypto
DMA is complete.

Verify:
s4d + ap232 + yocto

Change-Id: I8889dcf9cf452e4ca6b04a502c2ec7c1bb0bac8e
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2024-03-29 04:33:19 -07:00
zhenteng.tian 4d7bec243f g12a: enable di in display side for g12a. [1/3]
PD#SWPL-161330

Problem:
Android U support di backend for g12a.

Solution:
Android U support di backend for g12a.

Verify:
g12a

Change-Id: I92a1da34816f1d37e4c4f347b10694c365790563
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-03-29 04:33:15 -07:00
zhenteng.tian e6da7c87d6 sm1: enable di in display side for sm1. [1/3]
PD#SWPL-161620

Problem:
Android U support di backend for sm1.

Solution:
Android U support di backend for sm1.

Verify:
sm1

Change-Id: Iea61b7cfe0f21053288855a147cd66066704f37d
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-03-29 04:33:12 -07:00
Haotian Guo f802228439 hdmirx: add special ddc status [1/1]
PD#SWPL-161689

Problem:
Source stuck while reading edid

Solution:
Re recognize edid when stuck

Verify:
t5m

Change-Id: Ic56bd34118c684899811ac656919c747dea1f283
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2024-03-29 04:33:09 -07:00
rong.wang 549a6d1cde deinterlace: add api to get input param for vpp [1/1]
PD#SWPL-160157

Problem:
add api to get input param for vpp when pre-link

Solution:
add api to get input param for vpp

Verify:
t5m

Change-Id: I5f1198c94dfc840f5024d1fdb61bda2f5c5e8f4e
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2024-03-29 04:33:05 -07:00
Gaowei Zhao e80b9f6ac5 hdmirx: fix xbox display abnormal when signal changes [1/1]
PD#SWPL-149386

Problem:
xbox display abnormal when signal changes

Solution:
notify the backend to set black pattern after receiving avmute

Verify:
t5w

Change-Id: If614697df3e35e205e22dd21b5e4e67d8c140dae
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-03-29 04:33:01 -07:00
nengwen.chen cc143b27dc dvb_extern: fix suspend/resume and optimize code and log (V1.20) [1/1]
PD#SWPL-161454
PD#SWPL-158834
PD#SWPL-161521

Problem:
fix suspend/resume and optimize code and log.

Solution:
fix suspend/resume and optimize code and log.
AML_DVB_EXTERN_VERSION "V1.20".

Verify:
S7 and U215.

Change-Id: I593d0c6ac3cfc0110fa3ef44ec89a59d478218db
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2024-03-29 00:41:13 -07:00
nengwen.chen 17f0e00604 atv_demod: remove more print logs (V3.10) [1/1]
PD#SWPL-161562

Problem:
remove more print logs.

Solution:
remove more print logs.
AMLATVDEMOD_VER "V3.10".

Verify:
TXHD2.

Change-Id: I31caf1a6393c2ca2e924ab83f03f3f65ab99c43e
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2024-03-29 00:41:07 -07:00
can.zhang 060f5c410b amdv: remove g12 mute delay setting [1/1]
PD#SWPL-160896

Problem:
stb mute error

Solution:
1.remove mute delay

Verify:
sc2

Test:
DRM-OSD-6

Change-Id: Icb5a334c8b530e778bff01f2cfb69d69a5b31618
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2024-03-29 11:09:14 +08:00