msm: camera: reqmgr: Propagate hw failures to user
Propagate error code to user in order to let the user know more about the failure. CRs-Fixed: 2860306 Change-Id: Icf030aa9df32eac97371059c2d282cfb53257401 Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
This commit is contained in:
@@ -438,6 +438,22 @@ struct cam_mem_cache_ops_cmd {
|
||||
#define CAM_REQ_MGR_ERROR_TYPE_FULL_RECOVERY 5
|
||||
#define CAM_REQ_MGR_ERROR_TYPE_PAGE_FAULT 6
|
||||
|
||||
/**
|
||||
* Request Manager : Error codes
|
||||
* @CAM_REQ_MGR_ISP_UNREPORTED_ERROR : No Error Code reported
|
||||
* @CAM_REQ_MGR_LINK_STALLED_ERROR : Unable to apply requests on link
|
||||
* @CAM_REQ_MGR_CSID_FATAL_ERROR : CSID FATAL Error
|
||||
* @CAM_REQ_MGR_CSID_FIFO_OVERFLOW_ERROR : CSID FIFO Overflow
|
||||
* @CAM_REQ_MGR_CSID_RECOVERY_OVERFLOW_ERROR : CSID Recovery Overflow
|
||||
* @CAM_REQ_MGR_CSID_PIXEL_COUNT_MISMATCH : CSID Pixel Count Mismatch
|
||||
*/
|
||||
#define CAM_REQ_MGR_ISP_UNREPORTED_ERROR 0
|
||||
#define CAM_REQ_MGR_LINK_STALLED_ERROR BIT(0)
|
||||
#define CAM_REQ_MGR_CSID_FATAL_ERROR BIT(1)
|
||||
#define CAM_REQ_MGR_CSID_FIFO_OVERFLOW_ERROR BIT(2)
|
||||
#define CAM_REQ_MGR_CSID_RECOVERY_OVERFLOW_ERROR BIT(3)
|
||||
#define CAM_REQ_MGR_CSID_PIXEL_COUNT_MISMATCH BIT(5)
|
||||
|
||||
/**
|
||||
* struct cam_req_mgr_error_msg
|
||||
* @error_type: type of error
|
||||
@@ -445,13 +461,16 @@ struct cam_mem_cache_ops_cmd {
|
||||
* @device_hdl: device handle
|
||||
* @linke_hdl: link_hdl
|
||||
* @resource_size: size of the resource
|
||||
* @error_code: Error code reported by the event.
|
||||
* Note: This field is a bit field.
|
||||
*/
|
||||
struct cam_req_mgr_error_msg {
|
||||
__u32 error_type;
|
||||
__u32 request_id;
|
||||
__s32 device_hdl;
|
||||
__s32 link_hdl;
|
||||
__u64 resource_size;
|
||||
__u32 resource_size;
|
||||
__u32 error_code;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user