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

Commit d3e1fc74 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Increase the MIN DRAIN RATE when DCVS is enabled"

parents 27ad2650 b38e5989
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1578,7 +1578,8 @@ static void handle_fbd(enum command_response cmd, void *data)
		default:
			break;
		}
		if (msm_vidc_dcvs_mode && inst->dcvs_mode) {
		if (msm_vidc_dcvs_mode && inst->dcvs_mode &&
			fill_buf_done->filled_len1) {
			msm_comm_monitor_ftb(inst);
			rc = msm_comm_scale_clocks_dcvs(inst, true);
			if (rc)
@@ -1994,10 +1995,10 @@ static int msm_comm_scale_clocks_dcvs(struct msm_vidc_inst *inst, bool fbd)
		* more than high threshold
		*/
		if (!dcvs->change_initial_freq &&
			buffers_outside_fw > dcvs->threshold_disp_buf_high)
			buffers_outside_fw >= dcvs->threshold_disp_buf_high)
			dcvs->change_initial_freq = true;

		if (buffers_outside_fw > dcvs->threshold_disp_buf_high &&
		if (buffers_outside_fw >= dcvs->threshold_disp_buf_high &&
			!dcvs->prev_freq_increased) {
			dcvs->load = dcvs->load_low;
			dcvs->prev_freq_lowered = true;
+2 −2
Original line number Diff line number Diff line
@@ -78,8 +78,8 @@
#define DCVS_BUFFER_SAFEGUARD 1
/* Considering one output buffer in transition after decode */
#define DCVS_BUFFER_RELEASED_DEC 1
/* Considering atleast one FTB between each FBD */
#define DCVS_MIN_DRAIN_RATE 1
/* Considering at least two FTB's between each FBD */
#define DCVS_MIN_DRAIN_RATE 2
/* Ensures difference of 4 between min and max threshold always*/
#define DCVS_MIN_THRESHOLD_DIFF 4
/* Maintains the number of FTB's between each FBD over a window */