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

Commit f8f1f52d authored by Gidon Studinski's avatar Gidon Studinski
Browse files

msm: ipa3: enable smart prefetch control for MHI



Enable smart prefetch control for MHI channels.
This is done by configuring the channel scratch in GSI.

Change-Id: Icff18699ce96e224d6f58b8aadce006f3d5210ee
CRs-Fixed: 1004468
Signed-off-by: default avatarGidon Studinski <gidons@codeaurora.org>
parent 0fb411ab
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1671,9 +1671,10 @@ static int ipa_mhi_start_gsi_channel(struct ipa3_mhi_channel_ctx *channel,
			channel->channel_context_addr +
			offsetof(struct ipa3_mhi_ch_ctx, wp));
	ch_scratch.mhi.assert_bit40 = ipa3_mhi_ctx->assert_bit40;
	ch_scratch.mhi.max_outstanding_tre = 0;
	ch_scratch.mhi.max_outstanding_tre =
		ep_cfg->ipa_if_tlv * ch_props.re_size;
	ch_scratch.mhi.outstanding_threshold =
		4 * GSI_CHAN_RE_SIZE_16B;
		min(ep_cfg->ipa_if_tlv / 2, 8) * ch_props.re_size;
	ch_scratch.mhi.oob_mod_threshold = 4;
	if (channel->ch_ctx_host.brstmode == IPA_MHI_BURST_MODE_DEFAULT ||
		channel->ch_ctx_host.brstmode == IPA_MHI_BURST_MODE_ENABLE) {