Merge tag 'LA.UM.9.14.r1-21000-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa into android13-5.4-lahaina

"LA.UM.9.14.r1-21000-LAHAINA.QSSI13.0"

* tag 'LA.UM.9.14.r1-21000-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa:
  msm: ipa3: Adding changes to retry page allocation in WQ
  msm: ipa3: Adding check for odl stats

Change-Id: Ie55ccb4d0730d790b96abf245a2a850fa8427a84
This commit is contained in:
Michael Bestas 2022-12-17 02:54:21 +02:00
commit c594a5d1d7
No known key found for this signature in database
GPG Key ID: CC95044519BE6669
2 changed files with 8 additions and 2 deletions

View File

@ -1398,6 +1398,11 @@ static ssize_t ipa3_read_odlstats(struct file *file, char __user *ubuf,
int nbytes; int nbytes;
int cnt = 0; int cnt = 0;
if (!ipa3_odl_ctx) {
IPADBG("ODL stats not supported\n");
return 0;
}
nbytes = scnprintf(dbg_buff, IPA_MAX_MSG_LEN, nbytes = scnprintf(dbg_buff, IPA_MAX_MSG_LEN,
"ODL received pkt =%u\n" "ODL received pkt =%u\n"
"ODL processed pkt to DIAG=%u\n" "ODL processed pkt to DIAG=%u\n"

View File

@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-only // SPDX-License-Identifier: GPL-2.0-only
/* /*
* Copyright (c) 2012-2021, The Linux Foundation. All rights reserved. * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
*/ */
#include <linux/delay.h> #include <linux/delay.h>
@ -2146,8 +2147,8 @@ begin:
goto fail_kmem_cache_alloc; goto fail_kmem_cache_alloc;
rx_pkt = ipa3_alloc_rx_pkt_page(GFP_KERNEL, true); rx_pkt = ipa3_alloc_rx_pkt_page(GFP_KERNEL, true);
if (unlikely(!rx_pkt)) { if (unlikely(!rx_pkt)) {
IPAERR("ipa3_alloc_rx_pkt_page fails\n"); IPAERR_RL("ipa3_alloc_rx_pkt_page fails\n");
break; goto fail_kmem_cache_alloc;
} }
rx_pkt->sys = sys; rx_pkt->sys = sys;
sys->repl->cache[curr] = rx_pkt; sys->repl->cache[curr] = rx_pkt;