msm: camera: ife: Add dentry to enable req dump
This change adds a dentry to enable req dump in the case of
hardware errors.
CRs-Fixed: 2513939
Change-Id: I0ae5d6c658964bf33d0e4c1775413aaa9201f7a1
Signed-off-by: Venkat Chinta <vchinta@codeaurora.org>
This commit is contained in:
parent
598dfb05af
commit
7e0fea6d1c
@ -6038,8 +6038,9 @@ static int cam_ife_hw_mgr_handle_hw_err(
|
||||
|
||||
if (g_ife_hw_mgr.debug_cfg.enable_recovery)
|
||||
error_event_data.recovery_enabled = true;
|
||||
else
|
||||
error_event_data.recovery_enabled = false;
|
||||
|
||||
if (g_ife_hw_mgr.debug_cfg.enable_req_dump)
|
||||
error_event_data.enable_req_dump = true;
|
||||
|
||||
rc = cam_ife_hw_mgr_find_affected_ctx(&error_event_data,
|
||||
core_idx, &recovery_data);
|
||||
@ -6502,6 +6503,14 @@ static int cam_ife_hw_mgr_debug_register(void)
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (!debugfs_create_bool("enable_req_dump",
|
||||
0644,
|
||||
g_ife_hw_mgr.debug_cfg.dentry,
|
||||
&g_ife_hw_mgr.debug_cfg.enable_req_dump)) {
|
||||
CAM_ERR(CAM_ISP, "failed to create enable_req_dump");
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (!debugfs_create_file("ife_camif_debug",
|
||||
0644,
|
||||
g_ife_hw_mgr.debug_cfg.dentry, NULL,
|
||||
|
@ -90,7 +90,7 @@ struct cam_ife_hw_mgr_debug {
|
||||
uint64_t csid_debug;
|
||||
uint32_t enable_recovery;
|
||||
uint32_t camif_debug;
|
||||
uint32_t enable_req_dump;
|
||||
bool enable_req_dump;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user