Commit Graph

105 Commits

Author SHA1 Message Date
Dezhen Wang 706db4c444 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-21 11:12:17 +08:00
qinglin.li 2fc6296b0a 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>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2023-12-08 20:02:45 +08:00
Jianxiong Pan 1f305f04db 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-12-08 19:56:27 +08:00
Jianxiong Pan 97528f7ced zapper: add CONFIG_AMLOGIC_ZAPPER_NET_CUT. [1/1]
PD#SWPL-120856

Problem:
zapper 2k s1a ddr optimization net core.

Solution:
define CONFIG_AMLOGIC_ZAPPER_NET_CUT.

Verify:
zapper 2k s1a.

Change-Id: Idd93f7c29717fe9453ecc2e8570af3598ce99708
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-08 19:56:00 +08:00
Jianxiong Pan 89b3d2bbb3 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-27 19:07:13 +08:00
Jianxiong Pan 6da8be779d 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-27 19:00:38 +08:00
Jianxiong Pan 35e85533f3 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-27 19:00:12 +08:00
Jianxiong Pan b490bafadf 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-27 18:59:22 +08:00
Jianxiong Pan 6f5c3e5535 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 19:26:49 +08:00
Jianxiong Pan d73e9f832c 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-21 19:26:42 +08:00
Jianxiong Pan a75852a9d1 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-21 19:26:25 +08:00
Jianxiong Pan 00a13c58e8 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 19:14:56 +08:00
Hanjie Lin 9e54526bb0 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-30 17:02:30 +08:00
qinglin.li 8f41c0e4f1 upgrade: kernel upgrade by Oct with kernel [1/1]
PD#SWPL-141662

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

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

Verify:
local

Change-Id: I735e0afd14c81f8a5ec8cfdfebf891a11d902d40
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-10-13 19:13:23 +08:00
Zhuo Wang 04fc71a94d eth: remove network restart [1/1]
PD#SWPL-138314

Problem:
restart network will involve too much
problem, remove this flow, left only for txhd2

Solution:
remove network restart when resume
only txhd2 will use this function

Verify:
BE311

Change-Id: I5441e51d85de06abdbe0f25870179ba41738f263
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2023-10-09 20:15:55 +08:00
Jiucheng Xu dbc243422b bpf: add a pad for fuse bpf struction [1/1]
PD#SWPL-132090

Problem:
fuse bpf has a bug when using 32bit kernel

Solution:
Google provide this patch to fix it

Verify:
s4

Change-Id: Id3bc70edb8012f061383afa74d5bc7e1623a986c
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
2023-09-28 15:02:19 +08:00
qiankun.wang 5c54e2b04b stackdepot: restore CONFIG_STACK_HASH_ORDER [1/1]
PD#SWPL-140876

Problem:
small CONFIG_STACK_HASH_ORDER will cause frequent hash collisions
and stack_depot_save low performance

Solution:
revert changes of 'CONFIG_STACK_HASH_ORDER' to
enlarge stack depot hash size.

Verify:
THXD2

Change-Id: Id4686f2f731583dd39d1f28869afa04a6a67fda2
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-09-27 21:16:57 +08:00
Dezhen Wang a4d2e61238 vfp: disable access to FPINST/FPINST2 for aarch32 [1/1]
PD#SWPL-58611

Problem:
upported FP instruction in kernel mode

Solution:
disable  access to FPINST/FPINST2 for aarch32 because there is
no fpinst/fpinst2 in armv8 aarch32.

Verify:
T5D

Change-Id: I7b898f61a6b2fc6a6933b9cba5d3f290f79db3df
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-09-22 19:38:02 +08:00
qi duan 55ad5c2ea9 usb: IDT test failed with replacing gki [1/2]
PD#SWPL-139422

Problem:
IDT test failed with replacing GKI

Solution:
using kprobe method to solve problem

Verify:
oppen

Change-Id: Iccdbb2d0a8529a43b2df638b2423ce21580319be
Signed-off-by: qi duan <qi.duan@amlogic.com>
2023-09-22 19:31:39 +08:00
Jianxiong Pan bca1860988 mm: ANDROID: mm: fix freeing of MIGRATE_ISOLATE page. [1/1]
PD#SWPL-140288

Problem:
fix freeing of MIGRATE_ISOLATE page

Solution:
add autopatch.

Verify:
ohm.

Change-Id: I28228420f1a6ad78fdbf0082706a30465b46b92c
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-09-19 20:10:23 +08:00
Hanjie Lin 2acee0d5bb usb: can not recognize U disk. [1/1]
PD#SWPL-139784

Problem:

Solution:
Revert "usb: IDT test failed with replacing gki [1/2]"

This reverts commit 8dd2c1a590.

Revert "usb: IDT test failed with replacing gki [2/2]"

This reverts commit 9221d31343.

Revert "usb: IDT test failed with replacing gki [2/2]"

This reverts commit 7867188971.

Verify:
verify by ohm.

Change-Id: Ic4b6853719ff17d49c366feccbaff3320cadc464
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2023-09-14 20:08:43 +08:00
qinglin.li db92c882e4 upgrade: kernel upgrade by Sep with kernel [1/1]
PD#SWPL-138629

Problem:
modules out remove need fix conflict
update include/linux/upstream_version.h

Solution:
modules out remove function fix
update include/linux/upstream_version.h

Verify:
local

Change-Id: Id2481bd3e13f07f4986db4390e6e02d340872e9e
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-09-13 23:04:11 +08:00
Zhuo Wang 8332f980d7 eth: txhd2 add new flow for suspend [1/2]
PD#SWPL-138487

Problem:
add new flow for txhd2
common14

Solution:
add new flow for txhd2

Verify:
BE311

Change-Id: I79010a4f8b87fdb7cb6302abba8e79fdaef43a70
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2023-09-13 22:43:41 +08:00
Wanwei Jiang 9b47ce85a3 patch: tidying up patches related to the build environment [1/1]
PD#SWPL-137860

Problem:
tidying up patches related to the build environment

Solution:
1. merge patches
2. delete unused patches

Verify:
ohm

Change-Id: Ie441c4e54a83cb12734d477af7de84153dc05e90
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-09-13 22:31:06 +08:00
qiankun.wang 5866d2504f ARM: stacktrace: filter irq stacks. [1/1]
PD#SWPL-101774

Problem:
save_stack_trace can't simplify all callers'
use of stackdepot, because the value of
"__irqentry_text_start" and "__irqentry_text_end"
is same.

Solution:
"#define __exception_irq_entry	__irq_entry" to
make the section ".irqentry.text" is not empty.

Verify:
THXD2

Change-Id: I6f13ce8ad14f4417d36789b91db9503d6e2fa470
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-09-13 22:31:05 +08:00
Tao Zeng c87dc61f73 mm: fix compound page header problem [3/3]
PD#SWPL-131211

Problem:
kernel crash in check_page_to_cma

Solution:
The problem is that page_mapping function returns a invalid mapping
pointer, when a compound page is building while a compaction is doing
at same time, there will have a risk of compound page status checking.
page->mapping is set to TAIL_MAPPING first then set compound header.
But check_page_to_cma don't check real status of page, which caused
panic

Verify:
local

Change-Id: Ie707573beb1904d4ecf76acd026a7aba4dd07e80
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2023-09-13 16:22:33 +08:00
Jianxiong Pan c346ec7aad mm: fix file cma statistic error. [1/1]
PD#SWPL-137522

Problem:
lowmemorykiller abnormal.

Solution:
correct the file cam statistic.

Verify:
txhd2.

Change-Id: Ib5a6320c5a32ea4720af8fe45024a8e7ebe2dc2b
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-09-13 15:09:35 +08:00
Wanwei Jiang 9221d31343 usb: IDT test failed with replacing gki [2/2]
PD#SWPL-139422

Problem:
forgot to submit the renamed patch

Solution:
rename 0008-usb-USB-low-speed-problem-1-1.patch
to 0007-usb-USB-low-speed-problem-1-1.patch
https://scgit.amlogic.com/#/c/355969/

Verify:
oppen

Change-Id: I2f6860ce072a7f1f13257be8f46d744a75dbb647
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-09-12 11:21:09 +08:00
Wanwei Jiang 7867188971 usb: IDT test failed with replacing gki [2/2]
PD#SWPL-139422

Problem:
IDT test failed with replacing gki

Solution:
revert the patch "usb: cts: USB Device Test module fail"

Verify:
oppen

Change-Id: Iafbb6c16f5a29757808c9b306f1d166e479f8f2e
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-09-12 10:16:42 +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
qiankun.wang 5880048394 ARM: stacktrace: don't save non kernel and module calls [1/2]
PD#SWPL-101774

Problem:
save_stack_trace now record user calls

Solution:
add kernel_or_module_addr judgement before save stack

Verify:
t5w 32bit

Change-Id: I71d298b12c9822adad413ddbf03c5eb784c999e1
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-08-20 23:03:47 -07:00
lei.chen d8de113ad6 BT: fix kernel 5.15 issue for RDK linux system [1/2]
PD#SWPL-128975
PD#SWPL-118242

Problem:
1.rdk kernel 5.15 bt not support deep sleep wake-up
2.rdk kernel 5.15 need user confirm

Solution:
support it

Verify:
T5W T3X

Change-Id: I9bb5adf332ff2fb2d11fc31ec08d845465debe6d
Signed-off-by: lei.chen <lei.chen@amlogic.com>
2023-08-16 00:18:40 -07:00
qiankun.wang f5412875b9 secmon: modify the wrong config [2/2]
PD#SWPL-135009

Problem:
The config 'CONFIG_AMLOGIC_SEC' has been
converted to CONFIG_AMLOGIC_SECMON.

Solution:
delete the config 'CONFIG_AMLOGIC_SEC',and
add the config 'CONFIG_AMLOGIC_SECMON'.

Verify:
SC2

Change-Id: I664ce36b86af24ff3e92adcf31f6149ecf381dcb
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-08-09 04:29:35 -07:00
qinglin.li 19c65c43b3 dmc_monitor: arm need check memory map [1/1]
PD#SWPL-132402

Problem:
read no map memory failed when arm build

Solution:
check memory map when arm build

Verify:
local

Change-Id: I9219cf796b2091bed31df485d18621887a50c491
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-08-09 02:59:07 -07:00
Jianxiong Pan 204b2b7d22 mm: remove changes that raised kswapd priority. [1/1]
PD#SWPL-134487

Problem:
high priority of kswapd leads to cpu loading.

Solution:
remove changes that raised kswapd priority.

Verify:
local.

Change-Id: I16097cebea95839099bc60bae9ff7a36710625c4
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-08-09 02:58:48 -07:00
Shunzhou Jiang 6b666dfa39 mbox: mbox driver refactoring [2/2]
PD#SWPL-87115

Problem:
mbox driver refactoring

Solution:
mbox driver refactoring

Verify:
t7/t7c/t5m/sc2/s4/s4d/a1/c2/s5/t3x/t5w/g12b/sm1

Change-Id: I88406d54994e7e99d7a642816505d7a3ac5d4360
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2023-08-08 02:58:41 -07:00
qinglin.li d1164cdfa4 dmc_monitor: arm need check memory map [1/1]
PD#SWPL-132402

Problem:
read no map memory failed when arm build

Solution:
check memory map when arm build

Verify:
local

Change-Id: If806828c60e54e113f7ead52670a97159aac5a22
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-08-07 00:19:00 -07:00
qinglin.li a40f7b66e3 upgrade: kernel upgrade by July with kernel [1/1]
PD#SWPL-132973

Problem:
common14-5.15 rel_path is deprecated
update include/linux/upstream_version.h

Solution:
use 'realpath $1 --relative-to $2' instead.
update include/linux/upstream_version.h

Verify:
local

Change-Id: Iae256322e030a13076c9e40c3162e56d2cb87127
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-07-28 02:16:29 -07:00
Hanjie Lin b257fa1e5d debug: GKI20 clean [2/6]
PD#SWPL-132209

Problem:
GKI20 code clean

Solution:
1, clean irq_check function
2, clean smc_thr and psci smc
3, clean AMLOGIC_BGKI_DEBUG_IOTRACE
4, clean CONFIG_AMLOGIC_BGKI_DEBUG_MISC
5, restore trace_android_vh_ftrace_format_check
6, sched_show_task optimize
7, change cpupri_check_rt kretprobe to kprobe
8, iotrace dump use unbound workqueue

Verify:
sc2

Change-Id: Idcdf9010cfd960b80c493e58b3c81bec8468ac84
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2023-07-25 22:16:21 -07:00
Jianxiong Pan 04dced619a zapper: memory optimization auto patch. [1/1]
PD#SWPL-116862

Problem:
memory optimization.

Solution:
auto patch.

Verify:
t215.

Change-Id: I78f12264064c6670f2a8995b6894dea476b16f16
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-07-18 01:50:29 -07:00
Jiucheng Xu bedb495660 trace: hide apu trace by setting trace cpumask [1/1]
PD#SWPL-131861

Problem:
hide apu trace cause perfetto crash

Solution:
Use cpumask to hide apu trace

Verify:
t5m

Change-Id: I39b60464b06c7b990ed3bfc55a990dfd63fbf65c
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
2023-07-17 21:07:16 -07:00
qinglin.li 7cf37c0d62 kasan: bazel add kasan support [1/2]
PD#SWPL-128976

Problem:
bazel add kasan support

Solution:
add --kasan support

Verify:
local

Change-Id: I493e17ba66fd79a36b53c57bdcee7a7c52711f67
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-07-17 21:06:48 -07:00
qinglin.li 62b23335d8 bazel: support some build command --upgrade [1/2]
PD#SWPL-127872

Problem:
support some build command --upgrade

Solution:
support some build command --upgrade

Verify:
5.15

Change-Id: Ic5f90990d14b40bc1408c88d12f15b86622261c0
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-07-14 03:28:39 -07:00
Mingyen Hung ef3c77caf9 fscrypt: Restrict access to files protected by FBE [1/1]
PD#SWPL-130061

Problem:
RDK reference design wants to restrict accessing to files
protected by FBE

Solution:
Only owner of master key is allowed to access encrypted file

Verify:
1. on SC2(ah212) + RDK(firebolt-dunfell) + kernel 5.15

Change-Id: If8d4a949331d5c52c0064e9ebf0d538d129e37e5
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2023-07-11 01:00:45 -07:00
Mingyen Hung b5b3938bcd Crypto: Allow trusted key to be used by FBE [1/1]
PD#SWPL-130061

Problem:
Need to support trusted key for FBE.

Solution:
Hook trusted key to fscrypt

Verify:
1. fscryptctl(add_key)
2. on SC2(ah212)

Change-Id: I3b13bcf8dbfebc9d03ff8e2bc16ad3349aa8696a
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2023-07-09 21:12:36 -07:00
Feng Chen 8b3b1996e7 nand: erase failed error [1/1]
PD#SWPL-129754

Problem:
erase flash error during OTA upgrade.

Solution:
change the check way of badblock.

Verify:
s4

Change-Id: I82b64b03f584d449e30a435f8ec7e7aa0bab3be7
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2023-07-09 15:08:14 -07:00
xia.jin 75efa4a45c t7: rtos mipi irq miss frequently when booting kernel [1/1]
PD#SWPL-128739

Problem:
rtos mipi irq miss frequently when booting kernel

Solution:
mark gic distributor disable

Verify:
t7

Change-Id: I99d84ee722a71d5aa4ec3f5349e85c907b9ba229
Signed-off-by: xia.jin <xia.jin@amlogic.com>
2023-07-06 14:43:51 -07:00
Zhuo Wang 63f04d8dcd eth: txhd2 resume eth0 link down [1/2]
PD#SWPL-128836

Problem:
txhd2 resume eth0 down

Solution:
txhd2 use new pll

Verify:
be311

Change-Id: I76559d8f82c18f1c7b54f023c1c993698f853d4b
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2023-07-03 03:11:00 -07:00
qinglin.li eafebcfc03 upgrade: kernel upgrade fix conflict [1/1]
PD#SWPL-129165

Problem:
kernel upgrade fix conflict

Solution:
kernel upgrade fix conflict

Verify:
local

Change-Id: I1bdcee4097afc381d67bc6ec1be9ab325c51d1c8
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-06-29 22:49:57 -07:00
pengzhao.liu a923dea38d kernel: Remove Makefile autoreview script [1/2]
PD#SWPL-128588

Problem:
Cannot copy files when compiling

Solution:
Remove Makefile autoreview script

Verify:
no

Change-Id: Icdbe276ef2a5c2aefe0173c0b8457c09a3b40e4b
Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
2023-06-27 01:17:25 -07:00