Commit Graph

5 Commits

Author SHA1 Message Date
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