Commit Graph

1622 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
zhou.han 64d81f220b hdmitx: use hdmitx log api instead of pr_info/pr_err [1/1]
PD#SWPL-141588

Problem:
5.15 code integration

Solution:
Delete log_level variables and nodes in tx20 and tx21 and
replace them with apis in hdmitx_log. Replace the pr_err
and pr_info of the tx module with the new API.

Verify:
ohm

Test:
print test

Change-Id: I7b4e7116cb009d0ff63f1868f801cb7e07bc9db0
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2023-10-30 18:56:51 +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
Jianxiong Pan 1f6599c5fd zapper: rename CONFIG_AMLOGIC_ZAPPER_CUT_C1A. [1/1]
PD#SWPL-140594

Problem:
rename CONFIG_AMLOGIC_ZAPPER_C1A.

Solution:
CONFIG_AMLOGIC_ZAPPER_CUT_C1A.

Verify:
build pass.

Test:
run on s1a board normally.

Change-Id: I3a8ab8d81af2c4d14b51c117ac16d75f3980adac
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-10-09 20:08:39 +08:00
Dezhi Kong bf7d2ffc12 gpu: update txhd2 gpu dvfs [1/1]
PD#SWPL-141553

Problem:
the fps is lower when test

Solution:
optimize the dfs of gpu

Verify:
txhd2

Change-Id: I7c0edb7979fbfe3c80bbce9d3f3be0fc4e623ec9
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2023-10-09 20:07:04 +08:00
Luan Yuan 56357b6ff2 fixed planck 32bit kernel error. [1/1]
Change-Id: I51b693958639371f0e98151546c8b0d7605fa6bd
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2023-10-08 14:38:02 +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
wenlong.zhang 43ce41ecaa drm: support fbdev zorder adjustment [1/1]
PD#SWPL-135486

Problem:
support fbdev zorder adjustment

Solution:
support fbdev zorder adjustment

Verify:
S4

Test:
DRM-OSD-92

Change-Id: I523e5656d9ad050b584015bb50afbfebc40763b3
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2023-09-25 20:36:04 +08:00
qiankun.wang 554b6bc61b zapper: restore some debug function [1/1]
PD#SWPL-139867

Problem:
vendor_hooks/debug_atrace/vmap_stack can't work.

Solution:
modify the defconfig to support these functions.

Verify:
SC2

Change-Id: I9effe4e034efbfe08cd22f472862925750becfc8
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-09-22 19:37:10 +08:00
song.han e2ab106c2c iotrace: record module base on last start [1/1]
PD#SWPL-136207

Problem:
use kprobe to forbid free module init text

Solution:
record module base and use offset to parse
this module symbol

Verify:
SC2_AH212

Change-Id: I43bd306e94e9a6a5afe6411a9cd9e93db0342b7a
Signed-off-by: song.han <song.han@amlogic.com>
2023-09-19 20:09:48 +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
Dezhen Wang 1bfff1f439 coverity: fix [1/1]
PD#SWPL-136722

Problem:
coverity errors

Solution:
fix the coverity errors

Verify:
local

Change-Id: I5b210b5c44ee6a0e34c1c8b9685fe2d38cd52b1b
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-09-13 20:37:08 +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
qinglin.li fefbde4c6c dmc_monitor: dmc irq lose when ddr access quickly [1/1]
PD#SWPL-137431

Problem:
dmc irq lose when ddr access quickly

Solution:
modify irq trigger IRQ_TYPE_LEVEL_HIGH to IRQ_TYPE_LEVEL_HIGH

Verify:
txhd2 && s1a

Change-Id: I824ce32a040321148c0feeb52ad0da40edd7e519
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-08-23 01:58:50 -07: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
Yan Wang bcc4b5145a DTS: update S805C1A CPU node. [1/1]
PD#OTT-47803

Problem:
S805C1A system can not enter suspend mode.

Solution:
update CPU node for disabling non-boot cpus.

Verify:
BF201

Change-Id: If243e6ade536d17f293f09c3afa52e8ad5ebdf88
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
2023-08-23 00:08:46 -07:00
Chengbing.wu 9fd75cb1da idle: txhd2 cpuidle tuning [1/1]
PD#SWPL-136572

Problem:
1. need to tuning idle parameter at txhd2 ;

Solution:
1. change latency and residency;

Verify:
BE319 #16 +corner CHIP #17

Change-Id: I87b48b79d3e3583ed1d92e348121cac08d569d4e
Signed-off-by: chengbing.wu <chengbing.wu@amlogic.com>
2023-08-23 00:08:37 -07:00
gerrit autosubmit c665eda878 Merge "vq: txhd2 dts enable video_queue and enable drm. [1/2]" into amlogic-5.15-dev 2023-08-22 22:14:27 -07:00
hui.li 97b4c15fe7 vq: txhd2 dts enable video_queue and enable drm. [1/2]
PD#SWPL-134534

Problem:
txhd2 dts not enable video_queue and not enable drm
only android T need, android p no need.

Solution:
create a new android t txhd2 dts to enable video_queue and enable drm

Verify:
txhd2 + T

Change-Id: I590cf2095b3dc47ed58924d3c628407eaf5daed5
Signed-off-by: hui.li <hui.li@amlogic.com>
2023-08-22 22:14:23 -07:00
Xingxing Wang a3770e55bc thermal: add shutdown callback in sensor driver [1/1]
PD#SWPL-136383

Problem:
poweroff power current is high

Solution:
add shutdown callback in sensor driver

Verify:
TXHD2

Change-Id: Idd38c485b9458e3a9c7b27b959f48a17c59dc89b
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-08-22 22:14:11 -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
yongbing.he 9da7a6fdd4 dts: CF1 nbr swupdate support. [2/2]
PD#SWPL-134034

Problem:
nbr swupdate support

Solution:
Add aw409 recovery dts

Verify:
C308L-AW409

Change-Id: I7e9f2bdd360124e13b0ed758a8bd52ca76462582
Signed-off-by: yongbing.he <yongbing.he@amlogic.com>
2023-08-22 04:23:39 -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
Chuan Liu ad568ac966 dvfs: s1a: change the cpu_clk freq from 1320M to 1296M [1/1]
PD#SWPL-136891

Problem:
If the cpu_clk frequency run to 1320M, eFuse related
functions may be affected

Solution:
change the cpu_clk freq from 1320M to 1296M

Verify:
s1a_bg209

Change-Id: I7af6604bf781a0229acc875aadf1dafe44896be9
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-08-21 00:09:06 -07:00
Dezhen Wang 5e98b5de96 configs: change configs for kernel 14 with 32bit for vts fail [1/1]
PD#SWPL-135501

Problem:
android u planck project vts fail because lose some configs

Solution:
add config CONFIG_CPU_FREQ_TIMES=y CONFIG_NET_ACT_MIRRED=y and
CONFIG_IFB=y

Verify:
planck

Change-Id: Ie78533a51f35b7db63f43d7942d621a92402d2d6
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-08-21 00:09:03 -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
Doosan Baek b1a409e5d8 KL/KT: Bring-up S1A kernel driver [1/1]
PD#SWPL-136793

Problem:
Bring-up S1A kernel driver

Solution:
Bring-up S1A kernel driver

Verify:
S1A

Change-Id: Idf1b9813568a9be40a006d61ac55d96b3c4c524a
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
(cherry picked from commit db751cfd26384bb39429ef7cbe0a32947531b955)
2023-08-18 04:04:22 -07:00
junyi.zhao f1b002217b LED: display: add LED display support [1/1]
PD#SWPL-136367

Problem:
there is no LED display driver

Solution:
support it

Verify:
s1a

Change-Id: I1232fa1d41d3c51b023ed08bcb9f4707011dcf91
Signed-off-by: junyi.zhao <junyi.zhao@amlogic.com>
2023-08-18 04:04:19 -07:00
Shunzhou Jiang fb9f387423 mbox: fix s4 mbox id fail [1/1]
PD#SWPL-136454

Problem:
device tree not right

Solution:
fix device tree

Verify:
s4

Change-Id: I92c3c08de4ac4781ee793a99850d58f5eb70e6cc
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2023-08-18 04:04:16 -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
Bing Jiang 20822a9ed8 yocto: rename partition name ENV to ubootenv [1/1]
PD#SWPL-136721

Problem:
rename partition name ENV to ubootenv

Solution:
rename partition name ENV to ubootenv

Verify:
S4D_BF201

Change-Id: I3fdc0fc140348f93d045d969c64b8982797ecc42
Signed-off-by: Bing Jiang <bing.jiang@amlogic.com>
2023-08-17 22:10:02 -07:00
Wenjie Qiao afe813a207 hdmitx: s1a bringup [1/1]
PD#SWPL-133151

Problem:
s1a bringup

Solution:
s1a bringup

Verify:
s1a

Change-Id: I52aa5f53e5d119488717e06f5e50cbc161a51a21
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-08-17 22:09:57 -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
qing.zhang ed90a2b58e Audio: kernel support features for s1a [1/1]
PD#SWPL-134941

Problem:
1. can't adjust volume in userspace
2. cvbs out and hdmitx with tdma
3. suspend
4. codec crash

Solution:
1. change i2shdmi source
2. change samesoure
3. suspend control
4. delay t9015 analog
5. enable efuse for build in modules

Verify:
use s1a

Change-Id: Ieffdc7a4bda09ca9846589b9d71beeb8699e49c2
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2023-08-17 06:14:48 -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
Ao Xu 969e6f7afc Revert "drm: txhd2 dts enable drm [1/1]"
This reverts commit d7ade65a86.

Change-Id: I26765cd1a3df7a53145fe75aeddad4f7067814d6
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-08-17 20:20:04 +08:00