From f033016e9e842c5b548b36d5785cc5e94a12c8e2 Mon Sep 17 00:00:00 2001 From: Dikshita Agarwal Date: Thu, 1 Oct 2020 16:32:22 +0530 Subject: [PATCH] msm-vidc: fix final BW voting to ICC Currently, Required BW is calculated in bytes per second but when setting it to ICC, kbps_to_icc macro is applied to calculated BW which again divides the value by 8 and resulting into less final vote to icc. Change-Id: I7a645478d05909308edea2170d7c5cb911cbf6f0 Signed-off-by: Dikshita Agarwal --- msm/vidc/hfi_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/vidc/hfi_common.c b/msm/vidc/hfi_common.c index 915a7c6bf4e5..1ffdc65a27ad 100644 --- a/msm/vidc/hfi_common.c +++ b/msm/vidc/hfi_common.c @@ -888,7 +888,7 @@ static int __vote_bandwidth(struct bus_info *bus, int rc = 0; s_vpr_p(sid, "Voting bus %s to ab %llu kbps\n", bus->name, bw_kbps); - rc = icc_set_bw(bus->path, kbps_to_icc(bw_kbps), 0); + rc = icc_set_bw(bus->path, bw_kbps, 0); if (rc) s_vpr_e(sid, "Failed voting bus %s to ab %llu, rc=%d\n", bus->name, bw_kbps, rc);