Переглянути джерело

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
Rajeev Kumar 7 роки тому
батько
коміт
19735e75ce
2 змінених файлів з 8 додано та 7 видалено
  1. 4 3
      hif/src/ce/ce_service.c
  2. 4 4
      hif/src/snoc/hif_io32_snoc.h

+ 4 - 3
hif/src/ce/ce_service.c

@@ -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;
 	}
 

+ 4 - 4
hif/src/snoc/hif_io32_snoc.h

@@ -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);