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

Commit 39689348 authored by Mohammed's avatar Mohammed
Browse files

msm: ipa3: Reduced excessive logs from ipa



Currently watchdog bark issue occurs due to excessive logging from ipa.
Ratelimit functions are added inorder to reduce the logs.

Change-Id: I13c1ee235ea22dfd2d9473346e44a2c9a1d149ea
Acked-by: default avatarPraveen Kurapati <pkurapat@qti.qualcomm.com>
Signed-off-by: default avatarMohammed Javid <mjavid@codeaurora.org>
parent 51683be8
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -59,6 +59,16 @@
				DEV_NAME " %s:%d " fmt, ## args); \
	} while (0)

#define IPAWANERR_RL(fmt, args...) \
	do { \
		pr_err_ratelimited_ipa(DEV_NAME " %s:%d " fmt, __func__,\
				__LINE__, ## args); \
		IPA_IPC_LOGGING(ipa_get_ipc_logbuf(), \
				DEV_NAME " %s:%d " fmt, ## args); \
		IPA_IPC_LOGGING(ipa_get_ipc_logbuf_low(), \
				DEV_NAME " %s:%d " fmt, ## args); \
	} while (0)

#define IPAWANINFO(fmt, args...) \
	do { \
		pr_info(DEV_NAME " %s:%d " fmt, __func__,\
+1 −1
Original line number Diff line number Diff line
@@ -3518,7 +3518,7 @@ int ipa3_get_wlan_stats(struct ipa_get_wdi_sap_stats *wdi_sap_stats)
		ipa3_ctx->uc_wdi_ctx.stats_notify(IPA_GET_WDI_SAP_STATS,
			wdi_sap_stats);
	} else {
		IPAERR("uc_wdi_ctx.stats_notify NULL\n");
		IPAERR_RL("uc_wdi_ctx.stats_notify NULL\n");
		return -EFAULT;
	}
	return 0;
+3 −2
Original line number Diff line number Diff line
@@ -3120,7 +3120,7 @@ static int rmnet_ipa3_query_tethering_stats_wifi(

	rc = ipa3_get_wlan_stats(sap_stats);
	if (rc) {
		IPAWANERR("can't get ipa3_get_wlan_stats\n");
		IPAWANERR_RL("can't get ipa3_get_wlan_stats\n");
		kfree(sap_stats);
		return rc;
	} else if (data == NULL) {
@@ -3455,7 +3455,8 @@ int rmnet_ipa3_query_tethering_stats_all(
		rc = rmnet_ipa3_query_tethering_stats_wifi(
			&tether_stats, data->reset_stats);
		if (rc) {
			IPAWANERR("wlan WAN_IOC_QUERY_TETHER_STATS failed\n");
			IPAWANERR_RL(
				"wlan WAN_IOC_QUERY_TETHER_STATS failed\n");
			return rc;
		}
		data->tx_bytes = tether_stats.ipv4_tx_bytes
+1 −1
Original line number Diff line number Diff line
@@ -236,7 +236,7 @@ static long ipa3_wan_ioctl(struct file *filp,
		}
		if (rmnet_ipa3_poll_tethering_stats(
		(struct wan_ioctl_poll_tethering_stats *)param)) {
			IPAWANERR("WAN_IOCTL_POLL_TETHERING_STATS failed\n");
			IPAWANERR_RL("WAN_IOCTL_POLL_TETHERING_STATS failed\n");
			retval = -EFAULT;
			break;
		}