Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1021e2b authored by Qiwei Liu's avatar Qiwei Liu
Browse files

msm: vidc: don't change bw voting based on dcvs load



Don't modify dpb_cr, input_cr, complexity_factor based
on dcvs load, always use the worst case in pending list
to calculate bw.

Change-Id: Ide6f5ec180fbf66b2472b535677328a8ddc51f59
Signed-off-by: default avatarQiwei Liu <qiweil@codeaurora.org>
parent 71644d76
Loading
Loading
Loading
Loading
+0 −8
Original line number Original line Diff line number Diff line
@@ -185,14 +185,6 @@ static int fill_dynamic_stats(struct msm_vidc_inst *inst,
	vote_data->input_cr = min_input_cr;
	vote_data->input_cr = min_input_cr;
	vote_data->use_dpb_read = false;
	vote_data->use_dpb_read = false;


	/* Check if driver can vote for lower bus BW */
	if (inst->clk_data.load < inst->clk_data.load_norm) {
		vote_data->compression_ratio = max_cr;
		vote_data->complexity_factor = min_cf;
		vote_data->input_cr = max_input_cr;
		vote_data->use_dpb_read = true;
	}

	dprintk(VIDC_PROF,
	dprintk(VIDC_PROF,
		"Input CR = %d Recon CR = %d Complexity Factor = %d\n",
		"Input CR = %d Recon CR = %d Complexity Factor = %d\n",
			vote_data->input_cr, vote_data->compression_ratio,
			vote_data->input_cr, vote_data->compression_ratio,