msm: camera: isp: Dont enable Wm configurations during HW start

There is a chance that during acquire time while updating write master,
for few resources io buffers are not allocated. If Wm configurations
are enabled without receiving io buffers then there is a chance of
hitting page fault issues.
This commit takes care of enabling Wm configurations for each
client only if io buffers are allocated.

CRs-Fixed: 2887053
Change-Id: I868bd01dbd896dd86eeec4fc92a8a62e746f79cf
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
This commit is contained in:
Shravya Samala
2021-03-25 23:28:22 +05:30
gecommit door Gerrit - the friendly Code Review server
bovenliggende 5602b6385c
commit 4874f370b3

Bestand weergeven

@@ -1330,10 +1330,9 @@ static int cam_vfe_bus_start_wm(
return -EINVAL;
}
}
/* Enable WM */
cam_io_w_mb(rsrc_data->en_cfg, common_data->mem_base +
rsrc_data->hw_regs->cfg);
/* enabling Wm configuratons are taken care in update_wm().
* i.e enable wm only if io buffers are allocated
*/
CAM_DBG(CAM_ISP, "WM res %d width = %d, height = %d", rsrc_data->index,
rsrc_data->width, rsrc_data->height);