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

Commit f55c5e04 authored by Ghanim Fodi's avatar Ghanim Fodi Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa3: fix qsb configuration for ipa4.0



Starting IPA 4.0, max outstanding reads for the
DDR QMB need to be update to 12 instead of 8.

Change-Id: I7d143bcb86799970d9b1b2fd89fd1668fa575f62
Signed-off-by: default avatarGhanim Fodi <gfodi@codeaurora.org>
parent b0440959
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1991,10 +1991,13 @@ void ipa3_cfg_qsb(void)
	max_writes.qmb_1_max_writes = 2;

	if (ipa3_ctx->ipa_hw_type >= IPA_HW_v3_5) {
		max_writes.qmb_1_max_writes = 4;
		max_reads.qmb_1_max_reads = 12;
		max_writes.qmb_1_max_writes = 4;
	}

	if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_0)
		max_reads.qmb_0_max_reads = 12;

	ipahal_write_reg_fields(IPA_QSB_MAX_WRITES, &max_writes);
	ipahal_write_reg_fields(IPA_QSB_MAX_READS, &max_reads);
}