PD#SWPL-234364
Problem:
iotm not stop when reboot, cause other DMA matser error on next boot
Solution:
1 change back to DDR mode
2 stop iotm when panic
3 correct mid output for V2
4 optimize time accuracy for V2
5 add serror hook to dump register and trace, for the bus error
reported by the module itself
Verify:
on T6x
Change-Id: I8ebb7d5c3dc18b6b3c77ce393e20eb4aa916cf6a
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
PD#SWPL-241730
Problem:
too much print info
Solution:
remove unnecessary print info
Verify:
sc2
Change-Id: I1ecb473c3095a1be608336a9047e7beca31121d8
Signed-off-by: biao.sun <biao.sun@amlogic.com>
PD#SWPL-245175
Problem:
N/A
Solution:
add feature to dump stack when access special register
Verify:
on T6x
Change-Id: Ia83efa28f20c4e634f1d610c99fa254457744ac9
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
PD#SWPL-224781
Problem:
1./common/common_drivers/scripts/amlogic/mk_zapper32.sh
2.ftrace_ramoops.c:377:3: error: implicit declaration of
function ‘stack_trace_save’
Solution:
compiling it when CONFIG_STACKTRACE=y
Verify:
t6x
Change-Id: I8ce6ef4e81c5c6214e698e92c99457ff5fd55a36
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
PD#SWPL-231235
Problem:
Reading the register through the function memcpy_fromio
will cause an external abort.
Solution:
Reading the register through the function readl.
Verify:
T6X
Change-Id: Ic3371e92d0bfdd83de8b7fae431609e4259cd005
Signed-off-by: Qiankun Wang <qiankun.wang@amlogic.com>
PD#SWPL-191471
Problem:
there is compiling error when kernel size optimize
Solution:
fix the Kconfig dependency
Verify:
t6d
Test:
Boot
Change-Id: Ic6c694e4beec32b674294d116ab1de85198830ab
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
PD#SWPL-230786
Problem:
The detection mechanism of irqratio is too strict for
USB/tty/DMC.
Solution:
Add whitelist to filter USB/tty/DMC.
Verify:
T6D
Change-Id: I3dfaa0f71a1421381aac5486e9724776e0dd294d
Signed-off-by: Qiankun Wang <qiankun.wang@amlogic.com>
PD#TV-176728
Problem:
/dev/audio_utils read panic
Solution:
return if list is empty
Verify:
local
Change-Id: I0e92708fcb95fdba02ff6a9399c146ea3def215b
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-190078
Problem:
after reboot latest iotrace record may not completely clean
Solution:
add more exception check
Verify:
t5m
Change-Id: Iae157d6a8d195024bfa6ce5f6cd5e9fbfd6e5363
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
(cherry picked from commit 388c4abdaa)
PD#SWPL-202314
Problem:
reduce useless check when count is too big
Solution:
reduce useless check when count is too big
Verify:
sc2
Change-Id: I933237758b6b4647bfcee74a1027e2ce4dc39fc4
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
PD#SWPL-224595
Problem:
GKI remove android_vendor_data function
Solution:
for GKI mode use stack save debug schedule info
for noGKI mode add schedule info in task_struct
Verify:
s6
Change-Id: I7a4415130f106b8f58b03730b33597ded21ecc9a
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
PD#SWPL-216174
Problem:
ramoops_io_en cmdline will omissions
When iotrace and gki_module are both builtin
Solution:
return 0
Verify:
T3
Change-Id: Ibb3aa6fc76e38018e1298af6c477981e96151d2e
Signed-off-by: biao.sun <biao.sun@amlogic.com>
PD#SWPL-202314
Problem:
reduce useless check when count is too big
Solution:
reduce useless check when count is too big
Verify:
sc2
Change-Id: I41022ce294ee4e3efebd9594188891a1b69a72d5
Signed-off-by: Hanjie Lin <hanjie.lin@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:
soft mode hrtimer be processed in ksoftirqd, cannot tick watchdog in time
Solution:
change mode from soft to hard that hrtimer be processed in irq context
Verify:
on A5
Change-Id: I5f2ff7d36dead1f141dee6df688775c1559bea00
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-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-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-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-193384
Problem:
not support show irq status when printk
Solution:
display use '-' instead
Verify:
local
Change-Id: I36454bdc6cd2e39ad7057fe3127721407a65cf15
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-185970
Problem:
1, need modify sched_domain flags for GKI20
2, Some tasks have been running in apu before isolating cpu.
Solution:
when tasks were scheduled, if tasks shouldn't be run on the apu,
they will be migrated to other cpus.
sync form 5.15
318edc835 isolcpus: don't select isolate cpu for non-bind tasks. [1/1]
db7f29820 sched_domain: enable BALANCE_WAKE and disable WAKE_AFFINE [1/1]
Verify:
sc2
Change-Id: I5a9610ad210b58a4cf427956296a062d95458eaa
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
PD#SWPL-185970
Problem:
arm64 aml_flush_cache_all will corrupt some regs
Solution:
save and restore corrupted registers in flush cache
Verify:
S7D
Change-Id: I7535974fd10a1fe822e34b6af3b582c47354ccad
Signed-off-by: song.han <song.han@amlogic.com>
PD#SWPL-185970
Problem:
check mte enable/disable,
if mte disable, update flag to notify AO CPU.
Solution:
if mte disable, update flag to notify AO CPU.
Verify:
BL201
Change-Id: I8b15c80da1dcd5fee1d0682bd5e3a3a6fee1e201
Signed-off-by: Yan Wang <yan.wang@amlogic.com>