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

Commit b9ec37e6 authored by Ravit Katzav's avatar Ravit Katzav
Browse files

msm: ipa: odu: fix rx pool size



Change RX pool size for ODU consumer pipes to take into
account the overall BAM descriptor size to avoid having a pool
larger than pool size.

Change-Id: I205c277470c8dd243f133b232586d43817859d03
Acked-by: default avatarAdy Abraham <adya@qti.qualcomm.com>
Signed-off-by: default avatarRavit Katzav <rkatzav@codeaurora.org>
parent f1a9f6d4
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2568,6 +2568,9 @@ static int ipa_assign_policy(struct ipa_sys_connect_params *in,
					replenish_rx_work_func);
				atomic_set(&sys->curr_polling_state, 0);
				sys->rx_buff_sz = IPA_ODU_RX_BUFF_SZ;
				sys->rx_pool_sz = in->desc_fifo_sz /
					sizeof(struct sps_iovec) - 1;
				if (sys->rx_pool_sz > IPA_ODU_RX_POOL_SZ)
					sys->rx_pool_sz = IPA_ODU_RX_POOL_SZ;
				sys->pyld_hdlr = ipa_odu_rx_pyld_hdlr;
				sys->get_skb = ipa_get_skb_ipa_rx;