PD#SWPL-236939
Problem:
system crash when close pgaetrace.
Solution:
fix these defects.
Verify:
local.
Change-Id: I516b9dac653f79782d078a73be7e195c4b6cec05
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-233326
Problem:
can not print regs value when mte is enabled
Solution:
ignore address bit[59:56]
Verify:
s6
Change-Id: I13d8c1af29b8d1ce829e08d0e273f6d5a5aa81b2
Signed-off-by: biao.sun <biao.sun@amlogic.com>
PD#SWPL-217821
Problem:
vmap cache is small, task bitmap is easily exhausted.
Solution:
task bitmap mismatch in alloc and free, delay set bitmap
in stack alloc.
Verify:
local.
Change-Id: Id6afec5354ea8a9f9a800ee6df24ba046a3fdf4e
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-229258
Problem:
some scenarios hope to dynamically modify the cma task priority.
Solution:
provide interface to set cma task priority.
Verify:
local.
Change-Id: Ic0ce3ef8d58923e8506789864553bde36afba4fe
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-229258
Problem:
some scenarios hope to dynamically modify the cma task priority.
Solution:
provide interface to set cma task priority.
Verify:
local.
Change-Id: I72ad141f3535a9173f622ff73c79c96440aa76da
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-225609
Problem:
sync memory related patches from 5.15.
Solution:
sync memory related patches from 5.15.
Verify:
local;
Change-Id: I010fa5dc436d486bc46b7d49f8e0b32057c05ac7
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-225609
Problem:
gki10 kernel can not boot.
Solution:
vmap stack break gki, can not be used in gki10.
Verify:
local.
Change-Id: I37db1c1f0a237fe36e9348b726fe370e2e1514f0
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-223138
Problem:
amfc driver is too old compared with 5.15
Solution:
sync it from 5.15
Verify:
S6
Change-Id: Ia405e1ec397c2b06782126488f3a8171f234c9ec
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
PD#SWPL-211590
Problem:
supports direct compilation using tools/bazel
Solution:
1. Default is the trunk's kernel, and can also be configured to
use the project kernel.
2. Default is the trunk's build.config.project, and can also be configured to
use the project's build.config.project.
3. Default is the trunk's Kconfig.ext_modules, and can also be configured to
use the project's Kconfig.ext_modules.
4. Default is the trunk's project.bzl, and can also be configured to
use the project's project.bzl. For other drivers' BUILD.bazel,
currently the corresponding GKI_CONFIG is automatically selected
based on the project. Other members are not distinguished at present.
5. Package all variables in project.bzl into a struct called project_configs,
which facilitates accessing the corresponding variables on a per-project basis.
6. Remove the DDK dependency check mechanism. However,
since it is protected by the configuration of the config, the impact is
not significant.
7. Change kernel_build to kernel_select in ddk_module.
8. support build command:
tools/bazel run --config=adt4 //project/sei/adt4:adt4_dist
./mk.sh --package adt4
9. Optimize the Bazel configure settings.
10. Optimize the copying of ko sources.
11. Optimize the copying of ko sources with debugging symbols.
12. Optimize the paths of some temporary files, so that the files are located
in the out directory instead of the /tmp directory.
Verify:
local
Test:
PB
Change-Id: I38f631215a41156910ae378c34c92de5a255309f
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
PD#SWPL-201692
Problem:
spinlock is sleeping lock, cause BUG_ON in atomic context
Solution:
change spinlock to raw_spinlock
Verify:
on A5
Change-Id: Iea05aa36c58143d0efe880631d8906d9125fe55e
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
PD#SWPL-208157
Problem:
use kernel build ddk_module_headers
Solution:
use kernel build ddk_module_headers
Verify:
local
Test:
local
Change-Id: I68cb33366c826fcd58fdb0a040229011ea669064
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-208253
Problem:
can't patch to kernel for google
Solution:
modify in common_drivers
Verify:
SC2
Test:
boot and play video
Change-Id: If7adf4b52c10ec259f6ce4549f31b215895c828e
Signed-off-by: biao.sun <biao.sun@amlogic.com>
PD#SWPL-206164
Problem:
ddk_module cannot find Kconfig and Makefile in sub package
Solution:
add Kconfig and Makefile srcs to common kernel srcs
Verify:
local
Test:
local
Change-Id: I3e71b7e1ddea15e9d32efc0e6cb7e8e81b95b793
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
PD#SWPL-207075
Problem:
the cma allocation caller can not get the value of the fatal signal.
Solution:
return fatal signal for cma alloc.
Verify:
local.
Change-Id: I3034f0eaa7bb61ae336a52f8cc5a972501e516ee
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-201579
Problem:
common functions can not locate specific module.
Solution:
add more common functions in filter list.
Verify:
sc2.
Change-Id: Icbf48ff353a55cc42c40000605c5531231550af4
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-201579
Problem:
avoid some pages entering cma pool.
Solution:
remove __GFP_CMA flag for some page.
Verify:
adt4.
Change-Id: I2487ee08ed6d91d08987beb32fc023930945700a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-195997
Problem:
the drivers in the common_drivers directory can be built using DDK
with gki_20 mode, it is also compatible with the original build.
Solution:
add BUILD.bazel and modify build script
Verify:
sc2
Test:
PB
Change-Id: Ie138e63f4eec8715d976d421dc8a431bcfadd859
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
PD#SWPL-200077
Problem:
aml smmu init failed.
Solution:
get max_pfn from node instead of find symbol.
Verify:
s6.
Change-Id: I65dec4fa5a0c9996af34c318fb5ac58f53f81aed
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-196409
Problem:
add memory related trace info
Solution:
1, __alloc_page and __alloc_pages_slowpath: use trace event and vendor hook
2, cma_alloc: use vendor hook in aml_cma.ko
3, handle_pte_fault: use kretprobe
4, trace meminfo period
Verify:
sc2_ah212
Change-Id: I70212798beb3660836201e6ad5f3ebf7e27b66b8
Signed-off-by: biao.sun <biao.sun@amlogic.com>
PD#SWPL-190703
Problem:
module function not filter in pagetrace.
Solution:
update caller list when load module.
Verify:
sc2.
Change-Id: I29137818fccbcc0a9a39b5b0414f1503b8dfedb1
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-185687
Problem:
there is panic when envp_init stores over 32 members
Kernel panic - not syncing: Too many boot env vars at `reboot_mode=normal'
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.180-rksec-1.0 #2
Hardware name: Generic DT based system
[<b020a1b8>] show_stack+0x10/0x14
[<b0cbd7b4>] dump_stack+0x8c/0xa8
[<b0cad7a4>] panic+0x104/0x304
[<b1100b84>] start_kernel+0xa4/0x42c
[<b11004a4>] _sinittext+0x44/0x48
Solution:
set __setup return value as 1 to avoid envp_init full
Verify:
t5w
Test:
t5w
Change-Id: Ie0f5ada11318ab509bf7bd914e2af53213250f00
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
PD#SWPL-197216
Problem:
mmap should be locked in show_vma or may caused WARNING
Solution:
add mmap_read_trylock
Verify:
sc2
Change-Id: I29cb7fc4f03b9db90c9e6daf98618657a4724f38
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>