From 3cb524ec42b00b1d2706df8b13ba54469057126b Mon Sep 17 00:00:00 2001 From: Karthik Anantha Ram Date: Tue, 4 May 2021 21:17:20 -0700 Subject: [PATCH] msm: camera: isp: Enable sys cache usage Enable sys cache usage by default for sHDR use-cases. The change also updates a log to indicate cache config for a given resource. CRs-Fixed: 2841729 Change-Id: Ie6c8530982fd0c36913e20c5359367d8dcffa66b Signed-off-by: Karthik Anantha Ram --- drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c | 3 ++- .../cam_isp/isp_hw_mgr/isp_hw/sfe_hw/sfe_bus/cam_sfe_bus_rd.c | 3 --- .../cam_isp/isp_hw_mgr/isp_hw/sfe_hw/sfe_bus/cam_sfe_bus_wr.c | 3 --- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c b/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c index ea5e0bb636..f13985266b 100644 --- a/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c +++ b/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c @@ -7205,7 +7205,8 @@ static int cam_isp_blob_sfe_exp_order_update( } } CAM_DBG(CAM_ISP, - "cache config based on exp order: %u [max: %u] for out: 0x%x", + "cache %s on exp order: %u [max: %u] for out: 0x%x", + (wm_rm_cache_cfg.use_cache ? "enabled" : "not enabled"), i, exp_order_max, order_cfg->res_type); } diff --git a/drivers/cam_isp/isp_hw_mgr/isp_hw/sfe_hw/sfe_bus/cam_sfe_bus_rd.c b/drivers/cam_isp/isp_hw_mgr/isp_hw/sfe_hw/sfe_bus/cam_sfe_bus_rd.c index 5b048ac1f4..9c9e9ec993 100644 --- a/drivers/cam_isp/isp_hw_mgr/isp_hw/sfe_hw/sfe_bus/cam_sfe_bus_rd.c +++ b/drivers/cam_isp/isp_hw_mgr/isp_hw/sfe_hw/sfe_bus/cam_sfe_bus_rd.c @@ -1602,9 +1602,6 @@ int cam_sfe_bus_rd_init( *sfe_bus = sfe_bus_local; bus_priv->common_data.sfe_debug_cfg = 0; - /* Remove after sys cache verification */ - bus_priv->common_data.cache_dbg_cfg.disable_all = true; - return rc; deinit_sfe_bus_rd: diff --git a/drivers/cam_isp/isp_hw_mgr/isp_hw/sfe_hw/sfe_bus/cam_sfe_bus_wr.c b/drivers/cam_isp/isp_hw_mgr/isp_hw/sfe_hw/sfe_bus/cam_sfe_bus_wr.c index 1651b94ee9..706988d21d 100644 --- a/drivers/cam_isp/isp_hw_mgr/isp_hw/sfe_hw/sfe_bus/cam_sfe_bus_wr.c +++ b/drivers/cam_isp/isp_hw_mgr/isp_hw/sfe_hw/sfe_bus/cam_sfe_bus_wr.c @@ -2926,9 +2926,6 @@ int cam_sfe_bus_wr_init( bus_priv->common_data.sfe_debug_cfg = 0; *sfe_bus = sfe_bus_local; - /* Remove after sys cache verification */ - bus_priv->common_data.cache_dbg_cfg.disable_all = true; - CAM_DBG(CAM_SFE, "Exit"); return rc;