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

@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
/*
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved.
*/
#ifndef __UAPI_LINUX_CAM_REQ_MGR_H
@@ -660,6 +660,8 @@ struct cam_mem_cpu_access_op {
* @CAM_REQ_MGR_CSID_MISSING_EOT : CSID is missing EOT on one or more lanes
* @CAM_REQ_MGR_CSID_RX_PKT_PAYLOAD_CORRUPTION : CSID long packet payload CRC mismatch
* @CAM_REQ_MGR_SENSOR_STREAM_OFF_FAILED : Failed to stream off sensor
* @CAM_REQ_MGR_VALID_SHUTTER_DROPPED : Valid shutter dropped
* @CAM_REQ_MGR_ISP_ERR_HWPD_VIOLATION : HWPD image size violation
*/
#define CAM_REQ_MGR_ISP_UNREPORTED_ERROR 0
#define CAM_REQ_MGR_LINK_STALLED_ERROR BIT(0)
@@ -677,6 +679,8 @@ struct cam_mem_cpu_access_op {
#define CAM_REQ_MGR_CSID_MISSING_EOT BIT(12)
#define CAM_REQ_MGR_CSID_RX_PKT_PAYLOAD_CORRUPTION BIT(13)
#define CAM_REQ_MGR_SENSOR_STREAM_OFF_FAILED BIT(14)
#define CAM_REQ_MGR_VALID_SHUTTER_DROPPED BIT(15)
#define CAM_REQ_MGR_ISP_ERR_HWPD_VIOLATION BIT(16)
/**
* struct cam_req_mgr_error_msg