소스 검색

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 <[email protected]>
Ashok Vuyyuru 4 년 전
부모
커밋
69d8bcc9ab
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/platform/msm/ipa/ipa_v3/ipa_dp.c

+ 1 - 1
drivers/platform/msm/ipa/ipa_v3/ipa_dp.c

@@ -2785,7 +2785,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,