From: Hosung Kim Date: Thu, 24 May 2018 02:20:21 +0000 (+0900) Subject: [COMMON] lib: dss: move cache ops to soc helper X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5bcdb379886f4330677fb068f54868c2d04dca88;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] lib: dss: move cache ops to soc helper Change-Id: I5e3e6fc620f16dbe38aad741b283c3ec6b116d94 Signed-off-by: Hosung Kim --- diff --git a/drivers/soc/samsung/debug/exynos-helper.c b/drivers/soc/samsung/debug/exynos-helper.c index c7ce6b420eed..53699bb27865 100644 --- a/drivers/soc/samsung/debug/exynos-helper.c +++ b/drivers/soc/samsung/debug/exynos-helper.c @@ -24,6 +24,8 @@ #include #include +#include + #ifdef CONFIG_EXYNOS_CORESIGHT_ETR #include #endif @@ -63,6 +65,8 @@ static void exynos_post_panic_entry(void *val) static void exynos_post_panic_exit(void *val) { + flush_cache_all(); + #ifdef CONFIG_EXYNOS_SDM if (dbg_snapshot_is_scratch()) exynos_sdm_dump_secure_region(); @@ -79,7 +83,7 @@ static void exynos_save_context_entry(void *val) static void exynos_save_context_exit(void *val) { - /* TODO: Something */ + flush_cache_all(); } static void exynos_start_watchdog(void *val) diff --git a/lib/debug-snapshot-helper.c b/lib/debug-snapshot-helper.c index 03ae0603bbda..7bc4b3af5526 100644 --- a/lib/debug-snapshot-helper.c +++ b/lib/debug-snapshot-helper.c @@ -31,7 +31,6 @@ #include #include #include -#include #include "debug-snapshot-local.h" #include @@ -252,7 +251,7 @@ int dbg_snapshot_post_panic(void) dbg_snapshot_dump_sfr(); #endif dbg_snapshot_save_context(NULL); -// flush_cache_all(); + dbg_snapshot_print_panic_report(); dss_soc_ops->soc_post_panic_exit(NULL); @@ -321,7 +320,6 @@ int dbg_snapshot_post_reboot(char *cmd) pr_emerg("debug-snapshot: normal reboot done\n"); dbg_snapshot_save_context(NULL); -// flush_cache_all(); return 0; } @@ -353,7 +351,7 @@ static int dbg_snapshot_panic_handler(struct notifier_block *nb, #endif dbg_snapshot_dump_task_info(); pr_emerg("linux_banner: %s\n", linux_banner); -// flush_cache_all(); + return 0; } diff --git a/lib/debug-snapshot-utils.c b/lib/debug-snapshot-utils.c index 74399e57ade9..f7d0575b6ea8 100644 --- a/lib/debug-snapshot-utils.c +++ b/lib/debug-snapshot-utils.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -453,7 +452,6 @@ int dbg_snapshot_save_context(void *v_regs) } else pr_emerg("debug-snapshot: skip context saved(CPU:%d)\n", cpu); -// flush_cache_all(); raw_spin_unlock_irqrestore(&dss_desc.ctrl_lock, flags); dss_soc_ops->soc_save_context_exit(NULL);