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

Commit 657c920b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa3: enable smart prefetch control for MHI"

parents 8ff2f9d4 f8f1f52d
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) {