msm: camera: core: Change the error logs to rate limited

In bubble cases and if not recovered, error logs causing
excessive logging issues. Change the error and warn logs to
rate limited in error bubble and apply failure cases.

CRs-Fixed: 2785070
Change-Id: Ia7268cfc7b672c24f3161cd65c53df5ee357e7ee
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
This commit is contained in:
Ravikishore Pampana
2020-09-30 15:30:11 +05:30
orang tua 6f7608c0a2
melakukan f5f9d74e97
4 mengubah file dengan 36 tambahan dan 22 penghapusan

Melihat File

@@ -320,7 +320,7 @@ static int __cam_req_mgr_notify_error_on_link(
return -EINVAL;
}
CAM_ERR(CAM_CRM,
CAM_ERR_RATE_LIMIT(CAM_CRM,
"Notifying userspace to trigger recovery on link 0x%x for session %d",
link->link_hdl, session->session_hdl);
@@ -340,7 +340,7 @@ static int __cam_req_mgr_notify_error_on_link(
V4L_EVENT_CAM_REQ_MGR_EVENT);
if (rc)
CAM_ERR(CAM_CRM,
CAM_ERR_RATE_LIMIT(CAM_CRM,
"Error in notifying recovery for session %d link 0x%x rc %d",
session->session_hdl, link->link_hdl, rc);
@@ -2826,7 +2826,7 @@ static int cam_req_mgr_process_trigger(void *priv, void *data)
}
if (link->state == CAM_CRM_LINK_STATE_ERR)
CAM_WARN(CAM_CRM, "Error recovery idx %d status %d",
CAM_WARN_RATE_LIMIT(CAM_CRM, "Error recovery idx %d status %d",
in_q->rd_idx,
in_q->slot[in_q->rd_idx].status);

Melihat File

@@ -240,7 +240,7 @@ static void cam_v4l2_event_queue_notify_error(const struct v4l2_event *old,
ev_header->u.frame_msg.link_hdl);
break;
case V4L_EVENT_CAM_REQ_MGR_ERROR:
CAM_ERR(CAM_CRM,
CAM_ERR_RATE_LIMIT(CAM_CRM,
"Failed to notify ERROR Sess %X ReqId %d Link %X Type %d",
ev_header->session_hdl,
ev_header->u.err_msg.request_id,