From 3b10b9d33b13094342c4084357c5f144691abf30 Mon Sep 17 00:00:00 2001 From: Ashok Vuyyuru Date: Fri, 20 Nov 2020 00:36:22 +0530 Subject: [PATCH] msm: ipa3: Fix to unmap LOW LAT consumer pipe buffers Currently LOW LAT consumer pipe replnish skb not unmapped properly. Due to this running into out of memory issue. Adding changes to unmap LOW LAT consumer replnish buffers using correct method. Change-Id: I253519f7c2f5eba11d32074c7b1879feed1f413c Signed-off-by: Ashok Vuyyuru --- drivers/platform/msm/ipa/ipa_v3/ipa_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_dp.c b/drivers/platform/msm/ipa/ipa_v3/ipa_dp.c index 6e1addd91aa4..4f8c4521222a 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_dp.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_dp.c @@ -2784,7 +2784,7 @@ static void ipa3_cleanup_rx(struct ipa3_sys_context *sys) tail = atomic_read(&sys->repl->tail_idx); while (head != tail) { rx_pkt = sys->repl->cache[head]; - if (!ipa3_ctx->ipa_wan_skb_page) { + if (sys->repl_hdlr != ipa3_replenish_rx_page_recycle) { dma_unmap_single(ipa3_ctx->pdev, rx_pkt->data.dma_addr, sys->rx_buff_sz,