From 14babb017fd0aa70d6fcba6b3b355c1ae4e039f7 Mon Sep 17 00:00:00 2001 From: Chinmay Sawarkar Date: Thu, 27 Oct 2016 11:52:56 -0700 Subject: [PATCH] msm: vidc: Scale bus bw along with venus clocks Scaling of Bus BW and Venus Clocks should go together. Otherwise the benefits of reducing voltage corner will be nullified, since VMEM vote remains high. CRs-Fixed: 1083761 Change-Id: Ib38ecabb3c4bf40fcf5ad368fbbdbe4c44edbf3b Signed-off-by: Chinmay Sawarkar --- drivers/media/platform/msm/vidc/msm_vidc_common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/media/platform/msm/vidc/msm_vidc_common.c b/drivers/media/platform/msm/vidc/msm_vidc_common.c index d1cc08d53017..84a5786c1dc6 100644 --- a/drivers/media/platform/msm/vidc/msm_vidc_common.c +++ b/drivers/media/platform/msm/vidc/msm_vidc_common.c @@ -3688,6 +3688,10 @@ static void log_frame(struct msm_vidc_inst *inst, struct vidc_frame_data *data, if (msm_comm_scale_clocks(inst->core)) dprintk(VIDC_WARN, "Failed to scale clocks. Performance might be impacted\n"); + + if (msm_comm_vote_bus(inst->core)) + dprintk(VIDC_WARN, + "Failed to scale bus. Performance might be impacted\n"); } static int request_seq_header(struct msm_vidc_inst *inst,