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

Commit 83a7cef1 authored by Krishna Manikandan's avatar Krishna Manikandan Committed by Gerrit - the friendly Code Review server
Browse files

drm: msm: update vsync source for sde rsc



SDE rsc hw should select "1" for INTF_0,
"2" for INTF_1, etc. for vsync source. This patch
updates the vsync source from client based
on its intf index. It also updates the
bandwidth increase/decrease indication for
video mode display.

Change-Id: Ieef9f90ff8b43d51fac4564be9d9b8ce62d742f8
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
Signed-off-by: default avatarKrishna Manikandan <mkrishn@codeaurora.org>
parent c9152156
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5376,7 +5376,7 @@ struct drm_encoder *sde_encoder_init_with_ops(
	snprintf(name, SDE_NAME_SIZE, "rsc_enc%u", drm_enc->base.id);
	sde_enc->rsc_client = sde_rsc_client_create(SDE_RSC_INDEX, name,
		disp_info->is_primary ? SDE_RSC_PRIMARY_DISP_CLIENT :
		SDE_RSC_EXTERNAL_DISP_CLIENT, intf_index);
		SDE_RSC_EXTERNAL_DISP_CLIENT, intf_index + 1);
	if (IS_ERR_OR_NULL(sde_enc->rsc_client)) {
		SDE_DEBUG("sde rsc client create failed :%ld\n",
						PTR_ERR(sde_enc->rsc_client));
+3 −1
Original line number Diff line number Diff line
@@ -1097,7 +1097,9 @@ int sde_rsc_client_trigger_vote(struct sde_rsc_client *caller_client,
		rpmh_flush(rsc->disp_rsc);
	}

	if (rsc->hw_ops.bwi_status && rsc->current_state == SDE_RSC_CMD_STATE)
	if (rsc->hw_ops.bwi_status &&
		(rsc->current_state == SDE_RSC_CMD_STATE ||
		rsc->current_state == SDE_RSC_VID_STATE))
		rsc->hw_ops.bwi_status(rsc, bw_increase);
	else if (rsc->hw_ops.tcs_use_ok)
		rsc->hw_ops.tcs_use_ok(rsc);