[RAMEN9610-14032] gud: add force recovery for TEE crash
authorJungtae Kim <jt1217.kim@samsung.com>
Fri, 29 Mar 2019 03:54:44 +0000 (12:54 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:22 +0000 (20:23 +0300)
In case of TEE crash at boot time, device cannot start correctly because
some android services depends on TEE cannot run. So, to recover this
situation, this patch added forced panic() to restart device and
to recorver TEE.

Change-Id: I50e67ef6e865227ff28d4b31c7eee3cdd1244276
Signed-off-by: Jungtae Kim <jt1217.kim@samsung.com>
drivers/gud/gud-exynos9610/MobiCoreDriver/nq.c

index 45c51e333921b6b80739a085e6ad47507bed089a..0f6ebe576fbad726b28fe329b271eaefebea1e46 100755 (executable)
@@ -513,6 +513,8 @@ static void nq_handle_tee_crash(void)
         */
        nq_dump_status();
        blocking_notifier_call_chain(&l_ctx.tee_stop_notifiers, 0, NULL);
+       /* ExySp */
+       panic("t-base halt");
 }
 
 static inline void set_sleep_mode_rq(u16 sleep_req)