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

Commit 34cbbdd6 authored by Ayush Kumar's avatar Ayush Kumar
Browse files

msm: camera: isp: Full recovery on CSID fatal error



In case, both csid and camif error is seen  at same time and if
overflow_pending flag is set by camif overflow error processing
then csid fatal error will not be processed and request for full
recovery has not been notified.

This change notify for full recovery in above sceanrio.

CRs-Fixed: 2845608
Change-Id: Id711867a42d4fd306c3f3e515a945eff071f28ba
Signed-off-by: default avatarAyush Kumar <ayushkr@codeaurora.org>
parent 49708f86
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -6956,12 +6956,18 @@ static int cam_ife_hw_mgr_find_affected_ctx(
			affected_core, CAM_IFE_HW_NUM_MAX))
			continue;

		if (error_event_data->error_type ==
			CAM_ISP_HW_ERROR_CSID_FATAL) {
			CAM_DBG(CAM_ISP, "CSID recovery");
			goto skip_overflow;
		}

		if (atomic_read(&ife_hwr_mgr_ctx->overflow_pending)) {
			CAM_INFO(CAM_ISP, "CTX:%d already error reported",
				ife_hwr_mgr_ctx->ctx_index);
			continue;
		}

skip_overflow:
		atomic_set(&ife_hwr_mgr_ctx->overflow_pending, 1);
		notify_err_cb = ife_hwr_mgr_ctx->common.event_cb[event_type];