Commit Graph

5622 Commits

Author SHA1 Message Date
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
yahui.liu 8f9e15f3c3 hdmitx: [hpd] add system time id in hdmitx state [1/1]
PD#SWPL-158042

Problem:
drm module automic-check and automic-enable use differnet hpd status
information when hdmitx hotplug

Solution:
[hpd] add system timein hdmitx state

Verify:
S5/SC2

Test:
DRM-TX-103

Change-Id: Id0f37cf01c5266a720f2881ee8cd9fab274b79b9
Signed-off-by: yahui.liu <yahui.liu@amlogic.com>
2024-03-28 19:44:59 -07:00
hai.cao 89e7ed1e60 vpu_top: add vpu std function [1/1]
PD#SWPL-158187

Problem:
add std support

Solution:
support hibernate mode for vpu top

Verify:
t7c

Change-Id: I9bf878e01cffad3e53995febda24069bd2138f46
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-03-28 06:07:06 -07:00
xiang.wu1 5ba250458a hdmitx: Optimize phy node close phy process [1/1]
PD#SWPL-161417

Problem:
There is no CVBS/dummy output and vsync under S5 uboot.
echo 0 > phy turns off phy, but the action of turning off
phy is executed in the vsync interrupt. Because there is no
vsync interrupt, the action of turning off phy here will not
actually be executed. When the system is set to hdmi mode
(1)hdmitx_phy_pre_init()->(2)hdmi set venc—>(3)enable hdmi HW
–>(4)enable HDMI phy. HDMI venc/vsync was enabled between (2)
and(3), At this time, the phy shutdown action was performed,
and the phy pre init setting in (1) was cleared, resulting
in HDMI without TODIG CLK–>hdmitx ch_clk

Solution:
if not have vsync intr, wait 3 frame,manually turn off phy

Verify:
s5

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

Change-Id: I161bf83c1b6a1da4cc910ddc4a7edd20ad910d18
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-03-28 03:57:32 -07:00
Cheng Wang 218b29f9bd frc: frc sync motion from fw [1/1]
PD#SWPL-158938

Problem:
frc sync motion from fw

Solution:
frc sync motion from fw

Verify:
T3X

Change-Id: I12c5b10ee15f71ed5bcc962ba2eb02b62cc5d412
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2024-03-28 03:57:16 -07:00
gan.zhang 6fca55e0c8 codec_mm: add config for scatter alloc from DMA32. [1/1]
PD#SWPL-143076

Problem:
mmu copy cannot access address over 4G.

Solution:
set alloc from dma32 zone when config_alloc_flags bit0 is set.

Verify:
S5

Change-Id: I142f182dff1509e591d20ed0e440a6851f8d7029
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
2024-03-28 03:57:07 -07:00
jinbing.zhu 1ec1c74c7a amvecm: 5.15 add vpp yuv/rgb format switch for hdmitx [1/1]
PD#SWPL-151057

Problem:
hdmitx can't convert to rgb when dsc enable

Solution:
add vpp yuv/rgb format switch for hdmitx

Verify:
s5

Change-Id: I2416c44f80abc9e9d3c4a7afbb740b167b3c7b21
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-03-28 03:57:01 -07:00
ruofei.zhao c782e34f45 hdmitx: add null pointer judgment in boot_parameters [1/1]
PD#SH-18773
PD#SWPL-160955

Problem:
The boot_parameters parameter does not perform null pointer judgment,
which will cause a crash

Solution:
add null pointer judgment in boot_parameters

Verify:
T7C
SC2

Test:
DRM-TX-

Change-Id: Idd5fe05145ac07d1358293d26872bcf4a2bc5eda
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-03-28 02:33:04 -07:00
jiebing chen 01035653ae audio: use spk mute to control the pa gpio [3/3]
PD#SWPL-161349

Problem:
there are no spk mute control node

Solution:
enable the spk mute control

Verify:
s7

Change-Id: Id38d34214c7593861aa493bd60c25176048c2a25
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-03-27 21:55:05 -07:00
Jian Cao f554cc7eef vpp: avoid rdma write over vsync [1/1]
PD#SWPL-158630

Problem:
enc line number is not correct under mode 1080i

Solution:
1. avoid rdma write over vsync
2. fix 1080i over vsync calc

Verify:
s1a

Change-Id: I10fba2e443e1e1c3167560ed6e3cd014247c4efc
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-03-27 07:48:58 -07:00
huiwen.yu 9672cfc037 kernel: support 8g ddr [1/1]
PD#SWPL-153258

Problem:
support 8g ddr

Solution:
support 8g ddr

Verify:
t3x

Change-Id: I26ee985a68c5bdb0924301ebb31658df5d5daa65
Signed-off-by: huiwen.yu <huiwen.yu@amlogic.com>
2024-03-27 05:57:06 -07:00
lele xiang e757d7f267 codec_mm: CF1 Optimize force_cache_on usage logic. [1/1]
PD#SWPL-161028

Problem:
the flag of force_cache_on keep true for a long time in scatter cache.

Solution:
Optimize force_cache_on usage logic.

Verify:
S805X2/AH212

Change-Id: I6d4bcf73722fdbcca36a114d8f4efbbf812b4575
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2024-03-27 04:05:35 -07:00
lele xiang 762e4a63cc codec_mm: CF1 modify 2k platform codec_mm scatter cache size. [1/1]
PD#SWPL-159404

Problem:
reduce scatter cache memory setting for 2k platform.

Solution:
modify 2k platform codec_mm scatter cache size.

Verify:
t5d/S805X2/TXHD2/S1A/S805X3

Change-Id: Icef2f68fb854466726699ecad4bd34a1cb0c3bef
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2024-03-27 04:05:17 -07:00
chuangcheng.peng 94a9773f61 demux: fix ts clone update old data [1/1]
PD#SWPL-161009

Problem:
section get old data

Solution:
rp should be updated when it created input

Verify:
verified at project

Change-Id: I4ad13ed47a579427219e41cdd8a081a080c574cb
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-03-27 02:13:38 -07:00
yunmin.chen 905e5ed92f tsync: CB2 stream_input Driver loading exception [1/1]
PD#SWPL-148389

Problem:
Disable the tsync module,
stream_input Driver loading exception

Solution:
Adjust tsync_pcr_stop() implementation.

Verify:
BG201

Change-Id: Iadf943a29394fb89f27db9c590e648233eec07e1
Signed-off-by: yunmin.chen <yunmin.chen@amlogic.com>
2024-03-27 02:13:05 -07:00
huijie.huang 68b3b8f02c lcd: tcon: fix release memory crash [1/1]
PD#SWPL-159100

Problem:
free no-map memory crash

Solution:
skip free no-map memory

Verify:
be311, bc302

Change-Id: I25cf09a4b78911a56b1251ffae16e963e5db03e1
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2024-03-26 23:56:39 -07:00
zijie.lin c9c0539fd6 bl: load unifykey accord diff version [1/1]
PD#SWPL-161979

Problem:
KASAN bug

Solution:
load unifykey accord different version

Verify:
t5m

Change-Id: Ifa7d2c6c767d8842ff10234f9192fde8c7408482
Signed-off-by: zijie.lin <zijie.lin@amlogic.com>
2024-03-26 23:56:30 -07:00
Jian Hu c6ac4873c6 dts: arm64: enable ramoops [1/1]
PD#SWPL-161996

Problem:
pstore does not work

Solution:
enable ramoops

Verify:
t3x

Change-Id: I3dd2976b3da5d6cefc97b8e290eea64f5e109c5f
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2024-03-26 23:56:24 -07:00