Commit Graph

158 Commits

Author SHA1 Message Date
Jianxiong Pan c94ab82f9c mlock: skip the mlock optimization for rt thread. [1/2]
PD#SWPL-208030

Problem:
mlock optimization affects the performance of the rt threads.

Solution:
skip mlock optimization for rt threads.

Verify:
local.

Change-Id: Idb128ae0cc1346edfa0d649b4e0e17ab4b71860e
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-06-09 13:54:49 +09:00
Jianxiong Pan 52841fba28 mm: autopatch: remove filecache reclaim optimization by default. [1/1]
PD#SWPL-187459

Problem:
vendor filecache reclaim policy affect performance.

Solution:
remove vendor filecache reclaim policy defaultly.

Verify:
local.

Change-Id: Ia4fba32a3b6d46bebe94be0062f59e458c283f82
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-06-09 13:53:13 +09:00
qinglin.li 691d593c25 upgrade: common14-5.15 upgrade by Mar with kernel [1/1]
PD#SWPL-204237

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

Solution:
AML_KERNEL_VERSION      13
UPSTREAM_VERSION        "c0bad795ed1a0"
AML_PATCH_VERSION       "c0bad795ed1a0"
MERGE_DATE              "2025-03-12"

Verify:
local

Change-Id: I2c032c4233d88f717951518bb0c9a7807dc4c0a1
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-05-13 08:24:09 +09:00
Yan Wang 482beca402 dotprod: aarch32 run dotprod code and generate undefined error. [1/1]
PD#SWPL-195843

Problem:
cts fail when run dotprod code with aarch32 kernel.

Solution:
add dotprod instructions support in aarch32 kernel.

Verify:
sc2 ah212

Change-Id: I16eb468187718192c14365f0341cb9b814ef21e8
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
2024-12-11 19:32:36 +08:00
Jianxiong Pan 72043668ac mm: fix build error for memory optimization. [1/1]
PD#SWPL-188274

Problem:
fix build failed problem.

Solution:
fix build failed problem.

Verify:
local.

Change-Id: Id37ab5fe80d21e63cd759f84c7ebb0067b0492ee
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-11-07 15:39:41 +08:00
Tao Zeng b447cd2975 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-11-07 15:37:57 +08:00
jing.li1 1ebcb13b3b 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: I124eeda9df93d9a7f0bacba3ad5c663f341852f5
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-10-22 15:05:25 +08:00
Tao Zeng 32530bb6f5 amfc: fix kasan report [1/1]
PD#SWPL-183581

Problem:
Kasan report global error

Solution:
fix it

Verify:
s6

Change-Id: I0804fabaa04541b27e8aace8cfd94a6f09b3b385
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-10-22 14:33:34 +08:00
Jianxiong Pan e14a4b398a 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-08-20 15:13:41 +08:00
Jianxiong Pan eb739f72d0 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-08-20 15:13:33 +08:00
qinglin.li 1b0216e7ee 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>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2024-08-02 21:07:48 +08:00
qinglin.li 802d5bb42b 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-08-01 11:12:42 +08:00
Long 28a84e96ba 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-30 11:16:29 +08:00
Qinglin Li fb6e81880b 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]"

PD#OTT-62864

This reverts commit 435a1dbfda.

Change-Id: I79ac10b4918cd94dbdc307662e5481915f7fa8d1
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-07-24 19:14:45 +08:00
qinglin.li aeeb9717cc 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-24 14:02:00 +08:00
qinglin.li 82aa5ea153 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-23 16:18:27 +08:00
Long 95c83c56ca 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-07-05 20:14:02 +08:00
Tao Zeng 3f57dda326 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>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2024-07-04 10:52:19 +08:00
Jianxiong Pan d6bf2502e4 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-06-04 19:09:26 +08:00
Tao Zeng c58c35df8a 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-21 14:20:06 +08:00
Tao Zeng 6d13604db9 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>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2024-05-16 20:03:23 +08:00
Jiucheng Xu cee8065e88 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 19:22:25 +08:00
Jianxiong Pan 43769db36e 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-05-08 14:37:46 +08:00
Jianxiong Pan a507d25914 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-05-07 12:28:53 +08:00
Jianxiong Pan 6e14143924 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-05-06 20:27:03 +08:00
Jianxiong Pan 8c675fde6e 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-05-06 20:26:58 +08:00
Jianxiong Pan 1c9a77dbfd 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-05-06 17:10:13 +08:00
qinglin.li 2a6f3e6497 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-18 18:59:09 +08:00
qinglin.li 8519e2b817 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 20:46:07 +08:00
nengwen.chen c276666c22 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-22 20:37:24 +08:00
qiankun.wang f48fe94dbe 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-19 20:47:24 +08:00
zhikui.cui 464054a73b 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-31 20:24:38 +08:00
qiankun.wang 1ed0f9e18b 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-26 21:02:30 +08:00
Wanwei Jiang 508f4e8930 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-20 20:40:37 +08:00
qinglin.li a7fcd60e62 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>
2024-01-20 19:20:49 +08:00
yi.liu 67c6e75f39 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>
2024-01-20 18:40:02 +08:00
yongbing.he bcbbfd82e2 freertos: freertos featrue reorganize [2/2]
PD#SWPL-140884

Problem:
c3 not freertos notifiers
c3 need ipi send

Solution:
c3 add freertos notifiers config
c3 add ipi send config

Verify:
c3

Change-Id: I8f624cdf329880cb5a0e01ba83cc93119938b509
Signed-off-by: yongbing.he <yongbing.he@amlogic.com>
2024-01-19 23:06:17 +08:00
he.he d28f5b3dba 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-15 13:39:22 +08:00
Jianxiong Pan c059dc9ed8 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-15 13:39:21 +08:00
Chengbing.wu 19866ed51f 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-09 20:02:15 +08:00
qi duan 88872b6888 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-09 20:01:45 +08:00
Lei Zhang 1649c22b98 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-09 19:42:25 +08:00
qiankun.wang 9d7c41e3c5 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>
2024-01-09 16:55:18 +08:00
Jianxiong Pan 996e468507 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-04 15:13:34 +08:00
Lei Zhang af16ae49ba 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>
2024-01-04 15:12:43 +08:00
Jianxiong Pan dcad9b2b05 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>
2024-01-03 20:21:38 +08:00
xiangyang.yan a85f635411 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>
2024-01-03 20:12:02 +08:00
Zhuo Wang cdb786305e 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>
2024-01-02 20:26:40 +08:00
qiankun.wang 2c24c83678 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-12-26 12:27:42 +08:00
xiangyang.yan 6f81d00ca1 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-12-26 12:26:16 +08:00