Commit Graph

155 Commits

Author SHA1 Message Date
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
qi duan 7f6fba8cb2 eth: stmmac: move stmmac driver to common_driver for u [1/1]
PD#SWPL-152600

Problem:
stmmac driver move to common_driver for u

Solution:
stmmac driver move to common_driver for u

Verify:
ah212

Change-Id: I0edfb3bebbd2384d740ff6a4d3f6c162d8f5664d
Signed-off-by: qi duan <qi.duan@amlogic.com>
2024-01-05 05:05:55 -07:00
Lei Zhang c971573694 mm: fix 32bit kasan can't boot on T5W [1/1]
PD#SWPL-151061

Problem:
If enabled 32bit kasan on T5W, kernel can't boot, no matter VMAP enabled or not.
This case can't happen on T5D.

Solution:
flush cache after bss cleared

Verify:
on T5W

Change-Id: Ib63e22c31c625953d7011225cf92557e1d424ac7
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2024-01-04 20:21:49 -07:00
Jianxiong Pan 26b6f85585 mm: autopatch: add more to white trace list. [1/1]
PD#SWPL-145324

Problem:
trace cannot be used.

Solution:
add more to white trace list.

Verify:
local.

Change-Id: I06934ab63c72f91881f6b9ba2f11875f18f06833
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-01-02 04:13:37 -07:00
Lei Zhang edd8abb994 Revert "ANDROID: sched/rt: Add support for rt sync wakeups" [1/1]
PD#SWPL-142846

Problem:
2 rt task waken-up alternately, block normal task too long

Solution:
keep same with kernel-6.6

Verify:
on SC2

Change-Id: Iaa1347e5e2032633281cf9eac15de3254294749c
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2023-12-29 16:19:08 -07:00
Jianxiong Pan 447b6feeef mm: autopatch: fix 32bit kasan cant boot on T5W [1/1]
PD#SWPL-80202

Problem:
If enabled 32bit kasan on T5W with VMAP, kernel can't boot.
This case can't happen on T5D.

Solution:
Rootcause is bss cleared but real data keeps in cache, not flushed
into DDR, and physical kasan shadow page soon be mapped to shadow
memory while in shadow virtual address we see random data, which
caused kasan check failed in vmap fixup function and crashed. So
just add a dcache flush function call after bss cleared.

Verify:
T5W

Change-Id: If9834d3ebe8457fa4ef06e596ed0e136cf5cdd84
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-25 02:26:20 -07:00
xiangyang.yan bd53987bbe eth: optimize the fix of IP address loss after resume [1/1]
PD#SWPL-141158

Problem:
network IP address loss after resume

Solution:
optimize eth suspend/resume process to resolve network IP address loss
after resume

Verify:
T963D4-AY301-K8E#097

Change-Id: I6d0a566cb6be774401ed14aa00d470802f076354
Signed-off-by: xiangyang.yan <xiangyang.yan@amlogic.com>
2023-12-22 08:33:45 -07:00
qinglin.li 47ffe444bd workaround: workaround for TSB flush failures multiple handle [1/1]
PD#SWPL-149275

Problem:
workaround for TSB flush failures multiple handle

Solution:
remove multiple handle

Verify:
local

Change-Id: I27ffb5499df5094db3eda840e4dc552891ad05de
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-12-20 22:03:06 -07:00
Zhuo Wang b4c04158f4 eth: tuning exphy mode with s5 [1/1]
PD#SWPL-147959

Problem:
5.15 exphy not work

Solution:
tuning exphy mode with s5

Verify:
QA

Change-Id: If653e31f96c02be85caa25f2f1bb014e50f4d603
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2023-12-20 20:51:46 -07:00
Dezhen Wang 0074dca5ee mm: autopatch: open the trace event node for cts test [1/1]
PD#SWPL-148670

Problem:
https://scgit.amlogic.com/#/c/375286/
the patch closes some trace events nodes.it will lead to cts fail.

Solution:
set allow_trace_enable to 0 for opening the trace event nodes for cts
test

Verify:
local.

Change-Id: I175a72c123e3bf71926bd08ac61427fdf7c0c3e6
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-12-18 16:35:38 -07:00
Hao Shi c5890c0f69 zapper: close v4l2-m2m in zapper [2/3]
PD#SWPL-147419

Problem:
Zapper optimization v4l2.

Solution:
close CONFIG_AMLOGIC_VIDEOBUF_RESOURCE.

Verify:
BG201

Change-Id: Icc5a7de4a2bf2fba399dd0717fa3d92e383aa967
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2023-12-11 08:27:22 -07:00
yi.liu fc98545e00 amlbian: Support making dtb-deb [1/1]
PD#SWPL-106598

Problem:
Support making dtb-deb.

Solution:
Support making dtb-deb.

Verify:
local

Change-Id: I7214092c2d3fba27150fa719d85b39c8090b61b7
Signed-off-by: yi.liu <yi.liu@amlogic.com>
2023-12-11 06:18:45 -07:00
qinglin.li be4ff1dfed upgrade: kernel upgrade by Dec with kernel [1/1]
PD#SWPL-148305

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

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

Verify:
local

Change-Id: Ic64ae62d9dcbf2665433aa7ebec23a3cb0d70a35
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-12-07 06:38:04 -07:00
Jianxiong Pan e05a3e30ea mm: autopatch: remove useless printing of vendor in migrate. [1/1]
PD#SWPL-147434

Problem:
optimize printing.

Solution:
remove useless printing of vendor in migrate.

Verify:
local.

Change-Id: I1ed16b1499e5ea709dd0072e5cc1db5fe1fe1305
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-29 06:07:42 -07:00
Jianxiong Pan cb86efd3d4 scs: autopatch: size from 1k to 2k. [1/1]
PD#SWPL-146339

Problem:
may overflow in some case.

Solution:
expand scs size.

Verify:
t5m.

Change-Id: I72910fc922e7339d5c0ac51f702b55b7e92b4dcc
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-26 22:09:41 -07:00
qiankun.wang eb8a845bb9 auto-patch: update auto-patch. [1/1]
PD#SWPL-101774

Problem:
Version updates cause compilation errors.

Solution:
update auto-patch.

Verify:
sc2

Change-Id: Iac0c445169261e21cc679e0f742818a2ea582fef
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-11-21 02:51:50 -07:00
Jianxiong Pan 4b3adca752 autopatch: mm: change filecache reclaim policy of kswapd [1/1]
PD#SWPL-146346

Problem:
UI response is not quickly on TC8000 projects

Solution:
Change kswapd filecache reclaim policy. Do not reclaim page cache
with mapcount larger than 1 (shared by 2 processes or above) to help
keep more mapped file caches in LRU list.

Verify:
T5M

Change-Id: I081a92debe94af608071468487b122529e6cdbda
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-21 02:51:34 -07:00
xiangyang.yan b0b63e746c eth: fix network IP address loss after resume [1/1]
PD#SWPL-141159

Problem:
network IP address loss after resume

Solution:
add delay and re-enable MAC RX/TX after PHY restart auto-negotiation

Verify:
T950S-BE311-X5-X8-REF#020

Change-Id: Id217ddac546ea707543b1e4be4669e9d171d8fc1
Signed-off-by: xiangyang.yan <xiangyang.yan@amlogic.com>
2023-11-20 22:07:23 -07:00
Jianxiong Pan 125e74c596 mm: autopatch: add early_param for trace events white list. [1/1]
PD#SWPL-145324

Problem:
add early_param to switch in bootload.

Solution:
add early_param for trace events white list.

Verify:
local.

Change-Id: I4179e804433c61036c22868664e8c89552c5eb50
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-20 03:15:11 -07:00
Jianxiong Pan f63c393b2b mm: autopatch: reduce print for cma pool in low memory zone. [1/1]
PD#SWPL-145369

Problem:
reduce print.

Solution:
low-end memory boards do not print
reducing the printed information.

Verify:
local.

Change-Id: Ifafde92bdcb8f7726ee6f184f995772f9385beef
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-17 02:36:32 -07:00
yao zhang1 94a6e1a5a3 Bootup: Use the async method to add sysfs params [1/2]
PD#SWPL-133241

Problem:
Add sysfs params too slow.

Solution:
Use async add sysfs params when kernel builtin.

Verify:
g12a

Change-Id: Ic383394f0ed80b173109dcc91ea1878087a81d50
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2023-11-17 02:35:49 -07:00
Jianxiong Pan a926728ef3 mm: autopatch: add white list for trace event [1/1]
PD#SWPL-145324

Problem:
There are too many trace event inodes

Solution:
Add white list for trace event, this can save about 10MB memory

Verify:
t5m

Change-Id: I7ecd89ba145e37c52d51842c1ab52f34a38ebdab
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-14 06:26:07 -07:00