Commit Graph

154 Commits

Author SHA1 Message Date
benlong.zhou 2d120bb920 kernel: read boot log same as kernel5.15 [1/1]
PD#SWPL-237927

Problem:
kernel can't get boot log

Solution:
kernel get boot log that they are blx's log
same as below CL
https://scgit.amlogic.com/#/c/527327/
https://scgit.amlogic.com/#/c/568160/
https://scgit.amlogic.com/#/c/580089/

Verify:
s7d_bm201

Change-Id: I786569565b2b5effde66d620e3b9b014ec6f8a2c
Signed-off-by: benlong.zhou <benlong.zhou@amlogic.com>
2025-12-03 21:58:50 -08:00
Jian Hu 118117c0f8 debug: fix compiling error for mk_zapper32.sh [1/1]
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>
2025-11-26 23:49:42 -08:00
biao.sun e63fcef83f mm: txhd2 memory opt [1/1]
PD#SWPL-232127

Problem:
memory optimization.

Solution:
memory opt

Verify:
txhd2.

Change-Id: I59213f0fbaecb792a1073b7f9c9e1facf7328edd
Signed-off-by: biao.sun <biao.sun@amlogic.com>
2025-10-12 23:20:09 -07:00
yao zhang1 88ea1e31f2 license: Fix amlogic drivers license. [1/1]
PD#SWPL-217731

Problem:
Fix amlogic license.

Solution:
Fix amlogic license.

Verify:
all chip

Change-Id: I36cc711e44a201ec944c6b0b54c0d21ab671b068
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2025-09-25 03:48:58 -07:00
qinglin.li f5416d7fb1 audio_utils: kasan mmap out-of-bounds [1/1]
PD#TV-176728

Problem:
kasan mmap out-of-bounds

Solution:
kasan mmap out-of-bounds

Verify:
local

Change-Id: I2a36d66b8384a80dd5e750224ac8d794cafe41ef
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-09-18 20:28:59 -07:00
Qiankun Wang ac5dfe15e4 IOTM: use readl instead of memcpy_fromio [1/1]
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>
2025-09-17 23:30:55 -07:00
Jian Hu 3cdcb0139b Kconfig: t6d: fix the Kconfig dependency [1/1]
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>
2025-09-17 18:46:45 -07:00
Qiankun Wang 557705706e debug: optimize usb/tty/DMC irqratio warning [1/1]
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>
2025-09-16 22:40:28 -07:00
qinglin.li 524e70f877 audio_utils: read overflow write size [1/1]
PD#TV-176728

Problem:
read overflow write size

Solution:
ignore read overflow write size

Verify:
local

Change-Id: I23dd3328ccd82da942366e951d4482065799f83a
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-09-12 12:03:44 -07:00
qinglin.li a893071450 audio_utils: /dev/audio_utils read panic [1/1]
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>
2025-09-12 12:03:38 -07:00
Hanjie Lin db3d2bc28d iotrace: fix iotrace record_print_buf crash issue [1/1]
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)
2025-08-26 23:12:02 -07:00
Qiankun Wang d1abb2d264 IOTM: sync kernel5.15 code again [1/1]
PD#SWPL-228466

Problem:
sync kernel5.15 code again.

Solution:
sync kernel5.15 code again.

Verify:
T6W

Change-Id: I3f6642539270665ddebdd7da45e880e03a69421d
Signed-off-by: Qiankun Wang <qiankun.wang@amlogic.com>
2025-08-25 19:56:10 -07:00
qinglin.li 5724876ed7 debugfs: add class debug replace debugfs [1/1]
PD#SWPL-227680

Problem:
add class debug replace debugfs

Solution:
limit aml_reg and aml_ddr, set cmdline 'debug_class=2'
/sys/class/debug/atrace_tag --> /sys/class/debug/atrace/atrace_tag
/sys/kernel/debug/aml_debug --> /sys/class/debug/aml_debug
/sys/kernel/debug/aml_reg --> /sys/class/debug/aml_reg
/sys/kernel/debug/aml_ddr --> /sys/class/debug/aml_ddr
/sys/kernel/debug/watchdog --> /sys/class/debug/watchdog

Verify:
Detail info

Change-Id: I90d6944729b699b7c4b0c3cceb56eff9956edd57
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-08-25 19:54:30 -07:00
Yan Wang a6e92ee2df IRQ Latch: add irq latch clear for GICv3. [1/1]
PD#SWPL-224482

Problem:
add irq latch clear for GICv3;

Solution:
add irq latch clear for GICv3;

Verify:
BL201

Change-Id: I917a025bf8bcbf05ef5b3740a16216ccc1b71954
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
2025-08-14 18:27:50 -07:00
qiankun.wang e081e66c5c tty: add initargs to reduce useless count [2/2]
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>
2025-08-14 06:38:44 -07:00
Hanjie Lin 00d98ee0a4 debug: add schedule info in task_struct [1/1]
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>
2025-07-29 07:09:25 -07:00
qiankun.wang c6c1a57139 IOTM: sync kernel5.15 code [1/1]
PD#SWPL-203987

Problem:
sync kernel5.15 code.

Solution:
IOTM: Fix coverity issue [1/1]
IOTM: enlarge iotm record size [1/1]
iotm: Fix coverity issue [1/1]
IOTM: stop iotm when irq has abnormal [1/1]
IOTM: data is out of bounds [1/1]
IOTM: enable iotm on t6w [1/2]

Verify:
T6D

Change-Id: I87712d26d9e6d2f062a08dd0e4bc3e8586b34a03
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2025-07-27 22:09:09 -07:00
qiankun.wang cce33b0dd4 debug: CF1 Optimization stack [1/1]
PD#SWPL-199175

Problem:
High-occupancy stack cleanup.

Solution:
Function stack size optimization.

Verify:
t6d

Change-Id: I87dcd26b8f14874a5c19a2a00c038fd188e6cc86
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
(cherry picked from commit 77f88ad65425f62280575ae207a576966c17eb78)
2025-07-15 05:11:55 -07:00
Jian Hu 439ae138ce vendor_hook: correct macro for CONFIG_ANDROID_VENDOR_HOOKS [1/1]
PD#SWPL-209777

Problem:
config ANDROID_VENDOR_HOOKS
bool "Android Vendor Hooks"
depends on TRACEPOINTS

Solution:
remove CONFIG_TRACEPOINTS for vendor hooks

Verify:
t6d

Change-Id: I756a2e6e592b50699cfe8ec84d420e080565dbe0
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2025-07-03 09:22:51 -07:00
lele xiang 802e492674 common: CF1 Add dedicated trace recording method. [1/1]
PD#SWPL-219578

Problem:
Provide a unified trace capture method.

Solution:
Add dedicated trace recording method.

Verify:
T6d/ohm

Change-Id: Iac70be86e65f1a91b93f6892eb64ee211f4fda21
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2025-06-24 05:17:13 -07:00
biao.sun 5c9aa79499 iotrace: Fix ramoops_io_en cmdline parsing issue [1/1]
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>
2025-06-03 04:14:52 -07:00
Hanjie Lin 54ac1d96b7 tty: reduce useless count [1/1]
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>
2025-05-21 22:30:10 -07:00
Wanwei Jiang 0ebbe91209 build: supports direct compilation using tools/bazel [1/4]
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>
2025-05-12 18:25:48 -07:00
Lei Zhang 62dc410477 preempt_rt: bringup preempt rt kernel [2/9]
PD#SWPL-201692

Problem:
build break with preempt rt enabled

Solution:
1, init spinlock with spin_lock_init()
2, compile with -Wno-unused-variable
3, fix vendor hook head file missing

Verify:
on A5

Change-Id: Ia5b8e605428168df54272aa5867aed9fc8fb563b
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2025-04-23 01:15:35 -07:00
Lei Zhang 0f8a850c60 preempt_rt: bringup preempt rt kernel [8/9]
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>
2025-04-23 01:14:39 -07:00
qinglin.li 9294f0bbf9 scripts: use kernel build ddk_module_headers [1/1]
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>
2025-04-15 04:35:40 -07:00
qinglin.li b5e626ec63 scripts: remove autopatch when ddk build [1/1]
PD#SWPL-208157

Problem:
remove autopatch when ddk build

Solution:
remove autopatch when ddk build

Verify:
local

Change-Id: Id25d195dd5edbc2fa55e777a765b42036a068072
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-04-15 04:35:07 -07:00
biao.sun 9460c30e50 smc: can't patch to kernel for google [1/1]
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>
2025-04-09 21:18:46 -07:00
Dezhen Wang 054039b58e scripts: add Kconfig and Makefile to common kernel source [1/1]
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>
2025-03-26 02:30:24 -08:00
qiankun.wang e327da4c18 IOTM: kernel6.12: all patches up to 2025-02-11 [1/1]
PD#SWPL-205945

Problem:
T6D kernel6.12 bringup on IOTM.

Solution:
https://scgit.amlogic.com/#/q/topic:SWPL-170602_kernel
https://scgit.amlogic.com/#/c/473118/
https://scgit.amlogic.com/490156
https://scgit.amlogic.com/#/q/topic:IOTM

Verify:
t6d

Change-Id: Ibf939699b89719e56b166ea442da84777e1055f6
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2025-03-19 22:00:31 -08:00
Wanwei Jiang 22a093e819 ddk: optimize ddk build [1/1]
PD#SWPL-195997

Problem:
optimize ddk build

Solution:
optimize ddk build

Verify:
sc2

Test:
PB

Change-Id: I662f1e2a33ae0e5bdae97a70deb624964c5e1c5a
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-03-03 22:25:19 -08:00
Wanwei Jiang cadab66c37 build: support ddk [1/1]
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>
2025-02-25 07:17:36 -08:00
biao.sun c5076ee716 meson_atrace: add memory alloc and meminfo event [1/1]
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>
2025-01-10 02:56:38 -08:00
Jian Hu 68bc14b23e drivers: correct __setup return value. [1/1]
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>
2025-01-07 01:47:53 -08:00
Dezhen Wang 9e4283999e debug: sync debug/audio_utils.c patch from 5.15 [1/1]
PD#SWPL-196412

Problem:
sync common_drivers/drivers/debug/audio_utils.c patches
from amlogic-5.15-dev to amlogic-6.12-dev branch

Solution:
sync patch

Verify:
Local

Change-Id: I802292b9bc2106e7779752d52235e8cacd4f7779
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-12-19 20:57:30 -08:00
qiankun.wang 227287e31c debug: module_params clean. [1/1]
PD#SWPL-195506

Problem:
too many module_params extend boot time.

Solution:
Use key-val to obtain module_params information.

Verify:
sc2

Change-Id: Id04543738a7a6d179b815910a75482cca9b011d7
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-12-16 00:32:23 -08:00
qinglin.li 8837565c66 printk: not support show irq status when printk [1/1]
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>
2024-11-26 23:59:27 -08:00
Jiucheng Xu f460340bf7 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-11-25 05:59:05 -08:00
qinglin.li 4cf4190da3 kernel6.12: upgrade kernel [1/1]
PD#SWPL-190713

Problem:
upgrade kernel

Solution:
AML_KERNEL_VERSION      4
UPSTREAM_VERSION        "773209423d7b"
AML_PATCH_VERSION       "773209423d7b"
MERGE_DATE              "2024-11-14"

Verify:
local

Change-Id: I78801d5b69c7ddcb6e6f4d5718b9f1f2d44b3ef5
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-11-13 19:24:25 -08:00
Hanjie Lin ce6122cee7 sched: optimize sched flag and correct cpu selecting for non-bind tasks [1/1]
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>
2024-11-13 00:42:18 -08:00
song.han 9114c81635 lockup: fix fiq dump crash [1/1]
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>
2024-11-12 23:59:33 -08:00
gerrit autosubmit 4abc089add Merge "MTE: debug: update flag according mte status. [1/1]" into amlogic-6.12-dev 2024-11-12 23:59:24 -08:00
Yan Wang 4bb9b1f44b MTE: debug: update flag according mte status. [1/1]
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>
2024-11-12 23:59:21 -08:00
song.han 1c19296009 iotrace: call stack support [1/1]
PD#SWPL-185970

Problem:
5.15-u scs can't work
arm 32bit caller_addr can't work

Solution:
arm64 use CALLER_ADDR micro
arm32 support find stack operation

Verify:
SC2

Change-Id: I8f5785f1a2518297b2a7dab609414356d78fa108
Signed-off-by: song.han <song.han@amlogic.com>
2024-11-12 23:59:07 -08:00
Lei Zhang 127a283ec4 isolcpus: retry register housekeeping_cpumask kprobe [1/1]
PD#SWPL-185970

Problem:
kprobe some instruction will fail, eg: nop in arm64
different config or compiler may cause register_kprobe fail

Solution:
retry with next instruction

Verify:
t5m

Change-Id: I2311ed64e06d901a0410148eeb2f1d94c554be11
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2024-11-12 23:58:24 -08:00
qiankun.wang fb2869504a debug: clean coverity. [1/1]
PD#SWPL-190780

Problem:
clean coverity

Solution:
modify code

Verify:
local

Change-Id: I38d71c0b857292a9260c84020ff2bd4ec7f9e933
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-11-12 21:59:42 -08:00
pengzhao.liu d6c287a046 kernel: a1 6.6 bringup to console [1/1]
PD#SWPL-182757

Problem:
kernel: a1 6.6 bringup to console.

Solution:
kernel: a1 6.6 bringup to console.

Verify:
a1 ad403

Change-Id: I595de3720c07bd186d51f503f73cf4e8d2ef539a
Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
2024-11-08 04:06:07 -08:00
Lei Zhang 490811e23b sched: disable CFS optimization [1/1]
PD#SWPL-190589

Problem:
current CFS optimization is incompatible with EEVDF

Solution:
temporarily disable the feature

Verify:
on SC2

Change-Id: Ifc632b69a19738e7024687b7936305fa914117b0
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2024-10-25 02:22:55 -07:00
Ao Xu 6cc9aab0a3 drm: sync 5.15 CL to 6.12 drm driver [1/1]
PD#SWPL-188410

Problem:
6.12 drm driver bringup

Solution:
sync 5.15 CL to 6.12 drm driver
delete CONFIG_AMLOGIC_KERNEL_VERSION related code

Verify:
sc2

Test:
DRM-OSD5,DRM-OSD-16

Change-Id: I27819e8d5c733961e0816a84050d0367f22df8fe
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-10-17 22:46:45 -07:00
song.han 095ef042a5 iotrace: add preempt protections at hooks [3/4]
PD#SWPL-185970

Problem:
BUG: sleeping function called from invalid context
	at kernel/sched/completion.c
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1,
	name: swapper/0
Preemption disabled at:
[<c0428468>] queue_stop_cpus_work+0x60/0x1bc
[<c030dc24>] show_stack+0x28/0x2c
[<c105e624>] dump_stack_lvl+0x48/0x54
[<c0371660>] ___might_sleep+0x1c4/0x1e8
[<c10621b8>] wait_for_completion+0x28/0x58
[<c0428180>] stop_machine_cpuslocked+0x10c/0x208
[<c106ac28>] patch_text+0x20/0x28
[<c0501254>] __jump_label_update+0x7c/0xec
[<c05002b8>] static_key_enable_cpuslocked+0x8c/0x100
[<c050034c>] static_key_enable+0x20/0x28
[<c0441acc>] tracepoint_add_func+0x38c/0x400
[<c0441c00>] tracepoint_probe_register+0x54/0x6c
[<c0db6974>] ftrace_ramoops_init+0x288/0x2fc
[<c163cb30>] aml_iotrace_init+0x46c/0x550
[<c03020a0>] do_one_initcall+0x104/0x364
[<c1601f90>] do_initcall_level+0xa0/0x15c
[<c1601ec0>] do_initcalls+0x58/0x88
[<c1601d04>] kernel_init_freeable+0x114/0x160
[<c105fe24>] kernel_init+0x20/0x1c4
[<c0300134>] ret_from_fork+0x14/0x40

Solution:
add preempt protections at hooks

Verify:
t5w

Change-Id: I4cfd069ca0b4ba2c9bd6e8202391577aff09d227
Signed-off-by: song.han <song.han@amlogic.com>
2024-10-15 04:30:08 -07:00