Commit Graph

1175 Commits

Author SHA1 Message Date
Tao Zeng 042faaa89a zram: change zstd and mix implementation [1/1]
PD#SWPL-145324

Problem:
1, using contiguous conter for type identify is not uniform distribution
when compress for some tasks;
2, zram driver will alloc per-cpu contex for zstd, which will cause
about 3MB memory;

Solution:
1, using a fixed type array for uniform distribution of mix type
selection;
2, create 2 context: one dedicated for kswapd task; another one
dedicated for direct reclaim;

Verify:
t5m

Change-Id: I06683383e06d9601c9e6522bcd0fbcfa68a55987
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2023-11-27 19:02:19 +08:00
Tao Zeng 12ef9a846e zram: add a mixed zram compressor [1/1]
PD#SWPL-145324

Problem:
zstd is high compress ratio but low speed, lz4 is fast but low
compress ratio. Need balance them.

Solution:
Add a mixed crypto layer and can set ratio of lz4/zstd

Verify:
t5m

Change-Id: I4fbe930d05ef66336acacaae640fa47855d4b47b
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2023-11-27 18:59:13 +08:00
jiebing chen 780a67fc6e Audio: disable audio clk when suspend for sc2 [1/1]
PD#SWPL-142871

Problem:
disable audio clk when suspend for sc2

Solution:
disable audio clk when suspend for sc2

Verify:
use sc2

Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
Change-Id: I493a5e7bf7ed826da76a4eb6cb6324314bc008ac
2023-11-13 19:46:50 +08:00
Lei Zhang 4e2bf1c9bf sysrq: enable sysrq function [1/1]
PD#SWPL-143851

Problem:
n/a

Solution:
enable sysrq function by default

Verify:
on sc2

Change-Id: Iff20f64ebc6736a6bbcbd7ff94eee1c83e435cc6
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2023-11-06 18:51:52 +08:00
Hangyu Li f33d01db43 dts: add secure_vdec_reserved dts node for t7/t7c bluebell [1/1]
PD#SWPL-143746

Problem:
Netflix play fail.
As there is no secure_vdec_reserved node in dts.

Solution:
Add secure_vdec_reserved dts node.

Verify:
Android U + bluebell

Change-Id: Iac9c985b4d4a5102203c075bf8ed19db4c9f4336
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
2023-10-31 19:19:08 +08:00
hang cheng 37106fbfb4 hdmitx: abstract disable output flow [1/1]
PD#SWPL-142486

Problem:
need to abstract disable output flow

Solution:
abstract common disable output flow

Verify:
Ohm + android U

Test:
DRM-TX-38

Change-Id: I26812288a9b11ae1002de43f10437d357ac77844
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-10-18 14:53:58 +08:00
Pengcheng Chen aef84c9221 vpu: enable down vpu_clk when suspend with sc2 [1/1]
PD#SWPL-132992

Problem:
sc2 need down vpu_clk when suspend

Solution:
enable down vpu_clk when suspend with sc2

Verify:
sc2

Change-Id: I2d69d1de06acd05005c697f0c94b65b98ebf5631
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-10-17 15:34:47 +08:00
Liming Xue 172057d4b0 host driver: reconstruct dsp host driver [1/1]
PD#SWPL-99041

Problem:
reconstruct dsp host driver

Solution:
config CONFIG_AMLOGIC_MCU_DRIVER to enable mcu driver
the new driver support multiple dsp/m4 cores

Verify:
a1/c1/c2/sc2/t3/t3x/t7/t7c

Change-Id: Ib1e666e615260bb5b7377a18eeaaf8daa65de86f
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2023-10-07 17:40:07 +08:00
zongdong.jiao 365de2b1f5 hdmitx: unify the edid 2.0 and 2.1 [1/1]
PD#SWPL-98813

Problem:
Need to unify the edid 2.0 and 2.1

Solution:
Unify the edid 2.0 and 2.1

Verify:
t7/sc2

Test:
DRM-TX-34

Change-Id: Id145c0343279489b82316f22322d48a41c2df33c
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-07 17:35:44 +08:00
qianqian.cai 35ab697b97 deinterlace: update di dts number [1/1]
PD#SWPL-137618

Problem:
di post count not update

Solution:
add post number for dts update

Verify:
sc2

Change-Id: If57517c9b38df99edef837c2d2f7994607abc157
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2023-09-14 21:18:19 +08:00
fuqing.chen 507d864222 T7C: enable active config for OTT platform [1/1]
PD#SWPL-137619

Problem:
T7C OTT platform HDMITX only enable active
config

Solution:
add heap-fb size adapt 4K UI

Verify:
T7C OTT

Change-Id: I7c2f3e4cd5e316064c1f647322d64272ca1575c3
Signed-off-by: fuqing.chen <fuqing.chen@amlogic.com>
2023-09-14 13:51:10 +08:00
linfang.zhao a3352bedea drm: fix black screen in recovery [1/1]
PD#SWPL-138138

Problem:
Black screen when enter reboot recovery

Solution:
set correct display mode in recovery

Verify:
S905X4-AH212

Test:
DRM-OSD-96

Change-Id: I1be0b8385037c506e2bdc270dd4665901ae11be8
Signed-off-by: linfang.zhao <linfang.zhao@amlogic.com>
2023-09-13 23:10:08 +08:00
rong.wang ee812b9da5 deinterlace: confirm post buffer size [1/1]
PD#SWPL-135526

Problem:
special test find post buffer size wrong

Solution:
add po_fmt = 0

Verify:
t5m

Change-Id: Iea19a0a3630800735c26e70d73c36892ad1e46d9
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2023-09-13 22:31:05 +08:00
Wenjie Qiao e94eaec621 hdmitx: s5 can not start [1/1]
PD#SWPL-137661

Problem:
s5 hpd wrong, s1a and s5 use the same pinctrl name

Solution:
modify s5/s1a hpd pinctrl

Verify:
s5

Change-Id: I44b2794212c3338b7c18166497a95cf15c71190c
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-09-13 20:34:25 +08:00
Dezhen Wang 2171a64790 scripts: optimize the config of upgrade project [1/1]
PD#SWPL-137455

Problem:
the upgrade config is repetitive

Solution:
delete the repetitive config in upgrade project

Verify:
local

Change-Id: I2ddd31350be328cb9ee6d288a68732324cc337a5
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-09-13 15:10:22 +08:00
Hangyu Li e95b3a850f tee: rename AML_TEE,AML_OPTEE to AMLOGIC_AMLTEE,AMLOGIC_OPTEE [1/1]
PD#SWPL-136287

Problem:
The configuration name in kernel 5.15 is starting with "AMLOGIC_",
in order to unify configuration name, modify AML_TEE,AML_OPTEE to
AMLOGIC_AMLTEE,AMLOGIC_OPTEE.

Solution:
rename AMLTEE,AMLOGIC_OPTEE to AMLOGIC_AMLTEE,AMLOGIC_OPTEE

Verify:
Android + Kernel 5.15

Change-Id: I25be69bb990b7e86026790a9a64f64a473e9adfc
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
2023-09-13 15:09:04 +08:00
Jian Cao a9a44e3236 vpp: video lowlatency optimize [1/1]
PD#SWPL-132066

Problem:
need to support video lowlatency

Solution:
video lowlatency optimize

Verify:
s1a-bg201

Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Change-Id: Ie8a6f4c72314f9acf7202e7d86721403842d5499
2023-09-13 15:08:05 +08:00
qinglin.li 9d3b531cb4 break_gki: adjust break gki config [2/2]
PD#SWPL-137861

Problem:
adjust break gki config

Solution:
CONFIG_AMLOGIC_BREAK_GKI_20 only break gki2.0
CONFIG_AMLOGIC_BREAK_GKI break gki 1.0 and 2.0

Verify:
local

Change-Id: Ic86c771027980aa24c638d5f89c014240d65ec91
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-09-05 20:43:25 +08:00
shuanshuan.jiang 94c5a65a13 camera: increase adapt cma size [1/1]
PD#SWPL-132204

Problem:
1. adapter allocat cma buffer failed in dcam mode
2. using illegal cma address in dcam mode

Solution:
increase adapt cma size

Verify:
local

Signed-off-by: shuanshuan.jiang <shuanshuan.jiang@amlogic.com>
Change-Id: I5ef703d978a864ca4c59172f6bd03688c4b06a74
2023-08-23 01:58:43 -07:00
Zhe Wang 84f924d8c3 audio: optimize spdif mute interface [2/3]
PD#SWPL-137289

Problem:
some AVR with pop noise when spdif out is set to mute

Solution:
On TV platform, mute spdif out with soft mute register

Verify:
T5M

Change-Id: I22c30a301c655d1fce66a7f4b6c7510d0729b945
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2023-08-22 06:09:20 -07:00
Liming Xue 45a6212840 dsp: a1 start failed [1/1]
PD#SWPL-137033

Problem:
a1 start failed

Solution:
add mailbox channel and change reserved memory

Verify:
a1

Change-Id: Ib2e1fab0162b868727e8121ae7cc9f6d05294943
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2023-08-21 22:54:14 -07:00
jintao xu 6e5a389962 di_process: support di in display side [1/4]
PD#SWPL-136316

Problem:
support di backend

Solution:
support di backend

Verify:
ohm

Change-Id: Iad72c1ebc5e33bade4e6efb87167defd4bc405b6
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-08-19 18:08:44 -07:00
yaoyu.xu 6d723f6f2b hdmirx: enable rx phy trim config flow [2/2]
PD#SWPL-134805

Problem:
enable rx phy trim config flow

Solution:
enable rx phy trim config flow

Verify:
T3X

Change-Id: Ib0e1e381d719d0a8b785ac126dc930e66b6bb156
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2023-08-18 00:23:46 -07:00
ziyi e641ab3cb4 emmc: add hs200 hs400 to AP222 S905Y4 [1/1]
PD#SWPL-133315

Problem:
no hs200 hs400 mode in AP222 S905Y4

Solution:
revise dtb

Verify:
s4d

Change-Id: I7b504d62af6604e64606e2e25a8486fecb913910
Signed-off-by: ziyi <ziyi.huang@amlogic.com>
2023-08-17 22:09:43 -07:00
Ao Xu 7ca239cc55 dts: enable drm driver dts node [1/1]
PD#SWPL-128362

Problem:
ac214 board did not enable drm dts node

Solution:
enable drm dts node for ac214 board

Verify:
ac214

Test:
DRM-OSD-86

Change-Id: I6da775d3cb5e6f24747baf7a152efcd9cc8ee09f
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-08-17 06:14:37 -07:00
donghui.wang 7e1e3fb48e ldim: add ldim panel type for linux dts [1/1]
PD#SWPL-131721

Problem:
miss ldim panel type

Solution:
add panel type for ldim

Verify:
t3

Change-Id: I1efb09c2e080297529aea351a474f36286d367bb
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-08-17 06:14:33 -07:00
Huqiang Qin 1a3fd93535 saradc: c1: fixed clock mismatch [1/1]
PD#SWPL-134274

Problem:
Clock mismatch.

Solution:
Kernel 5.15 clock naming has the following changes:
|  Old name        |    New name      | DT match name |
-------------------------------------------------------
| CLKID_SAR_ADC      CLKID_SYS_SARADC    "core"       |
| CLKID_SARADC_MUX   CLKID_SARADC_MUX    "adc_sel"    |
| CLKID_SARADC_DIV   CLKID_SARADC_DIV     unused      |
| CLKID_SARADC_GATE  CLKID_SARADC        "adc_clk"    |

Verify:
C1/AE400

Change-Id: I97e72049618ad66792eeea562cb9b99c4329406e
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-08-17 02:29:16 -07:00
lizhi.hu 4d15016b30 lcd: eDP full link training & EDID timing 5.15 [1/1]
PD#SWPL-134539

Problem:
add full link training adn EDID timing process for T7

Solution:
add

Verify:
t7_an400

Change-Id: Ib82f8c7e9b3bd178489c1ef1c43bd35cade9bf47
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2023-08-17 00:18:45 -07:00
Shunzhou Jiang 5f585853c5 c1: mbox driver bringup [1/1]
PD#SWPL-87115

Problem:
mbox driver bringup

Solution:
mbox driver bringup

Verify:
c1

Change-Id: I506d7c901f3786a3e79db62f0c4f80ccabe0b383
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2023-08-15 20:08:43 -07:00
min.zhu a07ee61c09 vdin1: revert the configs for vdin1 [2/2]
PD#SWPL-134480

Problem:
disable record hdmi content

Solution:
revert the configs for vdin1

Verify:
t7c

Change-Id: Ib045d8305f2ccbbbe0cbbdf1f24648ab5ad64389
Signed-off-by: min.zhu <min.zhu@amlogic.com>
2023-08-15 04:20:00 -07:00
Sunny Luo c48e7843e4 spi: back sync with t5m openliux/tv/s-amlogic [1/1]
PD#SWPL-136205

Problem:
back sync with t5m openliux/tv/s-amlogic

Solution:
- configure spicc1 ss leading/trailing gap for local-dimming;
- add dirspi support in test entry;
- remove the limit of min_speed_hz.

Verify:
t5m

Change-Id: If84e2a5a5cac080f543c18988524da58fabeda0a
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2023-08-15 04:19:20 -07:00
Song Zhang ca5eec3f6c Audio: enable earc [1/2]
PD#SWPL-125362

Problem:
enable earc

Solution:
enable earc

Verify:
use A311D2_AN400 revC

Change-Id: Id208dc20e3e2d9d4b86d22199980cbe1176f079d
Signed-off-by: Song Zhang <song.zhang@amlogic.com>
2023-08-11 01:15:30 -07:00
qiankun.wang e1d5f7dc52 secmon: filter out secure monitor region [1/1]
PD#SWPL-135009

Problem:
The function 'within_secmon_region' can
not filter out secure monitor region.

Solution:
'within_secmon_region' will get the
'secmon_start_virt' from the dts,and filter
out secure monitor region.

Verify:
SC2

Change-Id: Ie434e66d2b7ca6f269c7f8c0e06e1f53807b8a24
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-08-10 06:19:31 -07:00
Hanjie Lin 875fa4747f isolcpus: add amlogic support and boot optimize [1/1]
PD#SWPL-119598

Problem:
system is too slow because the cpu5 is turned off
at system startup.

Solution:
turn on the cpu5 at system startup.

Verify:
SC2

Change-Id: I738fccb70c96d6495b314fa51cf319d5800c75a0
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2023-08-09 21:58:46 -07:00
qiankun.wang f5412875b9 secmon: modify the wrong config [2/2]
PD#SWPL-135009

Problem:
The config 'CONFIG_AMLOGIC_SEC' has been
converted to CONFIG_AMLOGIC_SECMON.

Solution:
delete the config 'CONFIG_AMLOGIC_SEC',and
add the config 'CONFIG_AMLOGIC_SECMON'.

Verify:
SC2

Change-Id: I664ce36b86af24ff3e92adcf31f6149ecf381dcb
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-08-09 04:29:35 -07:00
qing.zhang 4457fb8451 audio: pdm clk issue for lower/normal power [1/1]
PD#SWPL-128467

Problem:
1. when suspend && resume, the dclk sometimes not change to hifi

Solution:
add set parent instead of write reg directly

Verify:
t5m

Change-Id: I62509c2d71a4d3710e9f9fd9359c78397d0e8461
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2023-08-09 04:28:43 -07:00
junyi.zhao 16f8a44381 led: aw9523: optimize reset flow [1/1]
PD#SWPL-133498

Problem:
some board do not apply gpio for reset

Solution:
add soft reset flow

Verify:
sc2 ah212

Change-Id: I95c7f00b66dc7cd69209f1f8bc4e6e7447bf4535
Signed-off-by: junyi.zhao <junyi.zhao@amlogic.com>
2023-08-08 08:09:21 -07:00
Jianxiong Pan e49f1f08c5 mm: set aml smmu driver to ko. [1/1]
PD#SWPL-112188

Problem:
aml smmu need to meet requirement of gki2.0.

Solution:
try to set aml smmu driver to ko.

Verify:
build failed.

Change-Id: I8a6a1fc2312aaa82f68f7e97cc05be731d03ac49
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-08-08 08:09:01 -07:00
jiebing chen 1e307bf77e Audio: t3 disable audio clk and hifipll when enter into suspend [1/1]
PD#SWPL-128233

Problem:
hifipll need to disabled when suspend

Solution:
disable audio clk and hifipll when enter into suspend

Verify:
use T3

Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
Change-Id: Ie36eb6314afd5997be6f3a59ff4ac512b7002cf6
2023-08-08 02:57:58 -07:00
Shunzhou Jiang 855b70c393 mbox: mbox driver refactoring [1/2]
PD#SWPL-87115

Problem:
mbox driver refactoring

Solution:
mbox driver refactoring

Verify:
t7/t7c/t5m/sc2/s4/s4d/a1/c2/s5/t3x/t5w/g12b/sm1/txhd2

Change-Id: Ia3e5f9ff2b6de16a082e7f028fcc36dc4268856a
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2023-08-08 02:57:29 -07:00
qiang.cheng d19294a5dc uart: fix uart too many interrupt [1/1]
PD#SWPL-131844

Problem:
BT uart too many interrupt, lead to BT work abnormal

Solution:
use interrupt bottom half

Verify:
sm1_debian t7c_debian

Signed-off-by: qiang.cheng <qiang.cheng@amlogic.com>
Change-Id: I7427f65a3d29afe11c1d2831b74d0b4280fc9485
2023-08-07 19:58:39 -07:00
min.zhu ad2348088a vdin1: Configure the memory required for loopback [2/5]
PD#SWPL-130504

Problem:
using android api to record video layer content

Solution:
Configure the memory required for vdin1

Verify:
t7c

Change-Id: Id0a84dc8012f44a978ed08f9640c0c43845fb65c
Signed-off-by: min.zhu <min.zhu@amlogic.com>
2023-08-07 19:58:36 -07:00
zhiwei.zhang ac8689e9dc amlbian: fix mipi camera crash and preview [1/1]
PD#SWPL-133805

Problem:
null pointer access in ov5640 close function;.

Solution:
increase vm0 for mipi camera.
ov5640: no close if not open success;
ov5640: open & close function - allow only 1 user;

Verify:
local

Signed-off-by: zhiwei.zhang <zhiwei.zhang@amlogic.com>
Change-Id: I4bfc6520e8beaa90580fa6f8407eec592675a6bf
2023-08-07 04:18:39 -07:00
ziyi 350baab7d3 emmc: t3x: the tuning result of sdcard is not good [1/1]
PD#SWPL-133187

Problem:
the tuning result of sdcard is not good

Solution:
change the tuning method

Verify:
t3x

Change-Id: I6dfa108e7f9af9879a8f219b456f44e3054aeba3
Signed-off-by: ziyi <ziyi.huang@amlogic.com>
2023-08-07 00:18:54 -07:00
shu.wang 0dc4e70502 A1: Fixed TDM can't be recorded by ACODEC [1/1]
PD#SWPL-131864

Problem:
Currently A1 TMD cannot record sound through ACODEC.

Solution:
Modify A1 TDMIN register configuration.

Verify:
A1-A113L-T404

Change-Id: I131c8aa518ecce6f46454ffa3cd454f10f65801b
Signed-off-by: shu.wang <shu.wang@amlogic.com>
2023-08-06 03:58:41 -07:00
jialong.jiang 383596a279 dv: get osd status from blend reg. [1/1]
PD#SWPL-132893

Problem:
is_graphics_output_off error,
causing dv not reset core2a.

Solution:
get osd status from blend reg.
sc2/s4d not support multi core1.

Verify:
sc2/s5/t7.

Change-Id: I1a16a67c58044a979a27d824e17636243509dd42
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-08-04 00:39:01 -07:00
qinglin.li b71c32040c user: android R need build user [1/1]
PD#SWPL-131945

Problem:
android R need build user
fix DEBUG_FS use error

Solution:
disabled DEBUG_FS config when build user

Verify:
local

Test:
zcat /proc/config.gz |grep CONFIG_DEBUG_FS

Change-Id: I274d7e29d3c20a9b6f03bc306f8c9fa185b963c5
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-08-04 00:38:57 -07:00
haitao.liu 3c49de47b4 vdin: t5m enable scatter and enable double write while hdmi dolby input [1/1]
PD#SWPL-132134

Problem:
afbce was closed when hdmi input dolby

Solution:
1.t5m enable scatter by default
2.allow afbce+mif output when dolby input

Verify:
t5m

Change-Id: I92612719c8092e8e20e5bcd7ce93949d638dcaee
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-08-04 00:38:44 -07:00
Huqiang Qin f51985addb saradc: fix compilation issues [1/1]
PD#SWPL-131207

Problem:
Have compile problem

Solution:
AMLOGIC_IIO_KFIFO_BUF depends on !IIO_KFIFO_BUF

Verify:
SC2/AH212

Change-Id: I4f3197729f37fab5fbf434a1a1f994c1d50e7088
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-08-03 01:59:05 -07:00
jian zhou da3c49f0e6 audio: delete earc tx clock for chip which is only supported earc rx [1/1]
PD#SWPL-120286

Problem:
delete earc tx clock for chip which is only supported earc rx

Solution:
delete earc tx clock for chip which is only supported earc rx

Verify:
sm1

Change-Id: If9311761b89048d543d229a1e3d6998124f201a8
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2023-08-02 22:29:10 -07:00