qcacmn: Rate limit CE access log to avoid watchdog bark

Rate limit CE access log to avoid watch dog bark because of
excessive console logging.

Change-Id: I460a39f02206f651eafc26febd5628766e471483
CRs-Fixed: 2207647
This commit is contained in:
Rajeev Kumar 2018-03-19 13:52:41 -07:00 • committed by nshrivas
commit 19735e75ce
2 changed files with 8 additions and 7 deletions

View file

@ -1977,7 +1977,7 @@ more_data:
CE_ENGINE_INT_STATUS_CLEAR(scn, ctrl_addr,
HOST_IS_COPY_COMPLETE_MASK);
} else {
HIF_ERROR("%s: target access is not allowed", __func__);
hif_err_rl("%s: target access is not allowed", __func__);
return;
}
@ -2181,7 +2181,8 @@ more_watermarks:
CE_WATERMARK_MASK |
HOST_IS_COPY_COMPLETE_MASK);
} else {
HIF_ERROR("%s: target access is not allowed", __func__);
hif_err_rl("%s: target access is not allowed",
__func__);
goto unlock_end;
}
}
@ -2309,7 +2310,7 @@ ce_per_engine_handler_adjust_legacy(struct CE_state *CE_state,
return;
if (!TARGET_REGISTER_ACCESS_ALLOWED(scn)) {
HIF_ERROR("%s: target access is not allowed", __func__);
hif_err_rl("%s: target access is not allowed", __func__);
return;
}

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015-2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2015-2018 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@ -48,7 +48,7 @@ static inline void ce_enable_irq_in_individual_register(struct hif_softc *scn,
offset = HOST_IE_ADDRESS + CE_BASE_ADDRESS(ce_id);
if (!TARGET_REGISTER_ACCESS_ALLOWED(scn)) {
HIF_ERROR("%s: target access is not allowed", __func__);
hif_err_rl("%s: target access is not allowed", __func__);
return;
}
hif_write32_mb(scn->mem + offset, 1);
@ -61,13 +61,13 @@ static inline void ce_disable_irq_in_individual_register(struct hif_softc *scn,
offset = HOST_IE_ADDRESS + CE_BASE_ADDRESS(ce_id);
if (!TARGET_REGISTER_ACCESS_ALLOWED(scn)) {
HIF_ERROR("%s: target access is not allowed", __func__);
hif_err_rl("%s: target access is not allowed", __func__);
return;
}
hif_write32_mb(scn->mem + offset, 0);
if (!TARGET_REGISTER_ACCESS_ALLOWED(scn)) {
HIF_ERROR("%s: target access is not allowed", __func__);
hif_err_rl("%s: target access is not allowed", __func__);
return;
}
hif_read32_mb(scn->mem + offset);