Files
kernel_common_drivers/include/linux/amlogic/ramdump.h
T
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

17 lines
344 B
C

/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef __RAMDUMP_H__
#define __RAMDUMP_H__
#define SET_REBOOT_REASON 0x82000049
#define AMLOGIC_KERNEL_BOOTED 0x8000
#define RAMDUMP_STICKY_DATA_MASK 0xFFFF
noinline void ramdump_sync_data(void);
#endif /* __RAMDUMP_H__ */