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

Commit d3ed8c16 authored by Amir Levy's avatar Amir Levy Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa3: Adapt the usage of IPA_SHARED_MEM_SIZE reg to IPAv3



At IPAv3 the fields of this register are in 8Byte units.

Change-Id: I162ea649eac0dd188c2ce5890197221b5f7dbfcc
Signed-off-by: default avatarGhanim Fodi <gfodi@codeaurora.org>
Signed-off-by: default avatarAmir Levy <alevy@codeaurora.org>
parent 9cc75e56
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -518,6 +518,9 @@ void _ipa_sram_settings_read_v3_0(void)
		IPA_SHARED_MEM_SIZE_OFST_v3_0,
		IPA_SHARED_MEM_SIZE_SHARED_MEM_SIZE_BMSK_v3_0,
		IPA_SHARED_MEM_SIZE_SHARED_MEM_SIZE_SHFT_v3_0);
	/* reg fields are in 8B units */
	ipa3_ctx->smem_restricted_bytes *= 8;
	ipa3_ctx->smem_sz *= 8;
	ipa3_ctx->smem_reqd_sz = IPA_MEM_PART(end_ofst);
	ipa3_ctx->hdr_tbl_lcl = 0;
	ipa3_ctx->hdr_proc_ctx_tbl_lcl = 1;