msm: camera: isp: Add support for HWPD debugging

HWPD is associated with several modules, but only image size violation
displayed in the kernel when an error occur. Now we will pass the error
code of HWPD violation to UMD to help UMD to take necessary action and
dump relevant info.

CRs-Fixed: 3440015
Change-Id: I6483b228a8eeaac3bf54f5f83f8f8deab3da6250
Signed-off-by: Stark Lin <quic_starlin@quicinc.com>
This commit is contained in:
Stark Lin
2023-03-21 15:43:12 +08:00
committed by Camera Software Integration
parent a26b52bf45
commit c23a3f448c
7 changed files with 51 additions and 8 deletions

View File

@@ -3579,6 +3579,11 @@ static void __cam_isp_get_notification_evt_params(
err_type = CAM_SYNC_ISP_EVENT_VIOLATION;
recovery_type_temp |= CAM_REQ_MGR_ERROR_TYPE_RECOVERY;
}
if (hw_error & CAM_ISP_HW_ERROR_HWPD_VIOLATION) {
err_code |= CAM_REQ_MGR_ISP_ERR_HWPD_VIOLATION;
err_type = CAM_SYNC_ISP_EVENT_VIOLATION;
recovery_type_temp |= CAM_REQ_MGR_ERROR_TYPE_RECOVERY;
}
if (hw_error & CAM_ISP_HW_ERROR_BUSIF_OVERFLOW) {
err_code |= CAM_REQ_MGR_ISP_UNREPORTED_ERROR;
err_type = CAM_SYNC_ISP_EVENT_BUSIF_OVERFLOW;