Browse Source

qcacmn: change debug print and add ring stuck count

change debug print and add counter for monitor destination
ring stuck

Change-Id: I79b4d3b957303334717fd04bfddf754e303e69db
Kai Chen 5 years ago
parent
commit
4b4e8b48cf
3 changed files with 7 additions and 3 deletions
  1. 1 0
      dp/inc/cdp_txrx_mon_struct.h
  2. 4 3
      dp/wifi3.0/dp_rx_mon_dest.c
  3. 2 0
      dp/wifi3.0/dp_stats.c

+ 1 - 0
dp/inc/cdp_txrx_mon_struct.h

@@ -235,5 +235,6 @@ struct cdp_pdev_mon_stats {
 	uint32_t stat_ring_ppdu_id_hist[MAX_PPDU_ID_HIST];
 	uint32_t dest_ring_ppdu_id_hist[MAX_PPDU_ID_HIST];
 	uint32_t ppdu_id_hist_idx;
+	uint32_t mon_rx_dest_stuck;
 };
 #endif

+ 4 - 3
dp/wifi3.0/dp_rx_mon_dest.c

@@ -1138,9 +1138,10 @@ void dp_rx_mon_dest_process(struct dp_soc *soc, uint32_t mac_id, uint32_t quota)
 
 		if (pdev->mon_dest_ring_stuck_cnt >
 		    MON_DEST_RING_STUCK_MAX_CNT) {
-			dp_alert("destination ring stuck");
-			dp_alert("ppdu_id status=%d dest=%d",
-				 pdev->ppdu_info.com_info.ppdu_id, ppdu_id);
+			dp_err("destination ring stuck");
+			dp_err("ppdu_id status=%d dest=%d",
+			       pdev->ppdu_info.com_info.ppdu_id, ppdu_id);
+			rx_mon_stats->mon_rx_dest_stuck++;
 			pdev->ppdu_info.com_info.ppdu_id = ppdu_id;
 			continue;
 		}

+ 2 - 0
dp/wifi3.0/dp_stats.c

@@ -5537,6 +5537,8 @@ dp_print_pdev_rx_mon_stats(struct dp_pdev *pdev)
 	}
 	qdf_mem_free(stat_ring_ppdu_ids);
 	qdf_mem_free(dest_ring_ppdu_ids);
+	DP_PRINT_STATS("mon_rx_dest_stuck = %d",
+		       rx_mon_stats->mon_rx_dest_stuck);
 }
 
 void