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

Commit 9c35c4f2 authored by Mahadevan's avatar Mahadevan
Browse files

disp: msm: avoid BW down vote after splash memory release



In RSC disabled targets during display bootup with continuous
splash constant ab and ib votes are set. Upon issuing first
commit these values gets updated and at the end of first commit
on release of splash resource the votes are removed using
sde_power_data_bus_set_quota API. On the very next commit if
bandwidth is changed from previous commit, new BW voting is
reflected else the disable splash vote exists and underruns are
seen. This patch removes the downvote and fixes the underruns
seen in video mode in targets for which rsc is disabled.

Change-Id: I628d426ad11c703dd972be89fa998588c53a57bb
Signed-off-by: default avatarMahadevan <quic_mahap@quicinc.com>
parent 315c86a3
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
/*
 * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
 * Copyright (c) 2014-2021, The Linux Foundation. All rights reserved.
 * Copyright (C) 2013 Red Hat
 * Author: Rob Clark <robdclark@gmail.com>
@@ -1099,6 +1100,7 @@ static void _sde_kms_release_splash_resource(struct sde_kms *sde_kms,
	/* remove the votes if all displays are done with splash */
	if (!sde_kms->splash_data.num_splash_displays) {
		for (i = 0; i < SDE_POWER_HANDLE_DBUS_ID_MAX; i++)
			if (sde_kms->perf.sde_rsc_available)
				sde_power_data_bus_set_quota(&priv->phandle, i,
					SDE_POWER_HANDLE_ENABLE_BUS_AB_QUOTA,
					SDE_POWER_HANDLE_ENABLE_BUS_IB_QUOTA);