Merge "msm: vidc: fix bus undervoting issues"

This commit is contained in:
qctecmdr
2021-03-25 11:28:06 -07:00
committed by Gerrit - the friendly Code Review server
2 changed files with 6 additions and 6 deletions

View File

@@ -318,11 +318,11 @@ int msm_vidc_scale_buses(struct msm_vidc_inst *inst)
call_session_op(core, calc_bw, inst, vote_data);
inst->power.power_mode = vote_data->power_mode;
inst->power.ddr_bw = vote_data->calc_bw_ddr;
inst->power.sys_cache_bw = vote_data->calc_bw_llcc;
set_buses:
inst->power.power_mode = vote_data->power_mode;
rc = msm_vidc_set_buses(inst);
if (rc)
return rc;

View File

@@ -479,11 +479,11 @@ static int __vote_bandwidth(struct bus_info *bus,
{
int rc = 0;
d_vpr_p("Voting bus %s to ab %llu kbps\n", bus->name, kbps_to_icc(bw_kbps));
rc = icc_set_bw(bus->path, kbps_to_icc(bw_kbps), 0);
d_vpr_p("Voting bus %s to ab %llu kBps\n", bus->name, bw_kbps);
rc = icc_set_bw(bus->path, bw_kbps, 0);
if (rc)
d_vpr_e("Failed voting bus %s to ab %llu, rc=%d\n",
bus->name, kbps_to_icc(bw_kbps), rc);
bus->name, bw_kbps, rc);
return rc;
}
@@ -535,8 +535,8 @@ static int __vote_buses(struct msm_vidc_core *core,
bus->range[0], bus->range[1]);
if (TRIVIAL_BW_CHANGE(bw_kbps, bw_prev) && bw_prev) {
d_vpr_l("Skip voting bus %s to %llu bps\n",
bus->name, bw_kbps * 1000);
d_vpr_l("Skip voting bus %s to %llu kBps\n",
bus->name, bw_kbps);
continue;
}