[RAMEN9610-11229][COMMON][MODAP-16187] drivers: modem_if: Deliver AP crash status...
authorJiyoung Jeong <ji_0.jeong@samsung.com>
Thu, 17 Jan 2019 06:01:54 +0000 (15:01 +0900)
committerhskang <hs1218.kang@samsung.com>
Tue, 22 Jan 2019 13:36:04 +0000 (22:36 +0900)
- Notify AP kernel panic status to CP
- Make CP crash when ITMON is caused by CP

Change-Id: I085a013a66df9d14b204259887d1f0b6690d42ee
Signed-off-by: Jiyoung Jeong <ji_0.jeong@samsung.com>
drivers/soc/samsung/debug/exynos-helper.c
drivers/soc/samsung/debug/exynos9610-itmon.c

index 0599114c6911bde9e4a5956c9bcf6aecfee35561..229f67e692ea004cbaa61fe90e18a51f96fd4c52 100644 (file)
@@ -32,7 +32,7 @@
 
 #include <soc/samsung/exynos-bcm_dbg.h>
 
-#if defined(CONFIG_SEC_SIPC_MODEM_IF)
+#if defined(CONFIG_SEC_MODEM_IF)
 #include <soc/samsung/exynos-modem-ctrl.h>
 #endif
 
@@ -54,7 +54,7 @@ static void exynos_prepare_panic_entry(void *val)
 
 static void exynos_prepare_panic_exit(void *val)
 {
-#if defined(CONFIG_SEC_SIPC_MODEM_IF)
+#if defined(CONFIG_SEC_MODEM_IF)
        modem_send_panic_noti_ext();
 #endif
 #if defined(CONFIG_ACPM_DVFS)
index 247282080c11dfe3d0ae1b62a9da3fe9f8e2045d..1f0e0c0bbf65d0dd3e00c4ea18da90683beb70af 100644 (file)
 #include <linux/bitops.h>
 #include <soc/samsung/exynos-pmu.h>
 #include <soc/samsung/exynos-itmon.h>
+#if defined(CONFIG_SEC_MODEM_IF)
+#include <soc/samsung/exynos-modem-ctrl.h>
+#endif
+
 
 #define OFFSET_TMOUT_REG               (0x2000)
 #define OFFSET_REQ_R                   (0x0)
@@ -690,7 +694,10 @@ static void itmon_post_handler_by_master(struct itmon_dev *itmon,
                } else {
                        /* Disable busmon all interrupts */
                        itmon_init(itmon, false);
-                       /* TODO: CP Crash operation */
+#if defined(CONFIG_SEC_MODEM_IF)
+                       pdata->crash_in_progress = true;
+                       modem_force_crash_exit_ext();
+#endif
                }
        }
 }