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

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

Merge "msm: mdss: Perform bandwidth check before applying any fudge"

parents 21864119 8cfeadc6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -660,9 +660,6 @@ static void __mdss_mdp_perf_calc_ctl_helper(struct mdss_mdp_ctl *ctl,
	}

	perf->bw_ctl = max(perf->bw_prefill, perf->bw_overlap);

	if (ctl->is_video_mode)
		perf->bw_ctl = IB_FUDGE_FACTOR(perf->bw_ctl);
}

int mdss_mdp_perf_bw_check(struct mdss_mdp_ctl *ctl,
@@ -738,6 +735,9 @@ static void mdss_mdp_perf_calc_ctl(struct mdss_mdp_ctl *ctl,
			left_plist, (left_plist ? MAX_PIPES_PER_LM : 0),
			right_plist, (right_plist ? MAX_PIPES_PER_LM : 0));

	if (ctl->is_video_mode)
		perf->bw_ctl = IB_FUDGE_FACTOR(perf->bw_ctl);

	pr_debug("ctl=%d clk_rate=%u\n", ctl->num, perf->mdp_clk_rate);
	pr_debug("bw_overlap=%llu bw_prefill=%llu prefill_byptes=%d\n",
		 perf->bw_overlap, perf->bw_prefill, perf->prefill_bytes);