msm: ipa: rate limit the error logs from IPA

Reducing/Rate limitting the IPA error logs.

Change-Id: Ib664a252681ac10daf24b276a447f19bff01c982
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
This commit is contained in:
Michael Adisumarta 2020-07-31 13:48:14 -07:00
commit aeb5c38043
2 changed files with 6 additions and 6 deletions

View file

@ -2851,7 +2851,7 @@ EXPORT_SYMBOL(ipa3_suspend_wdi_pipe);
int ipa3_broadcast_wdi_quota_reach_ind(uint32_t fid,
uint64_t num_bytes)
{
IPAERR("Quota reached indication on fid(%d) Mbytes(%lu)\n",
IPAERR_RL("Quota reached indication on fid(%d) Mbytes(%lu)\n",
fid, (unsigned long)num_bytes);
ipa3_broadcast_quota_reach_ind(0, IPA_UPSTEAM_WLAN);
return 0;
@ -3052,17 +3052,17 @@ int ipa3_create_wdi_mapping(u32 num_buffers, struct ipa_wdi_buffer_info *info)
int prot = IOMMU_READ | IOMMU_WRITE;
if (!info) {
IPAERR("info = %pK\n", info);
IPAERR_RL("info = %pK\n", info);
return -EINVAL;
}
if (!cb->valid) {
IPAERR("No SMMU CB setup\n");
IPAERR_RL("No SMMU CB setup\n");
return -EINVAL;
}
if (ipa3_ctx->s1_bypass_arr[IPA_SMMU_CB_WLAN]) {
IPAERR("IPA SMMU not enabled\n");
IPAERR_RL("IPA SMMU not enabled\n");
return -EINVAL;
}

View file

@ -3186,7 +3186,7 @@ static int rmnet_ipa3_set_data_quota_wifi(struct wan_ioctl_set_data_quota *data)
memset(&wifi_quota, 0, sizeof(struct ipa_set_wifi_quota));
wifi_quota.set_quota = data->set_quota;
wifi_quota.quota_bytes = data->quota_mbytes;
IPAWANERR("iface name %s, quota %lu\n",
IPAWANDBG("iface name %s, quota %lu\n",
data->interface_name, (unsigned long) data->quota_mbytes);
if (ipa3_ctx_get_type(IPA_HW_TYPE) >= IPA_HW_v4_5) {
@ -4218,7 +4218,7 @@ void ipa3_broadcast_quota_reach_ind(u32 mux_id,
return;
}
IPAWANERR("putting nlmsg: <%s> <%s> <%s>\n",
IPAWANDBG("putting nlmsg: <%s> <%s> <%s>\n",
alert_msg, iface_name_l, iface_name_m);
kobject_uevent_env(&(IPA_NETDEV()->dev.kobj),
KOBJ_CHANGE, envp);