|
@@ -2957,14 +2957,17 @@ int cam_req_mgr_process_flush_req(void *priv, void *data)
|
|
|
switch (flush_info->flush_type) {
|
|
|
case CAM_REQ_MGR_FLUSH_TYPE_ALL:
|
|
|
link->last_flush_id = flush_info->req_id;
|
|
|
- CAM_INFO(CAM_CRM, "Last request id to flush is %lld",
|
|
|
- flush_info->req_id);
|
|
|
+ CAM_INFO(CAM_CRM, "Last request id to flush is %lld on link 0x%x",
|
|
|
+ flush_info->req_id, link->link_hdl);
|
|
|
__cam_req_mgr_flush_req_slot(link);
|
|
|
__cam_req_mgr_reset_apply_data(link);
|
|
|
__cam_req_mgr_flush_dev_with_max_pd(link, flush_info, link->max_delay);
|
|
|
link->open_req_cnt = 0;
|
|
|
break;
|
|
|
case CAM_REQ_MGR_FLUSH_TYPE_CANCEL_REQ:
|
|
|
+ link->last_flush_id = flush_info->req_id;
|
|
|
+ CAM_DBG(CAM_CRM, "Canceling req %lld on link 0x%x",
|
|
|
+ flush_info->req_id, link->link_hdl);
|
|
|
rc = __cam_req_mgr_try_cancel_req(link, flush_info);
|
|
|
if (rc)
|
|
|
CAM_WARN(CAM_CRM, "cannot cancel req_id %lld on link 0x%x",
|
|
@@ -3742,13 +3745,13 @@ static int cam_req_mgr_cb_add_req(struct cam_req_mgr_add_request *add_req)
|
|
|
if (idx < 0) {
|
|
|
if (((uint32_t)add_req->req_id) <= (link->last_flush_id)) {
|
|
|
CAM_INFO(CAM_CRM,
|
|
|
- "req %lld not found in in_q; it has been flushed [last_flush_req %u]",
|
|
|
- add_req->req_id, link->last_flush_id);
|
|
|
+ "req %lld not found in in_q; it has been flushed [last_flush_req %lld] link 0x%x",
|
|
|
+ add_req->req_id, link->last_flush_id, link->link_hdl);
|
|
|
rc = -EBADR;
|
|
|
} else {
|
|
|
CAM_ERR(CAM_CRM,
|
|
|
- "req %lld not found in in_q",
|
|
|
- add_req->req_id);
|
|
|
+ "req %lld not found in in_q on link 0x%x [last_flush_req %lld]",
|
|
|
+ add_req->req_id, link->link_hdl, link->last_flush_id);
|
|
|
rc = -ENOENT;
|
|
|
}
|
|
|
goto end;
|