Commit Graph

46 Commits

Author SHA1 Message Date
Wanwei Jiang 8d1a00f53e patch: support auto lunch's patch [1/3]
PD#SWPL-124735

Problem:
the execution time of the lunch is too long for patching all kernel patches

Solution:
patching the necessary patches to avoid android compilation failure

Verify:
ohm

Change-Id: I917ec47716336cb4c896bce4aeed3229e069c3dc
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-05-31 20:54:14 -07:00
qiankun.wang e6045d91cd sched: vts: vts_kernel_proc_file_api_test [1/2]
PD#SWPL-124519

Problem:
vts_kernel_proc_file_api_test module 3 fail.

Solution:
add 3 proc file interfaces 'sched_latency_ns',
'sched_wakeup_granularity_ns',
'sched_tunable_scaling'.

Verify:
SC2

Change-Id: I88e8d7a91db601d1b1cb773d15583fabe7021a07
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-05-29 23:40:57 -07:00
Jianxiong Pan 728dd734c5 mm: add lowmemory killer auto patch. [1/1]
PD#SWPL-124928

Problem:
Android P no LMKD.

Solution:
port the lowmemorykiller from 4.9.

Verify:
local.

Change-Id: Iafb3e64932c358cefa2b4dacc83d197d5d7c244a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-05-25 01:23:20 -07:00
qinglin.li afa7927a1f upgrade: kernel upgrade by May [1/1]
PD#SWPL-124098

Problem:
kernel upgrade by May

Solution:
kernel upgrade by May

Verify:
local

Change-Id: I19aa4e7ca1d6e43703f1752e3e46f8bdcaf8c08b
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-05-24 04:48:18 -07:00
Wanwei Jiang 92c8943985 bazel: optimize and add some function [1/2]
PD#SWPL-123803

Problem:
optimize and add some function

Solution:
1. support update symbol list
2. support abi check
3. remove db845c information
4. optimize modules_out
5. rename symbol list file name

Verify:
sc2

Change-Id: Ia816fa87ebb6047c5bf3722c613c5545d4367a9d
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-05-23 01:42:23 -07:00
qinglin.li 89f05b9582 upgrade: kernel upgrade by May with tool [1/1]
PD#SWPL-124098

Problem:
kernel upgrade by May

Solution:
kernel upgrade by May

Verify:
local

Change-Id: Iad040a4a123eafb4c2b9e47b6421c36a810e7edb
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-05-22 20:54:14 -07:00
qiankun.wang 265f7a6f02 debug: auto-patch sort [1/1]
PD#SWPL-114632

Problem:
too many patches under the 03_debug directory.

Solution:
Categorized into 6 patches by function.

Verify:
on s4d_ap222 and c2_af400

Change-Id: Ia259f68723242f06b58ab28d74a898f71d97ec3d
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-05-16 04:06:48 -07:00
Hanjie Lin 5f7ed4d9c7 smp: system_server crash when enable apu [2/2]
PD#SWPL-123179

Problem:
CL:312378 may cause android first boot system_server crash

Solution:
don't hide /sys/devices/system/cpu/cpuX directory

Verify:
t5m

Change-Id: I06d0e1a1ac896e2978248dcc642a81755739ef9c
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2023-05-15 20:02:17 -07:00
Long d6b97e58a7 eMMC: support CQE. [1/2]
PD#SWPL-119703

Problem:
support CQE

Solution:
support CQE

Verify:
T5m

Change-Id: Iaf97dac88e1cafbd8b897506dd044e3a3518a593
Signed-off-by: Long <long.yu@amlogic.com>
2023-05-15 02:04:25 -07:00
Jianxiong Pan 26166b9d94 auto_patch: reorganize the auto patch of memory. [1/1]
PD#SWPL-121825

Problem:
reorganize the auto patch

Solution:
reorganize the auto patch

Verify:
local.

Change-Id: I2a667e2909a4a01674712a1d9360dfb5ee8dea7d
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-05-15 01:44:34 -07:00
chuangcheng peng 880d4cfcdb demux: cut code for S1A chip [1/1]
PD#SWPL-120888

Problem:
cut code for S1A chip

Solution:
cut code for S1A chip

Verify:
not verified

Change-Id: I9ef7c826e563856887756fe66872868ed356d98f
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-05-15 00:24:43 -07:00
he.he c7c713af53 usb: 0008-usb-USB-low-speed-problem-1-1 [1/1]
PD#SWPL-118459

Problem:
0008-usb-USB-low-speed-problem-1-1.patch

Solution:
0008-usb-USB-low-speed-problem-1-1.patch

Verify:
t3x

Change-Id: If5f12d557de71789a19c2528b71363f03938a76d
Signed-off-by: he.he <he.he@amlogic.com>
2023-05-12 00:38:07 -07:00
Hanjie Lin 03454cd6d9 smp: add APU support [2/2]
PD#SWPL-119162

Problem:
APU should not be seen except audio

Solution:
add APU support

Verify:
t5m

Change-Id: I0c4267b362f3d0bf398484b2318c88bdf0b00588
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2023-05-08 02:30:25 -07:00
qinglin.li 3d2405b67e upgrade: fix patch conflict [1/1]
PD#SWPL-118733

Problem:
fix patch conflict

Solution:
fix patch conflict

Verify:
sc2

Change-Id: I2637f05ca652522d1585517f400b016728c5b651
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-05-06 02:10:35 -07:00
hong.wang e08523aff0 BT: The UI cannot bind the remote control [2/3]
PD#SWPL-118242

Problem:
5.15 need user confirm.

Solution:
if JUST_WORKS no need user confirm.

Verify:
T3X

Change-Id: If2d505148ddd38e03a7cb5fbb0b99a853ea4164e
Signed-off-by: hong.wang <hong.wang@amlogic.com>
2023-04-28 01:41:50 -07:00
qinglin.li d2edad5ad2 upgrade: upgrade tool [1/1]
PD#SWPL-118733

Problem:
1. build.sh and build_abi.sh remove
2. Andorid.bp redefined

Solution:
revert remove patch
rename Andorid.bp to Andorid_bp

Verify:
loacl

Change-Id: I980c5d0e066ad057f12cb8ef6d27849992946abe
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-04-27 14:46:25 -07:00
Wanwei Jiang ccdf760b40 bazel: modify fatload issue [1/1]
PD#SWPL-112151

Problem:
none kernel log

Solution:
add amlogic config infomation in build gki kernel with bazel build

Verify:
ohm

Change-Id: I6a30f7087cc7eea8f0cadf52217cf2a3ba0bbac5
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-04-27 02:51:38 -07:00
Bichao Zheng 83a117c836 nand: get onfi mode from id table [1/1]
PD#SWPL-120491

Problem:
Wrong select onfi mode

Solution:
get onfi mode from id table

Verify:
s4

Change-Id: I478181a369b608b1d1598f9ab05760cbb9ab12e3
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2023-04-25 05:05:19 -07:00
Wanwei Jiang 2218b8950a bazel: support use bazel tool to build [2/6]
PD#SWPL-112151

Problem:
support use bazel tool to build

Solution:
1. support use bazel tool to build for gki2.0 and gki1.0
2. amlogic.bzl(build parameter), amlogic_utils.bzl(build function)
3. change define_db845c to define_common_amlogic
4. support build external modules
5. support build dtbo
6. use project config
7. rename external(out tree) modules name

Verify:
sc2

Change-Id: If644ea18c21624fd9ad8695b5a866ce593a11b7f
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-04-24 21:16:29 -07:00
xiangyang.yan 457f60b324 ethernet: add cali_val item [1/1]
PD#SWPL-120093

Problem:
add cali_val item

Solution:
add cali_val item

Verify:
S928X-AX201-REF(V2+)#327

Change-Id: I9a7326f596e2afc9ecb3eafd93976920e2da2bb4
Signed-off-by: xiangyang.yan <xiangyang.yan@amlogic.com>
2023-04-23 05:08:04 -07:00
qinglin.li 4a6bc4e2b7 script: build gki1.0 lose system_dlkm [1/1]
PD#SWPL-116256

Problem:
build gki1.0 lose system_dlkm

Solution:
add system_dlkm

Verify:
sc2

Change-Id: Ic6d719a33507a74f47d5c6c8076f69343c00feca
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-04-20 06:16:11 -07:00
song.han 29925ebc8a debug: iotrace driver follow gki 2.0 [2/2]
PD#SWPL-109963

Problem:
iotrace driver need follow gki 2.0

Solution:
iotrace driver build to ko

Verify:
sc2_ah212

Change-Id: I472bc63b6594c58d7c94f74e1bf1a070978b20fd
Signed-off-by: song.han <song.han@amlogic.com>
2023-04-20 06:15:21 -07:00
Dezhen Wang 40f4e2261e init: dump env/args if too many [1/2]
PD#SWPL-119265

Problem:
kernel will panic if too many boot args

Solution:
dump them for debug

Verify:
t7

Change-Id: Ib78ee8d997836f02df0d4f8092c87435d4b15e29
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-04-17 19:25:18 -07:00
qinglin.li a0ffb69520 Makefile: lost common unprotected symbol [1/1]
PD#SWPL-116256

Problem:
lost common unprotected symbol

Solution:
add common unprotected symbol

Verify:
sc2

Change-Id: Ie037efb08db780310a0646dcc439b4457212aecd
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-04-14 06:15:14 -07:00
Zhuo Wang 31247d21da eth: to match gki2.0 [1/1]
PD#SWPL-117003

Problem:
skip the new flow in common14

Solution:
common14 add new flow for ethernet,
which our phy not support yet.

Verify:
verify with T3

Change-Id: I6a54e7f636e3586c1f14bd69574e304b250c4dfa
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2023-04-13 02:17:48 -07:00
Wanwei Jiang c65e4d3440 build: support gki build for common14 with build.sh [1/2]
PD#SWPL-116256

Problem:
support gki build for common14 with build.sh

Solution:
1. gki1.0 build, once build out the boot.img, system_dlkm.img,
and modules which in the vendor_boot.img and vendor_dlkm.img.
2. gki2.0 build, once build out the boot.img and system_dlkm.img
with build.config.gki.aarch64, second build out modules which
in the vendor_boot.img and vendor_dlkm.img
3. use SYSTEM_DLKM_PROPS to add selinux label for system_dlkm.img
4. add android/abi_gki_aarch64_amlogic.external include gki symbol
which used to vendor modules, kernel/Makefile add when once build

Verify:
local

Change-Id: Ib6774641f54a1dbf17083ce441604292f0652487
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-04-12 20:19:35 -07:00
wenlong.zhu dbe218d2f0 UAC: uac related files update to kernel 5.15 [1/1]
PD#SWPL-114902

Problem:
1. AudioBridge module needs to be added to kernel 5.15.

Solution:
1. Adjust the uac related files that AudioBridge depends on.

Verify:
A113L AD403 Board

Change-Id: I3f597b97d4ee658f07f9ea5f2d182235fe154b81
Signed-off-by: wenlong.zhu <wenlong.zhu@amlogic.com>
2023-04-06 20:15:25 -07:00
Feng Chen bc95150e80 mtdblock: add squashfs mount support [1/1]
PD#SWPL-117382

Problem:
add squashfs mount support

Solution:
add squashfs mount support

Verify:
s4_aq2432

Change-Id: I663aa278d5521dd03279951b4fecf1d0183fdf8b
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2023-04-06 08:22:52 -07:00
Wanwei Jiang ebd7f802c5 module: auto patch with mk_smarthome [1/1]
PD#SWPL-109858

Problem:
auto patch with mk_smarthome
ls: cannot access '*.patch': No such file or directory

Solution:
auto patch with mk_smarthome
using find instead of ls command

Verify:
sc2

Change-Id: I76a156cc1f556e9361e809f2d4de59b62d2260b6
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-04-04 04:20:50 -07:00
Feng Chen 05429451ae mtdblock: modify for squashfs mount [2/2]
PD#SWPL-116004

Problem:
1.squashfs don't handle bad block
2.partition size returned from mtdblock
is incorrect

Solution:
add Macro CONFIG_AML_NAND

Verify:
s4_aq243

Change-Id: I82110118b0bfe78a6615bd9159f741800b37abda
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2023-03-27 22:32:48 +08:00
Jianxiong Pan aea70e90c5 mm: enable vmap stack on 32bit arch. [1/1]
PD#SWPL-112184

Problem:
vmap stack is not enabled on 32bit arm arch.

Solution:
Enabled it.

Verify:
local.

Change-Id: I493b4fb641a729cbbd461a63ed6cecea52bf7c92
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-03-22 06:12:20 -07:00
min.yang 0d40452405 dvb-core: fix blind scan fail [1/1]
PD#SWPL-111880

Problem:
do blind scan,unable to search channel

Solution:
sync code from 5.4

Verify:
S905C3

Change-Id: If71414ec20debf466814b6f83da28c8a66aace9b
Signed-off-by: min.yang <min.yang@amlogic.com>
2023-03-21 23:36:13 -07:00
Jianxiong Pan 704b2d55f0 mm: delete the vmap stack auto patch. [1/1]
PD#SWPL-112184

Problem:
the vmap auto patch is no longer required.

Solution:
delete the vmap auto patch.

Verify:
build pass.

Change-Id: I5ad12474047d6b335589ef4bcaa7250c783b100a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-03-20 04:11:51 -07:00
Zhuo Wang 012b8f9e14 eth: complete wol other function [1/1]
PD#SWPL-114869

Problem:
wol may not work normally in some special case.

Solution:
complete 2 wol patch
1.come from https://scgit.amlogic.com/#/c/293893/
2.hold sometimes after resume

Verify:
QA_verify with oppen

Change-Id: I89599dc6eb891286715dfc3c5b03f7d68b56ef09
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2023-03-16 22:18:24 -07:00
Jianxiong Pan 02b9290a75 dmc: change vendor hook to get pagetrace buffer. [1/1]
PD#SWPL-112306

Problem:
android u remove the rmqueue vendor hook.

Solution:
use cma_drain_all_pages_bypass instead.

Verify:
t5m_ay301.

Change-Id: I8f1c1634e9c72d15e9a1f7aac937b5fcc66f00be
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-03-16 21:03:42 -07:00
Dezhen Wang 34458da1ab file: merge 0003 patch into 0001 patch [1/1]
PD#SWPL-114639

Problem:
the files in autopatch is redundant

Solution:
merge 0003 patch into 0001 patch

Verify:
local

Change-Id: Ifdc82d385377edd39a2deeb68c6cb27d1c7bde08
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-03-16 02:22:57 -07:00
qinglin.li 4a37e9ce87 freertos: combine freertos common code [1/1]
PD#SWPL-114636

Problem:
combine freertos common code

Solution:
combine freertos common code

Verify:
local

Change-Id: I8fa61a376bd54841ef584db66cfb29362837b9eb
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-03-16 01:13:25 -07:00
Dezhen Wang 9c393aaf5f file: rename the names of files in autopatch [1/1]
PD#SWPL-114639

Problem:
the name of the files in autopatch is wrong

Solution:
fix the order of the name of the files

Verify:
local

Change-Id: Ie7ac27c5d58a332b721d8368610aa542b87015c4
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-03-14 03:01:11 -07:00
Zhuo Wang 0d552b9f90 eth: restart eth0 when resume [1/1]
PD#SWPL-114869

Problem:
phy not work atfer resume sometimes

Solution:
restart ethernet after resume

Verify:
QA_verify with oppen

Change-Id: If247d7130dd0f9f6196a272e25a1acfe6b5f6abd
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2023-03-13 03:16:10 -08:00
Jiucheng Xu f92b7e91c6 dm: Remove bow common modification [1/1]
PD#SWPL-114099

Problem:
bow code has been integrated in kernel/common

Solution:
revert common_driver bow relative code.

Verify:
sc2

Change-Id: Ifb491fa67fd5093ed57b319644d9dc7bc276056e
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
2023-03-13 03:16:07 -08:00
Wanwei Jiang eba5a519c3 common: disable module sign [1/1]
PD#SWPL-109858

Problem:
disable module sign

Solution:
1. disable module sign
2. don't make system_dlkm.img

Verify:
sc2

Change-Id: Iaf3a67608bd7015835d94a9197ea17782bd7ecf9
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-03-10 23:21:12 +08:00
qinglin.li b721106f36 serror: use exit vendor hooks show dmc reg when serror [2/2]
PD#SWPL-112303

Problem:
use exit vendor hooks show dmc reg when serror

Solution:
use exit vendor hooks show dmc reg when serror

Verify:
sc2

Change-Id: I528f3ee60ea29c8b42d8397da60c19407bae2ad7
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-03-09 01:12:34 -08:00
Wanwei Jiang 5a7a3439e5 common: enable module sign [1/1]
PD#SWPL-109858

Problem:
build error:
out/android14-5.15/common/scripts/sign-file: No such file or directory

Solution:
enable module sign, but still disable CONFIG_MODULE_SIG_PROTECT

Verify:
sc2

Change-Id: I7a6663aa9d50269b7d1e7ca213642a49e26f6bd0
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-03-08 08:06:11 -08:00
Wanwei Jiang fd0540a785 common: disable module sign [1/1]
PD#SWPL-109858

Problem:
can't insmod closed ko

Solution:
disable module sign

Verify:
sc2

Change-Id: I9b252563f065b005f7ce5828feb3f8f03deedea6
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-03-08 01:44:22 -08:00
Wanwei Jiang b84fbe0d0d common: group the common's patches [1/1]
PD#SWPL-114348

Problem:
group the common's patches

Solution:
1. the zstd in the current kernel is newer than the version we ported,
so delete 0073*.patch
2. group the common's patches

Verify:
sc2

Change-Id: I3f5e68e44fe3ca8911541a366945bfb4ab7f940c
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-03-07 07:47:55 -08:00
Wanwei Jiang 19d6cc0c8c auto_patch: change directory [1/1]
PD#SWPL-109858

Problem:
change auto_patch directory from common to auto_patch

Solution:
change auto_patch directory from common to auto_patch

Verify:
sc2

Change-Id: I5539fcae1f8edfe4c145b5c4fdebc23e79f6cf62
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-03-02 22:25:24 -08:00