Răsfoiți Sursa

msm: camera: isp: Change warn logs to rate limited

In apply failure due to congestion and if not recovered, warn logs
causing excessive logging issues. Change the warn logs to rate
limit in apply failure due to congestion.

CRs-Fixed: 2884313
Change-Id: Id46a0cbe6a248a9186a6267577374f4fbadcf64f
Signed-off-by: Ayush Kumar <[email protected]>
Ayush Kumar 4 ani în urmă
părinte
comite
92a753d37d
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      drivers/cam_isp/cam_isp_context.c

+ 3 - 3
drivers/cam_isp/cam_isp_context.c

@@ -768,11 +768,11 @@ static void __cam_isp_ctx_handle_buf_done_fail_log(
 		return;
 		return;
 	}
 	}
 
 
-	CAM_WARN(CAM_ISP,
+	CAM_WARN_RATE_LIMIT(CAM_ISP,
 		"Prev Req[%lld] : num_out=%d, num_acked=%d, bubble : report=%d, detected=%d",
 		"Prev Req[%lld] : num_out=%d, num_acked=%d, bubble : report=%d, detected=%d",
 		request_id, req_isp->num_fence_map_out, req_isp->num_acked,
 		request_id, req_isp->num_fence_map_out, req_isp->num_acked,
 		req_isp->bubble_report, req_isp->bubble_detected);
 		req_isp->bubble_report, req_isp->bubble_detected);
-	CAM_WARN(CAM_ISP,
+	CAM_WARN_RATE_LIMIT(CAM_ISP,
 		"Resource Handles that fail to generate buf_done in prev frame");
 		"Resource Handles that fail to generate buf_done in prev frame");
 	for (i = 0; i < req_isp->num_fence_map_out; i++) {
 	for (i = 0; i < req_isp->num_fence_map_out; i++) {
 		if (req_isp->fence_map_out[i].sync_id != -1) {
 		if (req_isp->fence_map_out[i].sync_id != -1) {
@@ -796,7 +796,7 @@ static void __cam_isp_ctx_handle_buf_done_fail_log(
 				request_id, req_isp->fence_map_out[i].sync_id);
 				request_id, req_isp->fence_map_out[i].sync_id);
 			}
 			}
 
 
-			CAM_WARN(CAM_ISP,
+			CAM_WARN_RATE_LIMIT(CAM_ISP,
 			"Resource_Handle: [%s][0x%x] Sync_ID: [0x%x]",
 			"Resource_Handle: [%s][0x%x] Sync_ID: [0x%x]",
 			handle_type,
 			handle_type,
 			req_isp->fence_map_out[i].resource_handle,
 			req_isp->fence_map_out[i].resource_handle,