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

Commit 9c629e06 authored by Deva Ramasubramanian's avatar Deva Ramasubramanian
Browse files

msm: vidc: Decrease lower threshold by extra buffers needed for DCVS



The lower threshold is a rough estimate for the number of buffers that
the client is likely to be holding.  Previously we considered that to be
the total number of buffers - minimum required by the firmware.

The total number of buffers includes extra buffers required for DCVS
which the client will most likely not hold.  So subtract that out from
the lower threshold as well.

With this change, the nominal residency is increased drastically.

Change-Id: I328bc0a7e8c52579225c09bd572cfbcbf99c4070
Signed-off-by: default avatarDeva Ramasubramanian <dramasub@codeaurora.org>
parent 1838c9d2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -218,7 +218,8 @@ void msm_dcvs_init_load(struct msm_vidc_inst *inst)
	/* calculating the min and max threshold */
	if (output_buf_req->buffer_count_actual) {
		dcvs->min_threshold = output_buf_req->buffer_count_actual -
			output_buf_req->buffer_count_min + 1;
			output_buf_req->buffer_count_min -
			msm_dcvs_get_extra_buff_count(inst) + 1;
		dcvs->max_threshold = output_buf_req->buffer_count_actual;
		if (dcvs->max_threshold <= dcvs->min_threshold)
			dcvs->max_threshold =