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

Commit c0987895 authored by Mohammed Javid's avatar Mohammed Javid
Browse files

msm: ipa3: Fix to not send filter/route hash table indices to modem



When hashing is not supported in HW, modem will not expect
filter/route hash table indices to be sent. Make a change
to not to send the table indices when hashing is not supported.

Change-Id: If4581761774db81ea46de9d09ef5d283c1dc582d
Acked-by: default avatarAshok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: default avatarMohammed Javid <mjavid@codeaurora.org>
parent a84db540
Loading
Loading
Loading
Loading
+24 −20
Original line number Diff line number Diff line
@@ -476,6 +476,10 @@ static int ipa3_qmi_init_modem_send_sync_msg(void)
		IPA_MEM_PART(modem_comp_decomp_ofst) +
		IPA_MEM_PART(modem_comp_decomp_size) + smem_restr_bytes - 1;

	/* if hashing not supported, Modem filter/routing hash
	 * tables should not fill with valid data.
	 */
	if (!ipa3_ctx->ipa_fltrt_not_hashable) {
		req.v4_hash_route_tbl_info_valid = true;
		req.v4_hash_route_tbl_info.route_tbl_start_addr =
			IPA_MEM_PART(v4_rt_hash_ofst) + smem_restr_bytes;
@@ -495,7 +499,7 @@ static int ipa3_qmi_init_modem_send_sync_msg(void)
		req.v6_hash_filter_tbl_start_addr_valid = true;
		req.v6_hash_filter_tbl_start_addr =
			IPA_MEM_PART(v6_flt_hash_ofst) + smem_restr_bytes;

	}
	req.hw_stats_quota_base_addr_valid = true;
	req.hw_stats_quota_base_addr =
		IPA_MEM_PART(stats_quota_ofst) + smem_restr_bytes;