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

Commit 9a57325b authored by David Dai's avatar David Dai
Browse files

msm: msm_bus: remove wait on wake/sleep request for disp RSC



In order to improve the performance for display usecases,
remove the wait_for_completion bits in the TCS commands generated
when sending the batch requests for WAKE and SLEEP sets. This
will also result in a Fire-and-Forget batch request when sent
to RPMH.

Change-Id: I8b8bedf51bf086fcb83ae7fa9e21e70f036b4012
Signed-off-by: default avatarDavid Dai <daidavid1@codeaurora.org>
parent 08c90a00
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -272,7 +272,6 @@ static int tcs_cmd_gen(struct msm_bus_node_device_type *cur_bcm,

	cmd->addr = cur_bcm->bcmdev->addr;
	cmd->data = BCM_TCS_CMD(commit, valid, vec_a, vec_b);
	cmd->wait = commit;

	return ret;
}
@@ -320,6 +319,7 @@ static int tcs_cmd_list_gen(int *n_active,
			commit = false;
			if (list_is_last(&cur_bcm->link,
						&cur_bcm_clist[i])) {
				cmdlist_active[k].wait = true;
				commit = true;
				idx++;
			}
@@ -369,6 +369,11 @@ static int tcs_cmd_list_gen(int *n_active,
				idx++;
			}

			if (cur_rsc->node_info->id == MSM_BUS_RSC_DISP) {
				cmdlist_wake[last_tcs].wait = false;
				cmdlist_sleep[last_tcs].wait = false;
			}

			tcs_cmd_gen(cur_bcm, &cmdlist_wake[k],
				cur_bcm->node_vec[ACTIVE_CTX].vec_a,
				cur_bcm->node_vec[ACTIVE_CTX].vec_b, commit);