Commit Graph

148 Commits

Author SHA1 Message Date
qinglin.li 345624d5ac auto_patch: add kernel build tool autopatch [1/1]
PD#SWPL-160422

Problem:
add kernel build tool autopatch

Solution:
add kernel build tool autopatch

Verify:
sc2

Change-Id: Ic968e15dec6c802a5524374083afe9197bad0cb4
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-06-27 12:12:51 +00:00
yali.zhang f6f5683f1a demod: Demod & Tuner bring up [1/1]
PD#SWPL-160536

Problem:
kernel 6.6 Demod & Tuner bringup

Solution:
Demod & Tuner bring up

Verify:
verified at sc2

Change-Id: I496de78e52184a1074a8752d324696171aacfbc1
Signed-off-by: yali.zhang <yali.zhang@amlogic.com>
2024-06-05 02:26:13 -07:00
qinglin.li 6026507a76 mmc: upstream fix kmalloc not init to zero [1/1]
PD#SWPL-168953

Problem:
upstream fix kmalloc not init to zero

Solution:
upstream fix kmalloc not init to zero

Verify:
sc2

Change-Id: I188630ef21ca74dd61e2605151983c90201606fc
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-05-16 16:11:58 +08:00
zhikui.cui 3d1633d3ae 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: Ib59984781c79a46acf19dd9dd88a64806746b91b
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-05-06 09:11:22 +00:00
Ruixuan.li 9e616bfaea emmc: tee operation rpmb failed [1/1]
PD#SWPL-156093

Problem:
kernel 6 add a flag variation in struct mmc_blk_ioc_data
but set value to flag before use it, so it can be any value

Solution:
memset mmc_blk_ioc_data flag to 0

Verify:
a4

Change-Id: I7efbad65b8023682fe6f6ac159cbb4446a3193b7
Signed-off-by: Ruixuan.li <ruixuan.li@amlogic.com>
2024-04-21 22:34:22 -07:00
Jianxiong Pan 362f8d1bd4 mm: fix check_heap_object error. [1/1]
PD#SWPL-156093

Problem:
slab optimite cause the copy_from_user check error.

Solution:
bypass the check for slab large allocation.

Verify:
local

Change-Id: Ia856bf79243e12a570b3854766b0707f7f5f92c1
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-04-15 01:45:36 -07:00
qinglin.li c145d36fac upgrade: upgrade kernel [1/1]
PD#SWPL-163225

Problem:
upgrade kernel

Solution:
upgrade kernel

Verify:
sc2

Change-Id: I31a1d23ee1a6ee12344d6fd3302e45a6e88ecbf6
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-04-02 04:59:27 -07:00
haotian.qu 0685ce90ac 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: Ia586fdd02b9be1d227ab527c3bbf363ab1ff4604
Signed-off-by: haotian.qu <haotian.qu@amlogic.com>
2024-03-22 00:12:38 -07:00
Wanwei Jiang 05ed255586 upgrade: android15-6.6 in 2024/03 [2/2]
PD#SWPL-160463

Problem:
record merge upstream information

Solution:
AML_KERNEL_VERSION      4
UPSTREAM_VERSION        "23e5041bd90d"
AML_PATCH_VERSION       "23e5041bd90d"
MERGE_DATE              "2024-03-13"

Verify:
a4/a5

Change-Id: I9e5545565e80832b588add194e1b22b1101cbfe4
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-03-14 19:02:50 +08:00
zhikui.cui da5316f69f mtdblock: improve mtdblock performance [1/1]
PD#SWPL-157951

Problem:
mtdblock io performance

Solution:
mtd disk block size set to mtd writesize

Verify:
BA409-A113L2_SOCKET #10

Change-Id: I9a3460552e5a7b53ed813b0c6b0984a81570dc9b
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-02-27 02:55:25 -08:00
qiankun.wang 39148c4643 iotrace: iotrace vendor hooks and optimization [1/1]
PD#SWPL-149337

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-29 04:02:16 -07:00
Wanwei Jiang ba45b5379c kernel: upgrade on 20240122 [1/1]
PD#SWPL-155082

Problem:
upgrade on 20240122

Solution:
upgrade on 20240122

Verify:
a4/a5 sc2

Change-Id: Ic1a3a420615107dec3847c7cc3a84d324c248844
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-01-22 19:41:35 +08:00
Wanwei Jiang a0db25932d 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-21 19:28:46 -07:00
Lei Zhang 41cd7520e1 module: bypass when check version fail [1/1]
PD#SWPL-149337

Problem:
n/a

Solution:
bypass when check module version fail

Verify:
on a4

Change-Id: I01b6bcb689862c865db549768bede3123df04c96
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2024-01-18 02:07:28 -07:00
Hanjie Lin 8e35d620c0 debug: sched: bringup [1/1]
PD#SWPL-150085

Problem:
debug sched compatible

Solution:
debug sched compatible

Verify:
sc2/a5

Change-Id: I4d4d70dd03655a4f8a2beb034aae4826fd82fec8
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2024-01-16 20:29:42 -07:00
Chengbing.wu 43c9f137d7 regulator: common15_k6.6 common driver bringup patches [1/1]
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 a4/a5 k6.6) at 374414;
2. add init voltage at txhd2 trunk;
(add patch for a4 a5 k6.6 usb suspend issue, 384999)

Verify:
build pass

Change-Id: I8d5a2750d3ab5df2d949be710db5f1adf3659cb7
Signed-off-by: chengbing.wu <chengbing.wu@amlogic.com>
2024-01-14 19:38:34 -07:00
Wanwei Jiang 9e97825b1e kernel: upgrade on 20240112 [1/2]
PD#SWPL-153832

Problem:
upgrade on 20240112

Solution:
upgrade on 20240112

Verify:
a4/a5 sc2

Change-Id: Ia5fafbfd5e2e31f06ebf6f5a1cc973b40ab922f1
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-01-12 11:52:01 +08:00
Jianxiong Pan 18f46326f0 mm: autopatch: add more to white trace list. [1/1]
PD#SWPL-150034

Problem:
trace cannot be used.

Solution:
add more to white trace list.

Verify:
local.

Change-Id: Ie6a6cf45ceaf682bd3451917dd574a647712d2dc
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-01-02 19:48:15 -07:00
Dezhen Wang de15ed0e95 bring up: rename autopatch about vendor hook android_rvh_place_entity [1/1]
PD#SWPL-151469

Problem:
the autopatch cannot patch to common with old name

Solution:
rename autopatch about vendor hook place_entity in commit cf74d1cb69

Verify:
local

Change-Id: Ifb08df2ee26ac814d250bebaa055c289615e6fa0
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-01-02 10:37:49 +00:00
Dezhen Wang cf74d1cb69 bring up: add vendor hook android_rvh_place_entity for kernel6.6 [1/1]
PD#SWPL-151469

Problem:
vendor hook android_rvh_place_entity do not exist in kernel6.6. Add it
in autopatch temporarily.

Solution:
add vendor hook android_rvh_place_entity for scheduler optimize
when debug

Verify:
local

Change-Id: I1c58b88090fd1e4ab8aff907532f417bc84971f8
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-01-01 23:23:28 -07:00
Jianxiong Pan 926173f38f mm: autopatch: add aml fake smmu for pcie. [1/2]
PD#SWPL-150034

Problem:
support pcie whitelist.

Solution:
add aml fake smmu for pcie.

Verify:
local.

Change-Id: Ifff12d10d2fd7d234f3ab9330136cbc1a8b50827
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-28 21:53:55 -07:00
xiangyang.yan 6d80d282af eth: transfer stmmac driver source files [1/1]
PD#SWPL-149500

Problem:
transfer stmmac driver source files

Solution:
transfer stmmac driver source files
from common/drivers/net/ethernet/stmicro/stmmac
to common/common_drivers/drivers/net/ethernet/stmicro/stmmac

Verify:
A113L2-BA400-DEV#033

Change-Id: Ib17eb1b526ae4163f9fc608b12ea3b318704e5c5
Signed-off-by: xiangyang.yan <xiangyang.yan@amlogic.com>
2023-12-28 19:11:05 -07:00
Jianxiong Pan 70a8609d84 mm: autopatch: add slab trace support. [1/2]
PD#SWPL-150034

Problem:
no slab trace.

Solution:
add slab trace support.

Verify:
local.

Change-Id: I1b7ecf46acdc5b0e9a3df6101c1954762392e03b
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-28 19:47:47 +08:00
Jianxiong Pan ebd5482181 mm: autopatch: add white list for trace events. [1/1]
PD#SWPL-150034

Problem:
There are too many trace event inodes

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

Verify:
local.

Change-Id: I339ed6a95313335a1d94ce4aab479c2422c3d334
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-28 19:47:36 +08:00
Jianxiong Pan b5003de0bf mm: autopatch: add CONFIG_AMLOGIC_LINUX_S_OPTIMIZE for optimize. [1/1]
PD#SWPL-150034

Problem:
kernel size if too big.

Solution:
remove some configs.

Verify:
local.

Change-Id: I51b5cf892969bdc78b3ecaa2ca25665f6656e75a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-28 19:47:17 +08:00
Jianxiong Pan 1c7292502e mm: autopatch: add pin locked file. [1/2]
PD#SWPL-150034

Problem:
add pin locked file.

Solution:
add pin locked file.

Verify:
local.

Change-Id: Ia9685d9ffd332fd420a45317310a00e5ed042759
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-28 18:33:57 +08:00
Jianxiong Pan 41592d074b mm: autopatch: add user fault support. [1/2]
PD#SWPL-150034

Problem:
add user fault support.

Solution:
add user fault support.

Verify:
local.

Change-Id: If03ec35713f0d8d65fcae3295f8833d7b26aa0e1
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-28 17:06:11 +08:00
Jianxiong Pan 541ea28331 mm: autopatch: add memory extend support. [1/2]
PD#SWPL-150034

Problem:
add memory extend support

Solution:
add memory extend support.

Verify:
local.

Change-Id: If79a09ac0cb6ea50b7fd8b41423dbf95951deb13
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-28 01:09:16 -07:00
Jianxiong Pan 7bd0e5c3f5 mm: autopatch: add mem debug support. [1/1]
PD#SWPL-150034

Problem:
No mem debug.

Solution:
porting it from 5.15.

Verify:
local.

Change-Id: I74d8f6add93e162abdb8fe964bcd7fdea974825d
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-28 01:08:23 -07:00
Jianxiong Pan 576236afbe mm: autopatch: porting CMA optimization from 5.15 [1/2]
PD#SWPL-150034

Problem:
No cma optimization on 6.6

Solution:
porting CMA optimization from 5.15

Verify:
local.

Change-Id: I738daac3e0d880913dc44f848fea53749146bd31
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-27 23:13:54 -07:00
Jianxiong Pan 20251a4abe mm: autopatch: enable pagetrace for amlogic-6.6. [1/2]
PD#SWPL-150034

Problem:
enable pagetrace for amlogic-6.6.

Solution:
update the function interface according to 6.6.

Verify:
local.

Change-Id: Ic257caa3b507dcadb999de3dbc94c0aef22b4b0a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-27 19:57:23 +08:00
he.he 19c1b404b2 usb: move xhci and dwc3 code to common_drivers [1/1]
PD#SWPL-149504

Problem:
move xhci and dwc3

Solution:
move xhci and dwc3

Verify:
a4

Change-Id: I50b09d317b63f7f449a2b3ed57037228b7a3c0db
Signed-off-by: he.he <he.he@amlogic.com>
2023-12-26 00:36:51 -07:00
Dezhen Wang e93cf9ea7f kernel6.6: bring up fix some code problem [1/1]
PD#SWPL-150782

Problem:
bring up kernel6.6

Solution:
fix some code problem

Verify:
sc2 c2 a4 a5

Test:
local

Change-Id: I6b9affa83e6d46f6b857f4b542991bc70de4bfb5
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-12-21 00:09:33 -07:00
Wanwei Jiang 43461aec82 kernel6.6: bring up [1/1]
PD#SWPL-145682

Problem:
bring up kernel6.6

Solution:
1. porting kernel6.6
2. compatible with different kernel versions
3. bring up kernel6.6

Verify:
sc2 c2 a4 a5

Test:
None

Change-Id: Ie22af0abc8ea96261e8a8cc7804b58565aedd904
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-14 16:55:55 +08: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
Jianxiong Pan 0d5fca939b mm: autopatch: reduce size of scs. [1/1]
PD#SWPL-145324

Problem:
scs cost too many memory, 4kb per thread;

Solution:
reduce it to 1kb per thread

Verify:
local

Change-Id: I850a6c3fefa26d12527bd8e011a1de347079b865
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-14 06:26:03 -07:00
qinglin.li d604c3f806 dmc_monitor: reserved zero address and enabled dmc monitor [1/1]
PD#SWPL-144091

Problem:
reserved zero address and enabled dmc monitor

Solution:
reserved zero address and enabled dmc monitor

Verify:
local

Change-Id: Ief29049b1938a163b2f73e516e38c6c29c703f3b
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-11-13 20:37:16 -07:00
Jianxiong Pan 97f45a742d mm: autopatch: check the cma pool in low memory zone. [1/1]
PD#SWPL-145369

Problem:
try to avoid cma pool in low memory.

Solution:
add check the cma pool in low memory.

Verify:
local.

Change-Id: I5ec3a59dbd32dc4f94fbf368ce2736eb4d85ff68
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-10 00:51:49 -07:00
qiankun.wang 6360d268f9 apu: t3x: can't enable EAS [1/2]
PD#SWPL-143865

Problem:
t3x can't enable EAS because of apu.

Solution:
t3x can enable EAS when system supports
the hide cpu.

Verify:
t3x

Change-Id: Ie20fa9a01af1da9bcb5e655b5c54ecd9aa322f0f
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-11-09 00:15:26 -07:00
Jianxiong Pan b5d5088546 mm: autopatch: add alloc_pages_bulk to pagetrace. [1/1]
PD#SWPL-142086

Problem:
improve pagetrace function.

Solution:
add alloc_pages_bulk to pagetrace.

Verify:
t5m.

Change-Id: I6c08ea7d0d6072bef9a101f40cbf89560337e307
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-07 02:09:18 -07:00
Zhuo Wang b51df03ae2 eth: fix NETLINK [1/1]
PD#SWPL-139055

Problem:
device_init_wakeup will cause NETLINK

Solution:
not switch wol status anymore

Verify:
QA_verify with T7C

Change-Id: I823ce0c80babef1a1c83d811c3af126e7b27f995
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2023-11-02 23:05:27 -07:00
Hanjie Lin a9bf5440db system_heap: optimize allocate orders [1/1]
PD#SWPL-139378

Problem:
MID_ORDER_GFP may cost a lot of CPU time in memory compaction when allocate
big system heap.

Solution:
change to HIGH_ORDER_GFP can prevent this cost.
Change order 4 to 3 let system heap can allocate more contiguous memory.

Verify:
ohm

Change-Id: I6260d6d246605227132e459a8bc4ba0cf8d2065e
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2023-10-28 21:57:34 -07:00