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

Commit 96bf8d6e authored by Ashok Vuyyuru's avatar Ashok Vuyyuru Committed by Jagadeesh Ponduru
Browse files

msm: ipa3: Adding changes to retry page allocation in WQ



Currently WQ was exiting when page allocation was failed, due to
that number of WQ schedule will increase. To avoid this retrying the
page allocation in same WQ context.

Change-Id: Iefb85ae1552aa595a0959664c3ba55f6aa742551
Signed-off-by: default avatarAshok Vuyyuru <quic_avuyyuru@quicinc.com>
parent f0f97b40
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
 * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
 */

#include <linux/delay.h>
@@ -2146,8 +2147,8 @@ static void ipa3_wq_page_repl(struct work_struct *work)
			goto fail_kmem_cache_alloc;
		rx_pkt = ipa3_alloc_rx_pkt_page(GFP_KERNEL, true);
		if (unlikely(!rx_pkt)) {
			IPAERR("ipa3_alloc_rx_pkt_page fails\n");
			break;
			IPAERR_RL("ipa3_alloc_rx_pkt_page fails\n");
			goto fail_kmem_cache_alloc;
		}
		rx_pkt->sys = sys;
		sys->repl->cache[curr] = rx_pkt;