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

Commit bcd36e88 authored by Praveen Kurapati's avatar Praveen Kurapati Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa3: Reduced excessive logs from ipa



Due to excessive logs from ipa it blocks other tasks execution.
Ratelimit added inorder to reduce the logs.

Change-Id: I00ae9b1e62dd14d82e22d3c788b68d0474a8de87
Signed-off-by: default avatarPraveen Kurapati <pkurapat@codeaurora.org>
parent ccad254c
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2021, The Linux Foundation. All rights reserved.
 */

#include <linux/debugfs.h>
@@ -56,6 +56,16 @@
			IPA_GSB_DRV_NAME " %s:%d " fmt, ## args); \
	} while (0)

#define IPA_GSB_ERR_RL(fmt, args...) \
	do { \
		pr_err_ratelimited_ipa(IPA_GSB_DRV_NAME " %s:%d " fmt, \
			__func__, __LINE__, ## args); \
		IPA_IPC_LOGGING(ipa3_get_ipc_logbuf(), \
			IPA_GSB_DRV_NAME " %s:%d " fmt, ## args); \
		IPA_IPC_LOGGING(ipa3_get_ipc_logbuf_low(), \
			IPA_GSB_DRV_NAME " %s:%d " fmt, ## args); \
	} while (0)

#define IPA_GSB_MAX_MSG_LEN 512

#ifdef CONFIG_DEBUG_FS
@@ -1184,7 +1194,7 @@ static int ipa_bridge_tx_dp_internal(u32 hdl, struct sk_buff *skb,
	}

	if (unlikely(!ipa_gsb_ctx->iface[hdl]->is_resumed)) {
		IPA_GSB_ERR("iface %d was suspended\n", hdl);
		IPA_GSB_ERR_RL("iface %d was suspended\n", hdl);
		return -EFAULT;
	}