mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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: Praveen Kurapati <pkurapat@codeaurora.org>
This commit is contained in:
parent
ccad254cc1
commit
bcd36e8871
1 changed files with 12 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// 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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue