msm: camera: common: Add drv debug flag to enable logging

Add debug drv flag to enable info logging for drv.

CRs-Fixed: 3065551
Change-Id: Ief9e2a84a379b9f0261567bcf13e2405f3c97d15
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
This commit is contained in:
Mukund Madhusudan Atre
2022-06-30 14:18:05 -07:00
committed by Camera Software Integration
parent 16b9458c5a
commit 7fea2743d8
5 changed files with 46 additions and 0 deletions

View File

@@ -143,6 +143,14 @@ static int cam_isp_blob_drv_config(struct cam_ife_hw_mgr_ctx *ctx,
ife_hw_mgr = ctx->hw_mgr;
drv_config = &prepare_hw_data->isp_drv_config;
if (debug_drv)
CAM_INFO(CAM_PERF,
"DRV config blob opcode:%u req_id:%llu disable_drv_override:%s ctx_idx:%u drv_en:%s path_idle_en:0x%x timeout_val:%u",
prepare_hw_data->packet_opcode_type, request_id,
CAM_BOOL_TO_YESNO(g_ife_hw_mgr.debug_cfg.disable_isp_drv),
ctx->ctx_index, CAM_BOOL_TO_YESNO(drv_config->drv_en),
drv_config->path_idle_en, drv_config->timeout_val);
CAM_DBG(CAM_PERF,
"DRV config blob opcode:%u req_id:%llu disable_drv_override:%s ctx_idx:%u drv_en:%u path_idle_en:0x%x timeout_val:%u",
prepare_hw_data->packet_opcode_type, request_id,

View File

@@ -5634,6 +5634,13 @@ static int cam_ife_csid_ver2_drv_config(
cam_io_w_mb(drv_config->timeout_val, mem_base + csid_reg->cmn_reg->drv_cfg2_addr);
if (debug_drv)
CAM_INFO(CAM_ISP,
"CSID[%u] sfe_en:%s DRV config init_req:%s cfg0_val:0x%x cfg1_val:0x%x cfg2_val:0x%x",
csid_hw->hw_intf->hw_idx, CAM_BOOL_TO_YESNO(csid_hw->flags.sfe_en),
CAM_BOOL_TO_YESNO(drv_config->is_init_config), cfg0_val, cfg1_val,
drv_config->timeout_val);
CAM_DBG(CAM_ISP,
"CSID[%u] sfe_en:%s DRV config init_req:%s cfg0_val:0x%x cfg1_val:0x%x cfg2_val:0x%x",
csid_hw->hw_intf->hw_idx, CAM_BOOL_TO_YESNO(csid_hw->flags.sfe_en),