Commit Graph

14 Commits

Author SHA1 Message Date
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
xia.jin 2cebc0869e t5m: ramdump result in system panic [1/1]
PD#TV-171675

Problem:
ramdump result in system panic

Solution:
correct return flow

Verify:
t5m

Change-Id: Iddd936cca512cfec32bb4dd285df431beb9d5b8e
Signed-off-by: xia.jin <xia.jin@amlogic.com>
(cherry picked from commit 6daeb667f85ec99d9be5ac6200907c9724442e9c)
2025-08-11 13:15:03 -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
dongqing.li 89d3368483 radump: kernel save dump file to android data [1/1]
PD#SWPL-209926

Problem:
ramdump can not save to android data.

Solution:
1. add dts node ramdump_data for kernel 32bit.
2. add debug log for ramdump_bin_read.

Verify:
S7D/T6D

Change-Id: Ib2e113fa0c34afa7059da026ea842ebb344c2573
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2025-05-17 15:11:03 -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
dongqing.li bb84725f88 ramdump: memcpy 0-24MB on panic for ker-32bit [2/2]
PD#SWPL-192100

Problem:
The 32-bit kernel cannot use the ramdump function.
Because the .text section is typically at 0x00108000,
which will be overwritten by the BL2E/BL33 after
reboot. And the PC side is unable to parse it.

Solution:
1. After kernel panic, use DMA to copy the 0-24MB
region to the 0x09000000 area.
2. Reboot to bl33z, fill compress_section[1] with
the 0x09000000 region.
3. Analyze it using the same method as before.

Verify:
sc2

Change-Id: I3e22beb06321289c6643d3f05ec2d910d5ce0beb
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2025-01-16 00:17:41 -08:00
dongqing.li 7ad47f227a ramdump: add a global string aml_ramdump [1/1]
PD#SWPL-195943

Problem:
When analyzing a crash, parameters such as --kaslr
and --kimage_voffset are required, but obtaining
these parameters is challenging.

Solution:
1.Add global string that contains parameter infor
such as kaslr, kimage_voffset, and others.
2.Get parameter: strings DUMP | grep aml_ramdump

Verify:
sc2_ah212

Change-Id: I5847dab4f4f2b09b9fb922ca2f456fee1e59147c
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2025-01-08 17:39:14 -08:00
dongqing.li 732dca472e ramdump: optimise print [1/1]
PD#SWPL-194715

Problem:
optimise print

Solution:
remove some ramdump print info

Verify:
sc2

Change-Id: Ic16cf2c5508724cdf4b22b573389f35f695dde4a
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-12-01 17:48:20 -08:00
dongqing.li 58f74472f7 ramdump: fix buildin err for parse info. [1/1]
PD#SWPL-191355

Problem:
For the low_mem project, the ramdump driver is
built-in. If many kernel configs are removed
during kernel size trimming, it may lead to build
errors in ramdump parsing info.
The removed configs info can be found in CL 486868.

Solution:
Romove parse info of kimage_voffset when ramdump
drv is built-in.

Verify:
sc2

Change-Id: I36b533bd06e56ca66b87850d01c0b0ad57c3a73c
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-11-20 18:19:03 -08:00
dongqing.li 71fc39c31f ramdump: support arm32/arm64 for ker6.12 [1/1]
PD#SWPL-188348

Problem:
ker6.12 souce code is old. And ramdump
is not working properly.

Solution:
1. sync ramdump.c from ker5.15.
2. enable CONFIG_AMLOGIC_RAMDUMP
3. modify TEXTOFFSET=0X0200800 for ker 32bit

Verify:
SC2_AH212

Change-Id: Id19ba0ef1302e9cf4cdf379d10c625519a8eef36
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-10-25 02:08:07 -07:00
dongqing.li 0839fd8d02 ramdump: support for ker6.6 sc2/sm1. [1/1]
PD#SWPL-160377

Problem:
need to support ramdump of sc2/sm1

Solution:
porting from ker5.15.

Verify:
ah212

Change-Id: I118c9409eb3d4b2dd87d859760b5bb4138091ee6
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-06-27 12:08:04 +00:00
dongqing.li e9d42c748b ramdump: ker5.15 creat /sys/kernel/mdump/compmsg [1/1]
PD#SWPL-132538

Problem:
The core-dump file cannot be saved to /data in Android.

Solution:
a. Fix BUG for bad page state when lazy_clear_work is running.
b. Print the parameter infor required for the crash tools.
c. Support for storing crashdump files in Android /data/vender/ramdump/
1)  When a kernel panic occurs, flush cache all.
2)  Restart to uboot stage and compress the full DDR.
3)  Set kernel dts rsv mem based on compressed infor.
4)  Crop reserved memory sub nodes to reduce mem usage.
5)  Kernel stage parsing dts to configure rsv mem.
6)  Android init.rc read sysnode, and generate crash file.

Verify:
sc2_ah212

Change-Id: Ic6fba2c305f9e3171445f3b89afa02c75c27a080
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2023-09-15 02:53:46 -07:00
dongqing.li 26df3302ed ramdump: ker5.15 flush cache all when kernel panic. [1/1]
PD#SWPL-137107

Problem:
The data in the ramdump crash file is abnormal
because the cache data has not been flushed back.

Solution:
1. Use ipi_stop hook to flush online cpu cache.
2. Use panic_notifier to flush panic cpu cache.

Verify:
sc2_ah212

Change-Id: Ifad5bd4203fdde327b8c2b19357aa2d92586063f
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2023-08-30 06:18:47 -07:00
dongqing.li 5c78a922a7 mm: kernel 5.15 add ramdump driver. [1/1]
PD#SWPL-108700

Problem:
kernel 5.15 cannot support ramdump.

Solution:
support it.

Verify:
sc2_ah212

Change-Id: I9eb56b006ac68ba1350a3183a9617f01e6749e62
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2023-02-11 01:27:38 -08:00