Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 939fe7e5 authored by Tejas Prajapati's avatar Tejas Prajapati
Browse files

msm: camera: icp: icp debug improvement



ON receiving HFI_EVENT_SYS_ERROR event_id as part
of sys_error msg and event_data1 is set to
HFI_ERR_SYS_FATAL, trigger the crash.

Change-Id: Ib92a4ecb3cc89e2e392af0fa6d5b4a8655817f4a
Signed-off-by: default avatarTejas Prajapati <tpraja@codeaurora.org>
parent 966d4aa6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1854,6 +1854,10 @@ static int cam_icp_mgr_process_fatal_error(

	if (event_notify->event_id == HFI_EVENT_SYS_ERROR) {
		CAM_INFO(CAM_ICP, "received HFI_EVENT_SYS_ERROR");
		if (event_notify->event_data1 == HFI_ERR_SYS_FATAL) {
			CAM_ERR(CAM_ICP, "received HFI_ERR_SYS_FATAL");
			BUG();
		}
		rc = cam_icp_mgr_trigger_recovery(hw_mgr);
		cam_icp_mgr_process_dbg_buf(icp_hw_mgr.a5_dbg_lvl);
	}