Merge "msm: camera: cdm: Fix incorrect condition in cdm code" into camera-kernel.lnx.5.0

このコミットが含まれているのは:
Savita Patted
2021-11-01 19:58:39 -07:00
committed by Gerrit - the friendly Code Review server
コミット b06c540564
2個のファイルの変更6行の追加11行の削除

ファイルの表示

@@ -961,7 +961,7 @@ int cam_hw_cdm_submit_bl(struct cam_hw_info *cdm_hw,
dma_addr_t hw_vaddr_ptr = 0;
size_t len = 0;
if ((!cdm_cmd->cmd[i].len) && (cdm_cmd->cmd[i].len > CAM_CDM_MAX_BL_LENGTH)) {
if ((!cdm_cmd->cmd[i].len) || (cdm_cmd->cmd[i].len > CAM_CDM_MAX_BL_LENGTH)) {
CAM_ERR(CAM_CDM,
"cmd len=: %d is invalid_ent: %d, num_cmd_ent: %d",
cdm_cmd->cmd[i].len, i,
@@ -1312,11 +1312,7 @@ static void cam_hw_cdm_work(struct work_struct *work)
mutex_lock(&cdm_hw->hw_mutex);
for (i = 0; i < core->offsets->reg_data->num_bl_fifo; i++)
mutex_lock(&core->bl_fifo[i].fifo_lock);
/*
* First pause CDM, If it fails still proceed
* to dump debug info
*/
cam_hw_cdm_pause_core(cdm_hw, true);
cam_hw_cdm_dump_core_debug_registers(cdm_hw, true);
if (payload->irq_status &
@@ -1341,8 +1337,7 @@ static void cam_hw_cdm_work(struct work_struct *work)
kfree(node);
}
}
/* Resume CDM back */
cam_hw_cdm_pause_core(cdm_hw, false);
for (i = 0; i < core->offsets->reg_data->num_bl_fifo; i++)
mutex_unlock(&core->bl_fifo[i].fifo_lock);

ファイルの表示

@@ -5955,9 +5955,9 @@ static int cam_ife_mgr_config_hw(void *hw_mgr_priv,
CAM_ERR(CAM_ISP,
"config done completion timeout for req_id=%llu ctx_index %d",
cfg->request_id, ctx->ctx_index);
if (cam_cdm_detect_hang_error(ctx->cdm_handle))
cam_cdm_dump_debug_registers(
ctx->cdm_handle);
if (!cam_cdm_detect_hang_error(ctx->cdm_handle))
CAM_ERR(CAM_ISP, "CDM Workqueue delayed");
rc = -ETIMEDOUT;
} else {
CAM_DBG(CAM_ISP,