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

Commit 0b680372 authored by Abhijit Kulkarni's avatar Abhijit Kulkarni
Browse files

disp: msm: sde: fix qos perf for 90Hz panel



This change fixes the issue in selecting the correct
perf index for the 90Hz refresh rate, before this change
values corresponding to 60Hz were getting applied for this
refresh rate.

Change-Id: Id4f8af4da95f0d13d30f6316dc26dd65b61d7f79
Signed-off-by: default avatarAbhijit Kulkarni <kabhijit@codeaurora.org>
parent 5634bb0a
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -168,12 +168,11 @@ static void sde_encoder_phys_wb_set_qos(struct sde_encoder_phys *phys_enc)

	hw_wb = wb_enc->hw_wb;
	qos_count = perf->qos_refresh_count;
	while (qos_count && perf->qos_refresh_rate) {
		if (frame_rate >= perf->qos_refresh_rate[qos_count - 1]) {
			fps_index = qos_count - 1;
	while ((fps_index < qos_count) && perf->qos_refresh_rate) {
		if ((frame_rate <= perf->qos_refresh_rate[fps_index]) ||
				(fps_index == qos_count - 1))
			break;
		}
		qos_count--;
		fps_index++;
	}

	qos_cfg.danger_safe_en = true;
+4 −5
Original line number Diff line number Diff line
@@ -290,12 +290,11 @@ static void _sde_plane_set_qos_lut(struct drm_plane *plane,
	frame_rate = crtc->mode.vrefresh;
	perf = &psde->catalog->perf;
	qos_count = perf->qos_refresh_count;
	while (qos_count && perf->qos_refresh_rate) {
		if (frame_rate >= perf->qos_refresh_rate[qos_count - 1]) {
			fps_index = qos_count - 1;
	while ((fps_index < qos_count) && perf->qos_refresh_rate) {
		if ((frame_rate <= perf->qos_refresh_rate[fps_index]) ||
				(fps_index == qos_count - 1))
			break;
		}
		qos_count--;
		fps_index++;
	}

	if (!psde->is_rt_pipe) {