Commit Graph

176 Commits

Author SHA1 Message Date
Jing Li1 64c7e3bfb1 Revert "Demux: Add api for multi2 [1/2]"
This reverts commit febc85e083.

PD#SWPL-183570

Revert multi2 api because it is not compatible with some old projects.

Change-Id: I209e83a07af6096234789ff7993ea3f6befa3d45
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-08-27 05:57:23 -07:00
zhikui.cui 3adc014301 NAND: fix mtd_device_parse_register panic [1/1]
PD#SWPL-183416

Problem:
mtd_device_parse_register panic when parse_mtd_partitions
return -EPROBE_DEFER

Solution:
nvmem_unregister otp_user_nvmem/otp_factory_nvmem
if them existing

Verify:
BR309-T950D5_SOCKET #48

Change-Id: I4ba5050f53952f1e4ddd46c5c1d48f34c63b19ad
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-08-27 02:47:56 -07:00
jing.li1 febc85e083 Demux: Add api for multi2 [1/2]
PD#SWPL-181881

Problem:
S6 need to support multi2

Solution:
Add api for multi2

Verify:
Verified on bl201

Change-Id: Ifb6d02d198efacea99c1360ec37d2d5de7b79086
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-08-22 23:49:05 -07:00
Tao Zeng 187ca993ca t6d: amfc: use device config and compress uImage
PD#SWPL-181954

Problem:
uImage not decompressed by AMFC

Solution:
1, change zstd tools to append size at end of uImage;
2, change scripts to support uImage decomperss by AMFC

Verify:
t6d

Change-Id: I2f2465a2247085c150a1c7f42ede688011745071
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-08-22 14:40:36 +08:00
qinglin.li f5f881670d upgrade: kernel upgrade by July with kernel [1/1]
PD#SWPL-169224

Problem:
update include/linux/upstream_version.h
fix conflict

Solution:
update include/linux/upstream_version.h
fix conflict

Verify:
local

Change-Id: I032f25e9054eeda9ad10dd7e6a20a184787d8518
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-08-02 03:44:28 -07:00
qinglin.li 3c44b9422f build: fix date format due to build failed [1/1]
PD#SWPL-179932

Problem:
date format due to build failed

Solution:
fix date format due to build failed

Verify:
local

Change-Id: I8bbaa3b50b2dea784f51c999e0244d3a94137881
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-08-01 00:02:54 -07:00
qinglin.li f1c62ecb2a build: fix date format due to build failed [1/1]
PD#SWPL-179932

Problem:
date format due to build failed

Solution:
fix date format due to build failed

Verify:
local

Change-Id: I54236f7d11fedd79f1021fe8fdb1954f4e991419
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-07-31 23:39:04 -07:00
Qinglin Li 268f88c573 Revert "bazel: fix date format due to build failed [1/1]"
This reverts commit 37b9696c9f.

Change-Id: Iccde8bb6ef0156fce077841d4eb6b9e2e8136165
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-07-31 23:26:23 -07:00
qinglin.li 37b9696c9f bazel: fix date format due to build failed [1/1]
PD#SWPL-179932

Problem:
date format due to build failed

Solution:
fix date format due to build failed

Verify:
local

Change-Id: I150cb90ef0f9d44ee4a355885de8332e2f1ce67f
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-07-31 20:10:38 -07:00
qinglin.li eefcce1d57 scripts: support customer dir dts [1/1]
PD#OTT-62864

Problem:
support customer dir dts

Solution:
support customer dir dts

Verify:
local

Change-Id: Ic09d7eb113df5a9735a2d8f0732544f3adec9730
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-07-25 06:07:44 -07:00
Qinglin Li 7b2ea218b7 yocto needs to be compatible with the previous kernel version 5.4, and is assigned to the amlogic directory by default.
Revert "scripts: support customer dir dts [1/1]"

This reverts commit 435a1dbfda.

Change-Id: I79ac10b4918cd94dbdc307662e5481915f7fa8d1
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-07-24 02:07:56 -07:00
qinglin.li 435a1dbfda scripts: support customer dir dts [1/1]
PD#OTT-62864

Problem:
support customer dir dts

Solution:
support customer dir dts

Verify:
local

Change-Id: I83ca376102fbcba3aeaad328cfe7a943173d15f8
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-07-23 06:06:01 -07:00
Long 3bf8b4602d eMMC: Optimize r/w performance. [1/1]
PD#SWPL-170009

Problem:
Synchronous run queues cause eMMC performance degradation.

Solution:
Asynchronous Run work queue.

Verify:
T3

Change-Id: Ibf0b0ea76a1a6edb18b52f96296aaf91f6bd04f1
Signed-off-by: Long <long.yu@amlogic.com>
2024-07-22 23:55:45 -07:00
qinglin.li 71c0eed79d scripts: optimize build time [1/1]
PD#SWPL-172042

Problem:
optimize autopatch run time

Solution:
autopatch Asynchronous loading based on directory.
Fetch git information only once, based on directory.
mod_probe function use array instead of file can save time

Verify:
local

Change-Id: Ica47d23a867ce1aa5b534d7bfa0a85db33a37f5f
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-07-22 20:11:47 -07:00
nengwen.chen 99cc4f1e75 dtv_demod: fix all get_frontend and code optimize (V3.5.048) [1/1]
PD#SWPL-176015

Problem:
fix all get_frontend.
update current search frequency when blind scan.
code optimize.

Solution:
fix all get_frontend.
update current search frequency when blind scan.
code optimize.
AMLDTVDEMOD_VER "V3.5.048".

Verify:
T5D/T5M/T5W.

Change-Id: Ib49df5dc1f4590815376b243d5741d43c8be2db0
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2024-07-21 23:13:23 -07:00
Long f0b480d4f1 eMMC: support amlogic CQE v2. [1/1]
PD#SWPL-160981

Problem:
The CQE v1 does not support placing tasks in memory
and does not support data encryption.

Solution:
support CQE v2

Verify:
S7 ax201

Change-Id: I0737d7b2b9e955838a9f3294d1f5faf5fd84aa17
Signed-off-by: Long <long.yu@amlogic.com>
2024-06-30 22:01:20 -07:00
qinglin.li b287e54ab6 freertos: C3 fix rtos lose frame [1/2]
PD#SWPL-175077

Problem:
C3 doorbell lose frame

Solution:
Optimize ISP and encoder processes

Verify:
c3

Change-Id: Ief888fb4d5e9a7e93af94487dc92eeadbe22c7e1
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-06-26 23:06:06 -07:00
Yahui Han e6abd60c04 demux: update aml_demux_ext. [1/1]
PD#SWPL-160394

Problem:
needs to extend demux struct for t5d sw demux.

Solution:
extend and update combined dvb patch file.

Verify:
T5D

Change-Id: I30d63c2961bbb58f139809a54213c2fb64ff6658
Signed-off-by: Yahui Han <yahui.han@amlogic.com>
2024-06-26 23:06:02 -07:00
Tao Zeng 1ca8311a90 amfc: add aml erofs ko to suppor hardware [1/2]
PD#SWPL-173093

Problem:
build in erofs do not support amfc hardware

Solution:
add aml erofs ko to support it

Verify:
s7d bm201

Change-Id: I89ef060fabaca2f4d7cbaf26b552ba147c73f539
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-06-24 20:04:09 -07:00
Jianxiong Pan 66426f2f7b mm: print message when cma alloc too long. [2/2]
PD#SWPL-173433

Problem:
add cma debug information.

Solution:
print more info when cma alloc too long.

Verify:
local.

Change-Id: Ib5ca53a017b05e9327e87ebdf5267c5d2a63e9e2
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-06-19 23:57:04 -07:00
Jianxiong Pan a37c936bc2 mm: autopatch: remove kallsyms optimization. [2/2]
PD#SWPL-174294

Problem:
no data symbols in /proc/kallsyms.

Solution:
add --all-symbols parameter.

Verify:
local.

Change-Id: I595e55f017eafcd2158551645f27682b15834f73
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-06-19 22:11:12 -07:00
chuangcheng.peng 0734d2c370 demux: provide ioctl to clear dmx cache [2/2]
PD#SWPL-169716

Problem:
provide ioctl to clear dmx cache

Solution:
provide ioctl to clear dmx cache

Verify:
verified at T5W

Change-Id: Ia439290f1dcc157ba95f97dbb4c38960497615eb
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-05-29 19:10:45 -07:00
Liang Yang e698a6054d mtdblock: mtdblk_dev not refer to mtdblk_pbbt [1/1]
PD#SWPL-169271

Problem:
wrong pointer reference is used in container_of()

Solution:
fix wrong pointer reference

Verify:
s1a_bg201

Change-Id: I26d83c82ad2dc5e34b4003afa735bd497f52ed46
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
2024-05-20 23:56:06 -07:00
Tao Zeng 916e1b7f7f amfc: using source code for zstd tools [1/1]
PD#SWPL-169230

Problem:
Previous commit https://scgit.amlogic.com/#/c/427562/ including a
close source binary for zstd compress, which have license problems

Solution:
1, remove this binary in auto-patch;
2, add source code for this binary

Verify:
S7D

Change-Id: Ic0355b6ad3d0d91a9772d007fa2c9797f18004b1
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-05-20 22:39:43 -07:00
Tao Zeng c2ce371c4a amfc: add amfc driver support [1/1]
PD#SWPL-137614
PD#SWPL-163213

Problem:
No amfc driver

Solution:
add it:
1, basic driver for AMFC
2, EROFS support
3, kernel compressed by ZSTD support

Verify:
pxp

Change-Id: I45d2e308d209e35edba626619072aae93c4d0f56
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-05-15 02:28:22 -07:00
Jianxiong Pan 03ace03347 mm: autopatch: rename the config of devicetree node optimization. [1/1]
PD#SWPL-155289

Problem:
some project need the devicetree nodes.

Solution:
rename the config.

Verify:
local.

Change-Id: Ic3a4ee0f712ede0e94b8bf06ff1bd38d6e0b9cd3
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-05-09 10:26:32 +08:00
zhikui.cui 70e40c88ee mtdblock: fix report mtdblock size wrong when meet bad block [1/1]
PD#SWPL-168212

Problem:
mtdblock report partition size wrong when meet bad block.
the problem is bring from commit <13f288bad852>
(mtdblock: improve mtdblock performance)

Solution:
correct the decrease size when meet bad block

Verify:
C3_C308L_AW419_SOCKET_V01_R05

Change-Id: I0f4641f075e3613133908d85389ad0ea8cf85d0b
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-05-08 03:56:38 -07:00
Jiucheng Xu b3ce6bdbe6 f2fs: revert f2fs preserve direct write semantics [1/1]
PD#SWPL-165832

Problem:
The patch clean file cache and impact direct IO performance

Solution:
revert to improve direct IO performance.

Verify:
T7

Change-Id: I349d40ac2af425bbd969256c27fda6e810f9085d
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
2024-05-08 01:58:30 -07:00
Jianxiong Pan 87a852af1a mm: autopatch: reduce kernel code size. [1/1]
PD#SWPL-155289

Problem:
memory optimization.

Solution:
reduce kernel code size.

Verify:
t5d.

Change-Id: Ifd2d670cb1dfbfbaebefbaada1fd624375fe010b
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-04-21 20:44:21 -07:00
qinglin.li 28fc89876b upgrade: kernel upgrade by Feb with kernel [1/1]
PD#SWPL-157933

Problem:
update include/linux/upstream_version.h
fix conflict

Solution:
update include/linux/upstream_version.h
fix conflict

Verify:
local

Change-Id: I27e2a0c4170716520b33858fb10a5cef5c0a103d
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-04-17 19:31:20 +08: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
Jianxiong Pan 8a48e95e63 mm: autopatch: remove devicetree node. [1/1]
PD#SWPL-155289

Problem:
memory optimization.

Solution:
remove devicetree node.

Verify:
t5d.

Change-Id: I74a7d614e016573000a345246dcc8f73d34dc04d
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-03-23 21:48:58 -07:00
haotian.qu 34fd144094 fdtoverlay: fdtoverlay support delete dts node. [1/1]
PD#SWPL-150301

Problem:
Fdtoverlay cann't support remove unnecessary dts node.

Solution:
Add __removenode__ key work to support the function.

Verify:
local

Change-Id: Ia33f089e12bc801a789b0309f9b5681011cf15a0
Signed-off-by: haotian.qu <haotian.qu@amlogic.com>
2024-03-22 00:12:43 -07:00
shufei.zhao fb5750666a binder: fix binder build error because print format [1/1]
PD#SWPL-161179

Problem:
binder build error because print format

Solution:
fix binder build error because print format

Verify:
autosh

Change-Id: I840a62b50c0eb4770822fe01c7a94abe49ba136c
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
2024-03-18 01:53:20 -07:00
Hao Shi 650f5ca4c8 autopatch: Adjust gfp_flag according to the order [1/1]
PD#SWPL-153208
PD#SWPL-131346

Problem:
Modify in vb2 did not following gki2.0

Solution:
The modify in vb2 only for versions prior to
androidT and do not need to follow gki2.0. Now
use the new config to pass gki check.

Verify:
gki check

Change-Id: I4be66b8b06f9870041afefe9506d1e9f480c0bdd
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-03-14 20:47:25 -08:00
qinglin.li 7a681f79c6 upgrade: kernel upgrade by Feb with kernel [1/1]
PD#SWPL-157933

Problem:
update include/linux/upstream_version.h
fix conflict

Solution:
update include/linux/upstream_version.h
fix conflict

Verify:
local

Change-Id: I13c92d8bf2c8a51057cb3e49450835dbfabab550
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-14 04:40:57 -08:00
Jianxiong Pan 0d6f0bc0ef mm: autopatch: fix list_del corruption enable kasan. [1/1]
PD#SWPL-158398

Problem:
reboot test crash when enable kasan.

Solution:
fix list_del corruption in page alloc

Verify:
t7c.

Change-Id: I2701b1ab32e524383a046c8e0efc5058205d1bd2
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-03-13 18:59:20 -08:00
Jianxiong Pan 6b6db0371d mm: autopatch: use CONFIG_AMLOGIC_MEMORY_OPT for system heap. [1/1]
PD#SWPL-155289

Problem:
system heap optimization.

Solution:
use CONFIG_AMLOGIC_MEMORY_OPT

Verify:
local.

Change-Id: I34b57af27c507f6eff172829d8a4b50c0ee2b200
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-03-07 02:59:35 -08:00
Jianxiong Pan 3840fa6ece mm: autopatch: use the select zstd compress level 1 default. [1/1]
PD#SWPL-57667

Problem:
select zstd level 1 default.

Solution:
use CONFIG_AMLOGIC_MEMORY_OPT.

Verify:
local.

Change-Id: I90bd34d668eff5fe4dc14b95328c856a9c7b7d29
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-03-07 01:50:20 -08:00
zhikui.cui 13f288bad8 mtdblock: improve mtdblock performance [1/1]
PD#SWPL-157951

Problem:
mtdblock io performance

Solution:
mtd disk block size set to mtd writesize

Verify:
AT301_T962D4-K35E(1.5G)#256

Change-Id: I5663e8194f95ec76a06d8db4496ad74e1cdcc9bc
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-02-27 01:59:40 -08:00
Jianxiong Pan 75eac940a4 crypto: add parameters to control zstd compress level [1/1]
PD#SWPL-158570

Problem:
ZSTD compress level is fixed

Solution:
add module parameters to control it. By default, set
compress level to 1

Verify:
txhd2.

Change-Id: Ie3f99aa58f15d68c2c8b1bc1bc55596a51dd7e12
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-02-26 20:51:49 -08:00
nengwen.chen fa399a4c5e dvb-core: add support SYS_DVBC_ANNEX_B and C in dvbv3 [1/1]
PD#SWPL-156400
PD#TV-109289

Problem:
SET_FRONTEND fail when use SYS_DVBC_ANNEX_B.

Solution:
add support SYS_DVBC_ANNEX_B and C in dvbv3.

Verify:
T5D.

Change-Id: I2323abdff04d77affb8ef565694ae2d406755550
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2024-02-21 23:51:16 -07:00
Jianxiong Pan 7a6fd8709e mm: remove changes that raised kswapd priority. [1/1]
PD#SWPL-155289

Problem:
high priority of kswapd leads to cpu loading.

Solution:
remove changes that raised kswapd priority.

Verify:
local.

Change-Id: I31e28d7d28b782aeddea27cd2750708264c54145
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-02-19 23:51:22 -07:00
qiankun.wang 0f9b8fb4de iotrace: kernel14-5.15: iotrace vendor hooks. [1/1]
PD#SWPL-142603

Problem:
iotrace read/write use vendor hooks in kernel14-5.15

Solution:
iotrace read/write use vendor hooks.

Verify:
sc2_ah212

Change-Id: I56e5b1f17ac8ef805be879891f70a57146e71c33
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-02-02 04:06:18 -07:00
zhikui.cui 86f57a83a2 nand: fix some flash full id match wrong [1/2]
PD#SWPL-155674

Problem:
strncmp can't match full id 01h,DCh,00h,05h,04h(S34ML04G300BHI00)
and 01h,DCh,00h,1Ah,00h(S34ML04G300TFI000)

Solution:
use memcmp to compare ID memory instead strncmp

Verify:
AT301_T962D4-K35E(1.5G) #256

Change-Id: I3c43e646b197ac1843ec3d6dd2a7bdb7ff0b6a3d
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-01-30 04:03:43 -07:00
qiankun.wang 89a73decb1 iotrace: iotrace vendor hooks and optimization [2/2]
PD#SWPL-142603

Problem:
iotrace read/write use vendor hooks.
iotrace optimization

Solution:
iotrace read/write use vendor hooks.
iotrace optimization

Verify:
sc2_ah212

Change-Id: If69ed5dce03ffa53f1c4819659fb80dfcad767c5
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-01-25 22:27:19 -07:00
Wanwei Jiang 089e1df8bc autopatch: support autopatch for linux [1/1]
PD#SWPL-154292

Problem:
support autopatch for linux

Solution:
support autopatch for linux

Verify:
local

Change-Id: Idaae5f82e6e07c89781ab53cf1a436cbdac36fe1
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-01-17 03:08:01 -07:00
he.he a15918b950 usb: Delet usb auto-patch and config CONFIG_AMLOGIC_COMMON_USB [1/1]
PD#SWPL-134919

Problem:
cts failed for gki_20

Solution:
Delet usb auto-patch and
config CONFIG_AMLOGIC_COMMON_USB for gki

Verify:
t7c

Change-Id: I2ad79946ea15c946eff51653f174137fd561102a
Signed-off-by: he.he <he.he@amlogic.com>
2024-01-09 08:13:08 -07:00
Jianxiong Pan 5b4915ca4f mm: autopatch fix typo defects. [1/1]
PD#SWPL-80202

Problem:
misspelled word defect.

Solution:
fix typo defects.

Verify:
local.

Change-Id: I40a3683f0cd229d67c42d98c7280a6019621aab6
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-01-09 06:13:19 -07:00
Chengbing.wu b1f4bf058f regulator: common14_k5.15 common driver trunk bringup patches [1/2]
PD#SWPL-135783

Problem:
1. need use regulator to delay dvfs voltage set;
2. for boot to kernel vddcpu/vddee voltage
change to max problem;

Solution:
1. (add dvfs delay time at s7 pxp) at 374414;
2. add init voltage at txhd2 trunk;

Verify:
build pass

Change-Id: I8d5a2750d3ab5df2d949be710db5f1adf3659cb7
Signed-off-by: chengbing.wu <chengbing.wu@amlogic.com>
2024-01-05 08:13:52 -07:00