From b10ec496b6444f83630c584243802d5138bfa4f4 Mon Sep 17 00:00:00 2001 From: Houston Hoffman Date: Thu, 10 Aug 2017 15:35:25 -0700 Subject: [PATCH] qcacld-3.0: Use qdf_dbg instead of qdf_print for non-error logs Stats printing with excessive loops should not go to the console. Avoids watch-dog bites. Change-Id: I2ff67827d8bb975bc4ddbb4d70c88283e8ea231e CRs-Fixed: 2088027 --- core/dp/htt/htt_fw_stats.c | 464 ++++++++++++++++++------------------- core/dp/htt/htt_tx.c | 34 +-- core/dp/txrx/ol_txrx.c | 18 +- 3 files changed, 255 insertions(+), 261 deletions(-) diff --git a/core/dp/htt/htt_fw_stats.c b/core/dp/htt/htt_fw_stats.c index 9c3728f1ab36..47d22a958e39 100644 --- a/core/dp/htt/htt_fw_stats.c +++ b/core/dp/htt/htt_fw_stats.c @@ -60,10 +60,10 @@ static char *bw_str_arr[] = {"20MHz", "40MHz", "80MHz", "160MHz"}; */ #define tx_rate_stats_print_cmn(_tx_rate_info, _concise) \ do { \ - qdf_print("TX Rate Info:"); \ + qdf_debug("TX Rate Info:"); \ \ /* MCS */ \ - qdf_print("%s: %d, %d, %d, %d, %d, %d, %d, %d, %d, %d",\ + qdf_debug("%s: %d, %d, %d, %d, %d, %d, %d, %d, %d, %d",\ "MCS counts (0..9)", \ _tx_rate_info->mcs[0], \ _tx_rate_info->mcs[1], \ @@ -77,7 +77,7 @@ static char *bw_str_arr[] = {"20MHz", "40MHz", "80MHz", "160MHz"}; _tx_rate_info->mcs[9]); \ \ /* SGI */ \ - qdf_print("%s: %d, %d, %d, %d, %d, %d, %d, %d, %d, %d",\ + qdf_debug("%s: %d, %d, %d, %d, %d, %d, %d, %d, %d, %d",\ "SGI counts (0..9)", \ _tx_rate_info->sgi[0], \ _tx_rate_info->sgi[1], \ @@ -91,18 +91,18 @@ static char *bw_str_arr[] = {"20MHz", "40MHz", "80MHz", "160MHz"}; _tx_rate_info->sgi[9]); \ \ /* NSS */ \ - qdf_print("NSS counts: 1x1 %d, 2x2 %d, 3x3 %d", \ + qdf_debug("NSS counts: 1x1 %d, 2x2 %d, 3x3 %d", \ _tx_rate_info->nss[0], \ _tx_rate_info->nss[1], _tx_rate_info->nss[2]);\ \ /* BW */ \ if (ARRAY_SIZE(_tx_rate_info->bw) == 3) \ - qdf_print("BW counts: %s %d, %s %d, %s %d", \ + qdf_debug("BW counts: %s %d, %s %d, %s %d", \ bw_str_arr[0], _tx_rate_info->bw[0], \ bw_str_arr[1], _tx_rate_info->bw[1], \ bw_str_arr[2], _tx_rate_info->bw[2]); \ else if (ARRAY_SIZE(_tx_rate_info->bw) == 4) \ - qdf_print("BW counts: %s %d, %s %d, %s %d, %s %d", \ + qdf_debug("BW counts: %s %d, %s %d, %s %d, %s %d", \ bw_str_arr[0], _tx_rate_info->bw[0], \ bw_str_arr[1], _tx_rate_info->bw[1], \ bw_str_arr[2], _tx_rate_info->bw[2], \ @@ -110,14 +110,14 @@ static char *bw_str_arr[] = {"20MHz", "40MHz", "80MHz", "160MHz"}; \ \ /* Preamble */ \ - qdf_print("Preamble (O C H V) counts: %d, %d, %d, %d",\ + qdf_debug("Preamble (O C H V) counts: %d, %d, %d, %d",\ _tx_rate_info->pream[0], \ _tx_rate_info->pream[1], \ _tx_rate_info->pream[2], \ _tx_rate_info->pream[3]); \ \ /* STBC rate counts */ \ - qdf_print("%s: %d, %d, %d, %d, %d, %d, %d, %d, %d, %d",\ + qdf_debug("%s: %d, %d, %d, %d, %d, %d, %d, %d, %d, %d",\ "STBC rate counts (0..9)", \ _tx_rate_info->stbc[0], \ _tx_rate_info->stbc[1], \ @@ -131,10 +131,10 @@ static char *bw_str_arr[] = {"20MHz", "40MHz", "80MHz", "160MHz"}; _tx_rate_info->stbc[9]); \ \ /* LDPC and TxBF counts */ \ - qdf_print("LDPC Counts: %d", _tx_rate_info->ldpc);\ - qdf_print("RTS Counts: %d", _tx_rate_info->rts_cnt);\ + qdf_debug("LDPC Counts: %d", _tx_rate_info->ldpc);\ + qdf_debug("RTS Counts: %d", _tx_rate_info->rts_cnt);\ /* RSSI Values for last ack frames */ \ - qdf_print("Ack RSSI: %d", _tx_rate_info->ack_rssi);\ + qdf_debug("Ack RSSI: %d", _tx_rate_info->ack_rssi);\ } while (0) static void htt_t2h_stats_tx_rate_stats_print(wlan_dbg_tx_rate_info_t * @@ -161,10 +161,10 @@ static void htt_t2h_stats_tx_rate_stats_print_v2(wlan_dbg_tx_rate_info_v2_t * */ #define rx_rate_stats_print_cmn(_rx_phy_info, _concise) \ do { \ - qdf_print("RX Rate Info:"); \ + qdf_debug("RX Rate Info:"); \ \ /* MCS */ \ - qdf_print("%s: %d, %d, %d, %d, %d, %d, %d, %d, %d, %d",\ + qdf_debug("%s: %d, %d, %d, %d, %d, %d, %d, %d, %d, %d",\ "MCS counts (0..9)", \ _rx_phy_info->mcs[0], \ _rx_phy_info->mcs[1], \ @@ -178,7 +178,7 @@ static void htt_t2h_stats_tx_rate_stats_print_v2(wlan_dbg_tx_rate_info_v2_t * _rx_phy_info->mcs[9]); \ \ /* SGI */ \ - qdf_print("%s: %d, %d, %d, %d, %d, %d, %d, %d, %d, %d",\ + qdf_debug("%s: %d, %d, %d, %d, %d, %d, %d, %d, %d, %d",\ "SGI counts (0..9)", \ _rx_phy_info->sgi[0], \ _rx_phy_info->sgi[1], \ @@ -202,30 +202,30 @@ static void htt_t2h_stats_tx_rate_stats_print_v2(wlan_dbg_tx_rate_info_v2_t * * if needed in the future. Hence the addition in the host code\ * at this line. */ \ - qdf_print("NSS counts: 1x1 %d, 2x2 %d, 3x3 %d, 4x4 %d",\ + qdf_debug("NSS counts: 1x1 %d, 2x2 %d, 3x3 %d, 4x4 %d",\ _rx_phy_info->nss[0] + _rx_phy_info->nsts,\ _rx_phy_info->nss[1], \ _rx_phy_info->nss[2], \ _rx_phy_info->nss[3]); \ \ /* NSTS */ \ - qdf_print("NSTS count: %d", _rx_phy_info->nsts); \ + qdf_debug("NSTS count: %d", _rx_phy_info->nsts); \ \ /* BW */ \ if (ARRAY_SIZE(_rx_phy_info->bw) == 3) \ - qdf_print("BW counts: %s %d, %s %d, %s %d", \ + qdf_debug("BW counts: %s %d, %s %d, %s %d", \ bw_str_arr[0], _rx_phy_info->bw[0], \ bw_str_arr[1], _rx_phy_info->bw[1], \ bw_str_arr[2], _rx_phy_info->bw[2]); \ else if (ARRAY_SIZE(_rx_phy_info->bw) == 4) \ - qdf_print("BW counts: %s %d, %s %d, %s %d, %s %d", \ + qdf_debug("BW counts: %s %d, %s %d, %s %d, %s %d", \ bw_str_arr[0], _rx_phy_info->bw[0], \ bw_str_arr[1], _rx_phy_info->bw[1], \ bw_str_arr[2], _rx_phy_info->bw[2], \ bw_str_arr[3], _rx_phy_info->bw[3]); \ \ /* Preamble */ \ - qdf_print("Preamble counts: %d, %d, %d, %d, %d, %d",\ + qdf_debug("Preamble counts: %d, %d, %d, %d, %d, %d",\ _rx_phy_info->pream[0], \ _rx_phy_info->pream[1], \ _rx_phy_info->pream[2], \ @@ -234,7 +234,7 @@ static void htt_t2h_stats_tx_rate_stats_print_v2(wlan_dbg_tx_rate_info_v2_t * _rx_phy_info->pream[5]); \ \ /* STBC rate counts */ \ - qdf_print("%s: %d, %d, %d, %d, %d, %d, %d, %d, %d, %d",\ + qdf_debug("%s: %d, %d, %d, %d, %d, %d, %d, %d, %d, %d",\ "STBC rate counts (0..9)", \ _rx_phy_info->stbc[0], \ _rx_phy_info->stbc[1], \ @@ -248,25 +248,25 @@ static void htt_t2h_stats_tx_rate_stats_print_v2(wlan_dbg_tx_rate_info_v2_t * _rx_phy_info->stbc[9]); \ \ /* LDPC and TxBF counts */ \ - qdf_print("LDPC TXBF Counts: %d, %d", \ + qdf_debug("LDPC TXBF Counts: %d, %d", \ _rx_phy_info->ldpc, _rx_phy_info->txbf);\ /* RSSI Values for last received frames */ \ - qdf_print("RSSI (data, mgmt): %d, %d", _rx_phy_info->data_rssi,\ + qdf_debug("RSSI (data, mgmt): %d, %d", _rx_phy_info->data_rssi,\ _rx_phy_info->mgmt_rssi); \ \ - qdf_print("RSSI Chain 0 (0x%02x 0x%02x 0x%02x 0x%02x)",\ + qdf_debug("RSSI Chain 0 (0x%02x 0x%02x 0x%02x 0x%02x)",\ ((_rx_phy_info->rssi_chain0 >> 24) & 0xff),\ ((_rx_phy_info->rssi_chain0 >> 16) & 0xff),\ ((_rx_phy_info->rssi_chain0 >> 8) & 0xff),\ ((_rx_phy_info->rssi_chain0 >> 0) & 0xff));\ \ - qdf_print("RSSI Chain 1 (0x%02x 0x%02x 0x%02x 0x%02x)",\ + qdf_debug("RSSI Chain 1 (0x%02x 0x%02x 0x%02x 0x%02x)",\ ((_rx_phy_info->rssi_chain1 >> 24) & 0xff),\ ((_rx_phy_info->rssi_chain1 >> 16) & 0xff),\ ((_rx_phy_info->rssi_chain1 >> 8) & 0xff),\ ((_rx_phy_info->rssi_chain1 >> 0) & 0xff));\ \ - qdf_print("RSSI Chain 2 (0x%02x 0x%02x 0x%02x 0x%02x)",\ + qdf_debug("RSSI Chain 2 (0x%02x 0x%02x 0x%02x 0x%02x)",\ ((_rx_phy_info->rssi_chain2 >> 24) & 0xff),\ ((_rx_phy_info->rssi_chain2 >> 16) & 0xff),\ ((_rx_phy_info->rssi_chain2 >> 8) & 0xff),\ @@ -292,78 +292,78 @@ htt_t2h_stats_pdev_stats_print(struct wlan_dbg_stats *wlan_pdev_stats, struct wlan_dbg_tx_stats *tx = &wlan_pdev_stats->tx; struct wlan_dbg_rx_stats *rx = &wlan_pdev_stats->rx; - qdf_print("WAL Pdev stats:"); - qdf_print("\n### Tx ###"); + qdf_debug("WAL Pdev stats:"); + qdf_debug("\n### Tx ###"); /* Num HTT cookies queued to dispatch list */ - qdf_print("comp_queued :\t%d", tx->comp_queued); + qdf_debug("comp_queued :\t%d", tx->comp_queued); /* Num HTT cookies dispatched */ - qdf_print("comp_delivered :\t%d", tx->comp_delivered); + qdf_debug("comp_delivered :\t%d", tx->comp_delivered); /* Num MSDU queued to WAL */ - qdf_print("msdu_enqued :\t%d", tx->msdu_enqued); + qdf_debug("msdu_enqued :\t%d", tx->msdu_enqued); /* Num MPDU queued to WAL */ - qdf_print("mpdu_enqued :\t%d", tx->mpdu_enqued); + qdf_debug("mpdu_enqued :\t%d", tx->mpdu_enqued); /* Num MSDUs dropped by WMM limit */ - qdf_print("wmm_drop :\t%d", tx->wmm_drop); + qdf_debug("wmm_drop :\t%d", tx->wmm_drop); /* Num Local frames queued */ - qdf_print("local_enqued :\t%d", tx->local_enqued); + qdf_debug("local_enqued :\t%d", tx->local_enqued); /* Num Local frames done */ - qdf_print("local_freed :\t%d", tx->local_freed); + qdf_debug("local_freed :\t%d", tx->local_freed); /* Num queued to HW */ - qdf_print("hw_queued :\t%d", tx->hw_queued); + qdf_debug("hw_queued :\t%d", tx->hw_queued); /* Num PPDU reaped from HW */ - qdf_print("hw_reaped :\t%d", tx->hw_reaped); + qdf_debug("hw_reaped :\t%d", tx->hw_reaped); /* Num underruns */ - qdf_print("mac underrun :\t%d", tx->underrun); + qdf_debug("mac underrun :\t%d", tx->underrun); /* Num underruns */ - qdf_print("phy underrun :\t%d", tx->phy_underrun); + qdf_debug("phy underrun :\t%d", tx->phy_underrun); /* Num PPDUs cleaned up in TX abort */ - qdf_print("tx_abort :\t%d", tx->tx_abort); + qdf_debug("tx_abort :\t%d", tx->tx_abort); /* Num MPDUs requed by SW */ - qdf_print("mpdus_requed :\t%d", tx->mpdus_requed); + qdf_debug("mpdus_requed :\t%d", tx->mpdus_requed); /* Excessive retries */ - qdf_print("excess retries :\t%d", tx->tx_ko); + qdf_debug("excess retries :\t%d", tx->tx_ko); /* last data rate */ - qdf_print("last rc :\t%d", tx->data_rc); + qdf_debug("last rc :\t%d", tx->data_rc); /* scheduler self triggers */ - qdf_print("sched self trig :\t%d", tx->self_triggers); + qdf_debug("sched self trig :\t%d", tx->self_triggers); /* SW retry failures */ - qdf_print("ampdu retry failed:\t%d", tx->sw_retry_failure); + qdf_debug("ampdu retry failed:\t%d", tx->sw_retry_failure); /* ilegal phy rate errirs */ - qdf_print("illegal rate errs :\t%d", tx->illgl_rate_phy_err); + qdf_debug("illegal rate errs :\t%d", tx->illgl_rate_phy_err); /* pdev continous excessive retries */ - qdf_print("pdev cont xretry :\t%d", tx->pdev_cont_xretry); + qdf_debug("pdev cont xretry :\t%d", tx->pdev_cont_xretry); /* pdev continous excessive retries */ - qdf_print("pdev tx timeout :\t%d", tx->pdev_tx_timeout); + qdf_debug("pdev tx timeout :\t%d", tx->pdev_tx_timeout); /* pdev resets */ - qdf_print("pdev resets :\t%d", tx->pdev_resets); + qdf_debug("pdev resets :\t%d", tx->pdev_resets); /* PPDU > txop duration */ - qdf_print("ppdu txop ovf :\t%d", tx->txop_ovf); + qdf_debug("ppdu txop ovf :\t%d", tx->txop_ovf); - qdf_print("\n### Rx ###\n"); + qdf_debug("\n### Rx ###\n"); /* Cnts any change in ring routing mid-ppdu */ - qdf_print("ppdu_route_change :\t%d", rx->mid_ppdu_route_change); + qdf_debug("ppdu_route_change :\t%d", rx->mid_ppdu_route_change); /* Total number of statuses processed */ - qdf_print("status_rcvd :\t%d", rx->status_rcvd); + qdf_debug("status_rcvd :\t%d", rx->status_rcvd); /* Extra frags on rings 0-3 */ - qdf_print("r0_frags :\t%d", rx->r0_frags); - qdf_print("r1_frags :\t%d", rx->r1_frags); - qdf_print("r2_frags :\t%d", rx->r2_frags); - qdf_print("r3_frags :\t%d", rx->r3_frags); + qdf_debug("r0_frags :\t%d", rx->r0_frags); + qdf_debug("r1_frags :\t%d", rx->r1_frags); + qdf_debug("r2_frags :\t%d", rx->r2_frags); + qdf_debug("r3_frags :\t%d", rx->r3_frags); /* MSDUs / MPDUs delivered to HTT */ - qdf_print("htt_msdus :\t%d", rx->htt_msdus); - qdf_print("htt_mpdus :\t%d", rx->htt_mpdus); + qdf_debug("htt_msdus :\t%d", rx->htt_msdus); + qdf_debug("htt_mpdus :\t%d", rx->htt_mpdus); /* MSDUs / MPDUs delivered to local stack */ - qdf_print("loc_msdus :\t%d", rx->loc_msdus); - qdf_print("loc_mpdus :\t%d", rx->loc_mpdus); + qdf_debug("loc_msdus :\t%d", rx->loc_msdus); + qdf_debug("loc_mpdus :\t%d", rx->loc_mpdus); /* AMSDUs that have more MSDUs than the status ring size */ - qdf_print("oversize_amsdu :\t%d", rx->oversize_amsdu); + qdf_debug("oversize_amsdu :\t%d", rx->oversize_amsdu); /* Number of PHY errors */ - qdf_print("phy_errs :\t%d", rx->phy_errs); + qdf_debug("phy_errs :\t%d", rx->phy_errs); /* Number of PHY errors dropped */ - qdf_print("phy_errs dropped :\t%d", rx->phy_err_drop); + qdf_debug("phy_errs dropped :\t%d", rx->phy_err_drop); /* Number of mpdu errors - FCS, MIC, ENC etc. */ - qdf_print("mpdu_errs :\t%d", rx->mpdu_errs); + qdf_debug("mpdu_errs :\t%d", rx->mpdu_errs); } @@ -371,112 +371,112 @@ static void htt_t2h_stats_rx_reorder_stats_print(struct rx_reorder_stats *stats_ptr, int concise) { - qdf_print("Rx reorder statistics:"); - qdf_print(" %u non-QoS frames received", stats_ptr->deliver_non_qos); - qdf_print(" %u frames received in-order", + qdf_debug("Rx reorder statistics:"); + qdf_debug(" %u non-QoS frames received", stats_ptr->deliver_non_qos); + qdf_debug(" %u frames received in-order", stats_ptr->deliver_in_order); - qdf_print(" %u frames flushed due to timeout", + qdf_debug(" %u frames flushed due to timeout", stats_ptr->deliver_flush_timeout); - qdf_print(" %u frames flushed due to moving out of window", + qdf_debug(" %u frames flushed due to moving out of window", stats_ptr->deliver_flush_oow); - qdf_print(" %u frames flushed due to receiving DELBA", + qdf_debug(" %u frames flushed due to receiving DELBA", stats_ptr->deliver_flush_delba); - qdf_print(" %u frames discarded due to FCS error", + qdf_debug(" %u frames discarded due to FCS error", stats_ptr->fcs_error); - qdf_print(" %u frames discarded due to invalid peer", + qdf_debug(" %u frames discarded due to invalid peer", stats_ptr->invalid_peer); - qdf_print + qdf_debug (" %u frames discarded due to duplication (non aggregation)", stats_ptr->dup_non_aggr); - qdf_print(" %u frames discarded due to duplication in reorder queue", + qdf_debug(" %u frames discarded due to duplication in reorder queue", stats_ptr->dup_in_reorder); - qdf_print(" %u frames discarded due to processed before", + qdf_debug(" %u frames discarded due to processed before", stats_ptr->dup_past); - qdf_print(" %u times reorder timeout happened", + qdf_debug(" %u times reorder timeout happened", stats_ptr->reorder_timeout); - qdf_print(" %u times incorrect bar received", + qdf_debug(" %u times incorrect bar received", stats_ptr->invalid_bar_ssn); - qdf_print(" %u times bar ssn reset happened", + qdf_debug(" %u times bar ssn reset happened", stats_ptr->ssn_reset); - qdf_print(" %u times flushed due to peer delete", + qdf_debug(" %u times flushed due to peer delete", stats_ptr->deliver_flush_delpeer); - qdf_print(" %u times flushed due to offload", + qdf_debug(" %u times flushed due to offload", stats_ptr->deliver_flush_offload); - qdf_print(" %u times flushed due to ouf of buffer", + qdf_debug(" %u times flushed due to ouf of buffer", stats_ptr->deliver_flush_oob); - qdf_print(" %u MPDU's dropped due to PN check fail", + qdf_debug(" %u MPDU's dropped due to PN check fail", stats_ptr->pn_fail); - qdf_print(" %u MPDU's dropped due to lack of memory", + qdf_debug(" %u MPDU's dropped due to lack of memory", stats_ptr->store_fail); - qdf_print(" %u times tid pool alloc succeeded", + qdf_debug(" %u times tid pool alloc succeeded", stats_ptr->tid_pool_alloc_succ); - qdf_print(" %u times MPDU pool alloc succeeded", + qdf_debug(" %u times MPDU pool alloc succeeded", stats_ptr->mpdu_pool_alloc_succ); - qdf_print(" %u times MSDU pool alloc succeeded", + qdf_debug(" %u times MSDU pool alloc succeeded", stats_ptr->msdu_pool_alloc_succ); - qdf_print(" %u times tid pool alloc failed", + qdf_debug(" %u times tid pool alloc failed", stats_ptr->tid_pool_alloc_fail); - qdf_print(" %u times MPDU pool alloc failed", + qdf_debug(" %u times MPDU pool alloc failed", stats_ptr->mpdu_pool_alloc_fail); - qdf_print(" %u times MSDU pool alloc failed", + qdf_debug(" %u times MSDU pool alloc failed", stats_ptr->msdu_pool_alloc_fail); - qdf_print(" %u times tid pool freed", + qdf_debug(" %u times tid pool freed", stats_ptr->tid_pool_free); - qdf_print(" %u times MPDU pool freed", + qdf_debug(" %u times MPDU pool freed", stats_ptr->mpdu_pool_free); - qdf_print(" %u times MSDU pool freed", + qdf_debug(" %u times MSDU pool freed", stats_ptr->msdu_pool_free); - qdf_print(" %u MSDUs undelivered to HTT, queued to Rx MSDU free list", + qdf_debug(" %u MSDUs undelivered to HTT, queued to Rx MSDU free list", stats_ptr->msdu_queued); - qdf_print(" %u MSDUs released from Rx MSDU list to MAC ring", + qdf_debug(" %u MSDUs released from Rx MSDU list to MAC ring", stats_ptr->msdu_recycled); - qdf_print(" %u MPDUs with invalid peer but A2 found in AST", + qdf_debug(" %u MPDUs with invalid peer but A2 found in AST", stats_ptr->invalid_peer_a2_in_ast); - qdf_print(" %u MPDUs with invalid peer but A3 found in AST", + qdf_debug(" %u MPDUs with invalid peer but A3 found in AST", stats_ptr->invalid_peer_a3_in_ast); - qdf_print(" %u MPDUs with invalid peer, Broadcast or Mulitcast frame", + qdf_debug(" %u MPDUs with invalid peer, Broadcast or Mulitcast frame", stats_ptr->invalid_peer_bmc_mpdus); - qdf_print(" %u MSDUs with err attention word", + qdf_debug(" %u MSDUs with err attention word", stats_ptr->rxdesc_err_att); - qdf_print(" %u MSDUs with flag of peer_idx_invalid", + qdf_debug(" %u MSDUs with flag of peer_idx_invalid", stats_ptr->rxdesc_err_peer_idx_inv); - qdf_print(" %u MSDUs with flag of peer_idx_timeout", + qdf_debug(" %u MSDUs with flag of peer_idx_timeout", stats_ptr->rxdesc_err_peer_idx_to); - qdf_print(" %u MSDUs with flag of overflow", + qdf_debug(" %u MSDUs with flag of overflow", stats_ptr->rxdesc_err_ov); - qdf_print(" %u MSDUs with flag of msdu_length_err", + qdf_debug(" %u MSDUs with flag of msdu_length_err", stats_ptr->rxdesc_err_msdu_len); - qdf_print(" %u MSDUs with flag of mpdu_length_err", + qdf_debug(" %u MSDUs with flag of mpdu_length_err", stats_ptr->rxdesc_err_mpdu_len); - qdf_print(" %u MSDUs with flag of tkip_mic_err", + qdf_debug(" %u MSDUs with flag of tkip_mic_err", stats_ptr->rxdesc_err_tkip_mic); - qdf_print(" %u MSDUs with flag of decrypt_err", + qdf_debug(" %u MSDUs with flag of decrypt_err", stats_ptr->rxdesc_err_decrypt); - qdf_print(" %u MSDUs with flag of fcs_err", + qdf_debug(" %u MSDUs with flag of fcs_err", stats_ptr->rxdesc_err_fcs); - qdf_print(" %u Unicast frames with invalid peer handler", + qdf_debug(" %u Unicast frames with invalid peer handler", stats_ptr->rxdesc_uc_msdus_inv_peer); - qdf_print(" %u unicast frame to DUT with invalid peer handler", + qdf_debug(" %u unicast frame to DUT with invalid peer handler", stats_ptr->rxdesc_direct_msdus_inv_peer); - qdf_print(" %u Broadcast/Multicast frames with invalid peer handler", + qdf_debug(" %u Broadcast/Multicast frames with invalid peer handler", stats_ptr->rxdesc_bmc_msdus_inv_peer); - qdf_print(" %u MSDUs dropped due to no first MSDU flag", + qdf_debug(" %u MSDUs dropped due to no first MSDU flag", stats_ptr->rxdesc_no_1st_msdu); - qdf_print(" %u MSDUs dropped due to ring overflow", + qdf_debug(" %u MSDUs dropped due to ring overflow", stats_ptr->msdu_drop_ring_ov); - qdf_print(" %u MSDUs dropped due to FC mismatch", + qdf_debug(" %u MSDUs dropped due to FC mismatch", stats_ptr->msdu_drop_fc_mismatch); - qdf_print(" %u MSDUs dropped due to mgt frame in Remote ring", + qdf_debug(" %u MSDUs dropped due to mgt frame in Remote ring", stats_ptr->msdu_drop_mgmt_remote_ring); - qdf_print(" %u MSDUs dropped due to misc non error", + qdf_debug(" %u MSDUs dropped due to misc non error", stats_ptr->msdu_drop_misc); - qdf_print(" %u MSDUs go to offload before reorder", + qdf_debug(" %u MSDUs go to offload before reorder", stats_ptr->offload_msdu_wal); - qdf_print(" %u data frame dropped by offload after reorder", + qdf_debug(" %u data frame dropped by offload after reorder", stats_ptr->offload_msdu_reorder); - qdf_print(" %u MPDUs with SN in the past & within BA window", + qdf_debug(" %u MPDUs with SN in the past & within BA window", stats_ptr->dup_past_within_window); - qdf_print(" %u MPDUs with SN in the past & outside BA window", + qdf_debug(" %u MPDUs with SN in the past & outside BA window", stats_ptr->dup_past_outside_window); } @@ -484,32 +484,32 @@ static void htt_t2h_stats_rx_rem_buf_stats_print( struct rx_remote_buffer_mgmt_stats *stats_ptr, int concise) { - qdf_print("Rx Remote Buffer Statistics:"); - qdf_print(" %u MSDU's reaped for Rx processing", + qdf_debug("Rx Remote Buffer Statistics:"); + qdf_debug(" %u MSDU's reaped for Rx processing", stats_ptr->remote_reaped); - qdf_print(" %u MSDU's recycled within firmware", + qdf_debug(" %u MSDU's recycled within firmware", stats_ptr->remote_recycled); - qdf_print(" %u MSDU's stored by Data Rx", + qdf_debug(" %u MSDU's stored by Data Rx", stats_ptr->data_rx_msdus_stored); - qdf_print(" %u HTT indications from WAL Rx MSDU", + qdf_debug(" %u HTT indications from WAL Rx MSDU", stats_ptr->wal_rx_ind); - qdf_print(" %u HTT indications unconsumed from WAL Rx MSDU", + qdf_debug(" %u HTT indications unconsumed from WAL Rx MSDU", stats_ptr->wal_rx_ind_unconsumed); - qdf_print(" %u HTT indications from Data Rx MSDU", + qdf_debug(" %u HTT indications from Data Rx MSDU", stats_ptr->data_rx_ind); - qdf_print(" %u HTT indications unconsumed from Data Rx MSDU", + qdf_debug(" %u HTT indications unconsumed from Data Rx MSDU", stats_ptr->data_rx_ind_unconsumed); - qdf_print(" %u HTT indications from ATHBUF", + qdf_debug(" %u HTT indications from ATHBUF", stats_ptr->athbuf_rx_ind); - qdf_print(" %u Remote buffers requested for refill", + qdf_debug(" %u Remote buffers requested for refill", stats_ptr->refill_buf_req); - qdf_print(" %u Remote buffers filled by host", + qdf_debug(" %u Remote buffers filled by host", stats_ptr->refill_buf_rsp); - qdf_print(" %u times MAC has no buffers", + qdf_debug(" %u times MAC has no buffers", stats_ptr->mac_no_bufs); - qdf_print(" %u times f/w write & read indices on MAC ring are equal", + qdf_debug(" %u times f/w write & read indices on MAC ring are equal", stats_ptr->fw_indices_equal); - qdf_print(" %u times f/w has no remote buffers to post to MAC", + qdf_debug(" %u times f/w has no remote buffers to post to MAC", stats_ptr->host_no_bufs); } @@ -517,8 +517,8 @@ static void htt_t2h_stats_txbf_info_buf_stats_print( struct wlan_dbg_txbf_data_stats *stats_ptr) { - qdf_print("TXBF data Statistics:"); - qdf_print("tx_txbf_vht (0..9): %u, %u, %u, %u, %u, %u, %u, %u, %u, %d", + qdf_debug("TXBF data Statistics:"); + qdf_debug("tx_txbf_vht (0..9): %u, %u, %u, %u, %u, %u, %u, %u, %u, %d", stats_ptr->tx_txbf_vht[0], stats_ptr->tx_txbf_vht[1], stats_ptr->tx_txbf_vht[2], @@ -529,7 +529,7 @@ htt_t2h_stats_txbf_info_buf_stats_print( stats_ptr->tx_txbf_vht[7], stats_ptr->tx_txbf_vht[8], stats_ptr->tx_txbf_vht[9]); - qdf_print("rx_txbf_vht (0..9): %u, %u, %u, %u, %u, %u, %u, %u, %u, %u", + qdf_debug("rx_txbf_vht (0..9): %u, %u, %u, %u, %u, %u, %u, %u, %u, %u", stats_ptr->rx_txbf_vht[0], stats_ptr->rx_txbf_vht[1], stats_ptr->rx_txbf_vht[2], @@ -540,7 +540,7 @@ htt_t2h_stats_txbf_info_buf_stats_print( stats_ptr->rx_txbf_vht[7], stats_ptr->rx_txbf_vht[8], stats_ptr->rx_txbf_vht[9]); - qdf_print("tx_txbf_ht (0..7): %u, %u, %u, %u, %u, %u, %u, %u", + qdf_debug("tx_txbf_ht (0..7): %u, %u, %u, %u, %u, %u, %u, %u", stats_ptr->tx_txbf_ht[0], stats_ptr->tx_txbf_ht[1], stats_ptr->tx_txbf_ht[2], @@ -549,7 +549,7 @@ htt_t2h_stats_txbf_info_buf_stats_print( stats_ptr->tx_txbf_ht[5], stats_ptr->tx_txbf_ht[6], stats_ptr->tx_txbf_ht[7]); - qdf_print("tx_txbf_ofdm (0..7): %u, %u, %u, %u, %u, %u, %u, %u", + qdf_debug("tx_txbf_ofdm (0..7): %u, %u, %u, %u, %u, %u, %u, %u", stats_ptr->tx_txbf_ofdm[0], stats_ptr->tx_txbf_ofdm[1], stats_ptr->tx_txbf_ofdm[2], @@ -558,7 +558,7 @@ htt_t2h_stats_txbf_info_buf_stats_print( stats_ptr->tx_txbf_ofdm[5], stats_ptr->tx_txbf_ofdm[6], stats_ptr->tx_txbf_ofdm[7]); - qdf_print("tx_txbf_cck (0..6): %u, %u, %u, %u, %u, %u, %u", + qdf_debug("tx_txbf_cck (0..6): %u, %u, %u, %u, %u, %u, %u", stats_ptr->tx_txbf_cck[0], stats_ptr->tx_txbf_cck[1], stats_ptr->tx_txbf_cck[2], @@ -572,23 +572,23 @@ static void htt_t2h_stats_txbf_snd_buf_stats_print( struct wlan_dbg_txbf_snd_stats *stats_ptr) { - qdf_print("TXBF snd Buffer Statistics:"); - qdf_print("cbf_20: %u, %u, %u, %u", + qdf_debug("TXBF snd Buffer Statistics:"); + qdf_debug("cbf_20: %u, %u, %u, %u", stats_ptr->cbf_20[0], stats_ptr->cbf_20[1], stats_ptr->cbf_20[2], stats_ptr->cbf_20[3]); - qdf_print("cbf_40: %u, %u, %u, %u", + qdf_debug("cbf_40: %u, %u, %u, %u", stats_ptr->cbf_40[0], stats_ptr->cbf_40[1], stats_ptr->cbf_40[2], stats_ptr->cbf_40[3]); - qdf_print("cbf_80: %u, %u, %u, %u", + qdf_debug("cbf_80: %u, %u, %u, %u", stats_ptr->cbf_80[0], stats_ptr->cbf_80[1], stats_ptr->cbf_80[2], stats_ptr->cbf_80[3]); - qdf_print("sounding: %u, %u, %u, %u, %u, %u, %u, %u, %u", + qdf_debug("sounding: %u, %u, %u, %u, %u, %u, %u, %u, %u", stats_ptr->sounding[0], stats_ptr->sounding[1], stats_ptr->sounding[2], @@ -604,34 +604,34 @@ static void htt_t2h_stats_tx_selfgen_buf_stats_print( struct wlan_dbg_tx_selfgen_stats *stats_ptr) { - qdf_print("Tx selfgen Buffer Statistics:"); - qdf_print(" %u su_ndpa", + qdf_debug("Tx selfgen Buffer Statistics:"); + qdf_debug(" %u su_ndpa", stats_ptr->su_ndpa); - qdf_print(" %u mu_ndp", + qdf_debug(" %u mu_ndp", stats_ptr->mu_ndp); - qdf_print(" %u mu_ndpa", + qdf_debug(" %u mu_ndpa", stats_ptr->mu_ndpa); - qdf_print(" %u mu_ndp", + qdf_debug(" %u mu_ndp", stats_ptr->mu_ndp); - qdf_print(" %u mu_brpoll_1", + qdf_debug(" %u mu_brpoll_1", stats_ptr->mu_brpoll_1); - qdf_print(" %u mu_brpoll_2", + qdf_debug(" %u mu_brpoll_2", stats_ptr->mu_brpoll_2); - qdf_print(" %u mu_bar_1", + qdf_debug(" %u mu_bar_1", stats_ptr->mu_bar_1); - qdf_print(" %u mu_bar_2", + qdf_debug(" %u mu_bar_2", stats_ptr->mu_bar_2); - qdf_print(" %u cts_burst", + qdf_debug(" %u cts_burst", stats_ptr->cts_burst); - qdf_print(" %u su_ndp_err", + qdf_debug(" %u su_ndp_err", stats_ptr->su_ndp_err); - qdf_print(" %u su_ndpa_err", + qdf_debug(" %u su_ndpa_err", stats_ptr->su_ndpa_err); - qdf_print(" %u mu_ndp_err", + qdf_debug(" %u mu_ndp_err", stats_ptr->mu_ndp_err); - qdf_print(" %u mu_brp1_err", + qdf_debug(" %u mu_brp1_err", stats_ptr->mu_brp1_err); - qdf_print(" %u mu_brp2_err", + qdf_debug(" %u mu_brp2_err", stats_ptr->mu_brp2_err); } @@ -641,39 +641,39 @@ htt_t2h_stats_wifi2_error_stats_print( { int i; - qdf_print("Scheduler error Statistics:"); - qdf_print("urrn_stats: "); - qdf_print("urrn_stats: %d, %d, %d", + qdf_debug("Scheduler error Statistics:"); + qdf_debug("urrn_stats: "); + qdf_debug("urrn_stats: %d, %d, %d", stats_ptr->urrn_stats[0], stats_ptr->urrn_stats[1], stats_ptr->urrn_stats[2]); - qdf_print("flush_errs (0..%d): ", + qdf_debug("flush_errs (0..%d): ", WHAL_DBG_FLUSH_REASON_MAXCNT); for (i = 0; i < WHAL_DBG_FLUSH_REASON_MAXCNT; i++) - qdf_print(" %u", stats_ptr->flush_errs[i]); - qdf_print("\n"); - qdf_print("schd_stall_errs (0..3): "); - qdf_print("%d, %d, %d, %d", + qdf_debug(" %u", stats_ptr->flush_errs[i]); + qdf_debug("\n"); + qdf_debug("schd_stall_errs (0..3): "); + qdf_debug("%d, %d, %d, %d", stats_ptr->schd_stall_errs[0], stats_ptr->schd_stall_errs[1], stats_ptr->schd_stall_errs[2], stats_ptr->schd_stall_errs[3]); - qdf_print("schd_cmd_result (0..%d): ", + qdf_debug("schd_cmd_result (0..%d): ", WHAL_DBG_CMD_RESULT_MAXCNT); for (i = 0; i < WHAL_DBG_CMD_RESULT_MAXCNT; i++) - qdf_print(" %u", stats_ptr->schd_cmd_result[i]); - qdf_print("\n"); - qdf_print("sifs_status (0..%d): ", + qdf_debug(" %u", stats_ptr->schd_cmd_result[i]); + qdf_debug("\n"); + qdf_debug("sifs_status (0..%d): ", WHAL_DBG_SIFS_STATUS_MAXCNT); for (i = 0; i < WHAL_DBG_SIFS_STATUS_MAXCNT; i++) - qdf_print(" %u", stats_ptr->sifs_status[i]); - qdf_print("\n"); - qdf_print("phy_errs (0..%d): ", + qdf_debug(" %u", stats_ptr->sifs_status[i]); + qdf_debug("\n"); + qdf_debug("phy_errs (0..%d): ", WHAL_DBG_PHY_ERR_MAXCNT); for (i = 0; i < WHAL_DBG_PHY_ERR_MAXCNT; i++) - qdf_print(" %u", stats_ptr->phy_errs[i]); - qdf_print("\n"); - qdf_print(" %u rx_rate_inval", + qdf_debug(" %u", stats_ptr->phy_errs[i]); + qdf_debug("\n"); + qdf_debug(" %u rx_rate_inval", stats_ptr->rx_rate_inval); } @@ -681,16 +681,16 @@ static void htt_t2h_rx_musu_ndpa_pkts_stats_print( struct rx_txbf_musu_ndpa_pkts_stats *stats_ptr) { - qdf_print("Rx TXBF MU/SU Packets and NDPA Statistics:"); - qdf_print(" %u Number of TXBF MU packets received", + qdf_debug("Rx TXBF MU/SU Packets and NDPA Statistics:"); + qdf_debug(" %u Number of TXBF MU packets received", stats_ptr->number_mu_pkts); - qdf_print(" %u Number of TXBF SU packets received", + qdf_debug(" %u Number of TXBF SU packets received", stats_ptr->number_su_pkts); - qdf_print(" %u Number of TXBF directed NDPA", + qdf_debug(" %u Number of TXBF directed NDPA", stats_ptr->txbf_directed_ndpa_count); - qdf_print(" %u Number of TXBF retried NDPA", + qdf_debug(" %u Number of TXBF retried NDPA", stats_ptr->txbf_ndpa_retry_count); - qdf_print(" %u Total number of TXBF NDPA", + qdf_debug(" %u Total number of TXBF NDPA", stats_ptr->txbf_total_ndpa_count); } @@ -731,8 +731,8 @@ htt_t2h_tx_ppdu_bitmaps_pr(uint32_t *queued_ptr, uint32_t *acked_ptr) } queued_str[HTT_FW_STATS_MAX_BLOCK_ACK_WINDOW] = '\0'; acked_str[HTT_FW_STATS_MAX_BLOCK_ACK_WINDOW] = '\0'; - qdf_print("%s\n", queued_str); - qdf_print("%s\n", acked_str); + qdf_debug("%s\n", queued_str); + qdf_debug("%s\n", acked_str); } static inline uint16_t htt_msg_read16(uint16_t *p16) @@ -849,7 +849,7 @@ htt_t2h_tx_ppdu_log_print(struct ol_fw_tx_dbg_ppdu_msg_hdr *hdr, hdr->mpdu_msdus_array_len * sizeof(uint8_t) + hdr->msdu_bytes_array_len * sizeof(uint16_t); num_records = (length - sizeof(*hdr)) / record_size; - qdf_print("Tx PPDU log elements: num_records %d", num_records); + qdf_debug("Tx PPDU log elements: num_records %d", num_records); for (i = 0; i < num_records; i++) { uint16_t start_seq_num; @@ -924,34 +924,29 @@ htt_t2h_tx_ppdu_log_print(struct ol_fw_tx_dbg_ppdu_msg_hdr *hdr, OL_FW_TX_DBG_PPDU_TRIES_M) >> OL_FW_TX_DBG_PPDU_TRIES_S; - qdf_print(" - PPDU tx to peer %d, TID %d", peer_id, + qdf_debug(" - PPDU tx to peer %d, TID %d", peer_id, ext_tid); - qdf_print - (" start seq num= %u, start PN LSBs= %#04x", + qdf_debug(" start seq num= %u, start PN LSBs= %#04x", start_seq_num, start_pn_lsbs); - qdf_print - (" PPDU: %d MPDUs, (?) MSDUs, %d bytes", + qdf_debug(" PPDU: %d MPDUs, (?) MSDUs, %d bytes", num_mpdus, /* num_msdus - not yet computed in target */ record->num_bytes); if (complete) { - qdf_print - (" enqueued: %u, completed: %u usec)", + qdf_debug(" enqueued: %u, completed: %u usec)", time_enqueue_us, time_completion_us); - qdf_print - (" %d tries, last tx used rate %d ", + qdf_debug(" %d tries, last tx used rate %d ", tries, rate_code); - qdf_print("on %d MHz chan (flags = %#x)", + qdf_debug("on %d MHz chan (flags = %#x)", htt_rate_flags_to_mhz (rate_flags), rate_flags); - qdf_print(" enqueued and acked MPDU bitmaps:"); + qdf_debug(" enqueued and acked MPDU bitmaps:"); htt_t2h_tx_ppdu_bitmaps_pr(msg_word + OL_FW_TX_DBG_PPDU_ENQUEUED_LSBS_WORD, msg_word + OL_FW_TX_DBG_PPDU_BLOCK_ACK_LSBS_WORD); } else { - qdf_print( - " enqueued: %d us, not yet completed", + qdf_debug(" enqueued: %d us, not yet completed", time_enqueue_us); } /* skip the regular msg fields to reach the tail area */ @@ -962,14 +957,14 @@ htt_t2h_tx_ppdu_log_print(struct ol_fw_tx_dbg_ppdu_msg_hdr *hdr, BUF_SIZE, hdr-> mpdu_bytes_array_len); - qdf_print(" MPDU bytes: %s", buf); + qdf_debug(" MPDU bytes: %s", buf); } p8 += hdr->mpdu_bytes_array_len * sizeof(uint16_t); if (hdr->mpdu_msdus_array_len) { htt_make_u8_list_str((uint32_t *) p8, buf, BUF_SIZE, hdr->mpdu_msdus_array_len); - qdf_print(" MPDU MSDUs: %s", buf); + qdf_debug(" MPDU MSDUs: %s", buf); } p8 += hdr->mpdu_msdus_array_len * sizeof(uint8_t); if (hdr->msdu_bytes_array_len) { @@ -977,19 +972,19 @@ htt_t2h_tx_ppdu_log_print(struct ol_fw_tx_dbg_ppdu_msg_hdr *hdr, BUF_SIZE, hdr-> msdu_bytes_array_len); - qdf_print(" MSDU bytes: %s", buf); + qdf_debug(" MSDU bytes: %s", buf); } } else { /* concise */ - qdf_print("start seq num = %u ", start_seq_num); - qdf_print("enqueued and acked MPDU bitmaps:"); + qdf_debug("start seq num = %u ", start_seq_num); + qdf_debug("enqueued and acked MPDU bitmaps:"); if (complete) { htt_t2h_tx_ppdu_bitmaps_pr(msg_word + OL_FW_TX_DBG_PPDU_ENQUEUED_LSBS_WORD, msg_word + OL_FW_TX_DBG_PPDU_BLOCK_ACK_LSBS_WORD); } else { - qdf_print("(not completed)"); + qdf_debug("(not completed)"); } } record = (struct ol_fw_tx_dbg_ppdu_base *) @@ -1000,10 +995,10 @@ htt_t2h_tx_ppdu_log_print(struct ol_fw_tx_dbg_ppdu_msg_hdr *hdr, static void htt_t2h_stats_tidq_stats_print( struct wlan_dbg_tidq_stats *tidq_stats, int concise) { - qdf_print("TID QUEUE STATS:"); - qdf_print("tid_txq_stats: %u", tidq_stats->wlan_dbg_tid_txq_status); - qdf_print("num_pkts_queued(0..9):"); - qdf_print("%u, %u, %u, %u, %u, %u, %u, %u, %u, %u", + qdf_debug("TID QUEUE STATS:"); + qdf_debug("tid_txq_stats: %u", tidq_stats->wlan_dbg_tid_txq_status); + qdf_debug("num_pkts_queued(0..9):"); + qdf_debug("%u, %u, %u, %u, %u, %u, %u, %u, %u, %u", tidq_stats->txq_st.num_pkts_queued[0], tidq_stats->txq_st.num_pkts_queued[1], tidq_stats->txq_st.num_pkts_queued[2], @@ -1014,8 +1009,8 @@ static void htt_t2h_stats_tidq_stats_print( tidq_stats->txq_st.num_pkts_queued[7], tidq_stats->txq_st.num_pkts_queued[8], tidq_stats->txq_st.num_pkts_queued[9]); - qdf_print("tid_hw_qdepth(0..19):"); - qdf_print("%u, %u, %u, %u, %u, %u, %u, %u, %u, %u", + qdf_debug("tid_hw_qdepth(0..19):"); + qdf_debug("%u, %u, %u, %u, %u, %u, %u, %u, %u, %u", tidq_stats->txq_st.tid_hw_qdepth[0], tidq_stats->txq_st.tid_hw_qdepth[1], tidq_stats->txq_st.tid_hw_qdepth[2], @@ -1026,7 +1021,7 @@ static void htt_t2h_stats_tidq_stats_print( tidq_stats->txq_st.tid_hw_qdepth[7], tidq_stats->txq_st.tid_hw_qdepth[8], tidq_stats->txq_st.tid_hw_qdepth[9]); - qdf_print("%u, %u, %u, %u, %u, %u, %u, %u, %u, %u", + qdf_debug("%u, %u, %u, %u, %u, %u, %u, %u, %u, %u", tidq_stats->txq_st.tid_hw_qdepth[10], tidq_stats->txq_st.tid_hw_qdepth[11], tidq_stats->txq_st.tid_hw_qdepth[12], @@ -1037,8 +1032,8 @@ static void htt_t2h_stats_tidq_stats_print( tidq_stats->txq_st.tid_hw_qdepth[17], tidq_stats->txq_st.tid_hw_qdepth[18], tidq_stats->txq_st.tid_hw_qdepth[19]); - qdf_print("tid_sw_qdepth(0..19):"); - qdf_print("%u, %u, %u, %u, %u, %u, %u, %u, %u, %u", + qdf_debug("tid_sw_qdepth(0..19):"); + qdf_debug("%u, %u, %u, %u, %u, %u, %u, %u, %u, %u", tidq_stats->txq_st.tid_sw_qdepth[0], tidq_stats->txq_st.tid_sw_qdepth[1], tidq_stats->txq_st.tid_sw_qdepth[2], @@ -1049,7 +1044,7 @@ static void htt_t2h_stats_tidq_stats_print( tidq_stats->txq_st.tid_sw_qdepth[7], tidq_stats->txq_st.tid_sw_qdepth[8], tidq_stats->txq_st.tid_sw_qdepth[9]); - qdf_print("%u, %u, %u, %u, %u, %u, %u, %u, %u, %u", + qdf_debug("%u, %u, %u, %u, %u, %u, %u, %u, %u, %u", tidq_stats->txq_st.tid_sw_qdepth[10], tidq_stats->txq_st.tid_sw_qdepth[11], tidq_stats->txq_st.tid_sw_qdepth[12], @@ -1065,40 +1060,40 @@ static void htt_t2h_stats_tidq_stats_print( static void htt_t2h_stats_tx_mu_stats_print( struct wlan_dbg_tx_mu_stats *tx_mu_stats, int concise) { - qdf_print("TX MU STATS:"); - qdf_print("mu_sch_nusers_2: %u", tx_mu_stats->mu_sch_nusers_2); - qdf_print("mu_sch_nusers_3: %u", tx_mu_stats->mu_sch_nusers_3); - qdf_print("mu_mpdus_queued_usr: %u, %u, %u, %u", + qdf_debug("TX MU STATS:"); + qdf_debug("mu_sch_nusers_2: %u", tx_mu_stats->mu_sch_nusers_2); + qdf_debug("mu_sch_nusers_3: %u", tx_mu_stats->mu_sch_nusers_3); + qdf_debug("mu_mpdus_queued_usr: %u, %u, %u, %u", tx_mu_stats->mu_mpdus_queued_usr[0], tx_mu_stats->mu_mpdus_queued_usr[1], tx_mu_stats->mu_mpdus_queued_usr[2], tx_mu_stats->mu_mpdus_queued_usr[3]); - qdf_print("mu_mpdus_tried_usr: %u, %u, %u, %u", + qdf_debug("mu_mpdus_tried_usr: %u, %u, %u, %u", tx_mu_stats->mu_mpdus_tried_usr[0], tx_mu_stats->mu_mpdus_tried_usr[1], tx_mu_stats->mu_mpdus_tried_usr[2], tx_mu_stats->mu_mpdus_tried_usr[3]); - qdf_print("mu_mpdus_failed_usr: %u, %u, %u, %u", + qdf_debug("mu_mpdus_failed_usr: %u, %u, %u, %u", tx_mu_stats->mu_mpdus_failed_usr[0], tx_mu_stats->mu_mpdus_failed_usr[1], tx_mu_stats->mu_mpdus_failed_usr[2], tx_mu_stats->mu_mpdus_failed_usr[3]); - qdf_print("mu_mpdus_requeued_usr: %u, %u, %u, %u", + qdf_debug("mu_mpdus_requeued_usr: %u, %u, %u, %u", tx_mu_stats->mu_mpdus_requeued_usr[0], tx_mu_stats->mu_mpdus_requeued_usr[1], tx_mu_stats->mu_mpdus_requeued_usr[2], tx_mu_stats->mu_mpdus_requeued_usr[3]); - qdf_print("mu_err_no_ba_usr: %u, %u, %u, %u", + qdf_debug("mu_err_no_ba_usr: %u, %u, %u, %u", tx_mu_stats->mu_err_no_ba_usr[0], tx_mu_stats->mu_err_no_ba_usr[1], tx_mu_stats->mu_err_no_ba_usr[2], tx_mu_stats->mu_err_no_ba_usr[3]); - qdf_print("mu_mpdu_underrun_usr: %u, %u, %u, %u", + qdf_debug("mu_mpdu_underrun_usr: %u, %u, %u, %u", tx_mu_stats->mu_mpdu_underrun_usr[0], tx_mu_stats->mu_mpdu_underrun_usr[1], tx_mu_stats->mu_mpdu_underrun_usr[2], tx_mu_stats->mu_mpdu_underrun_usr[3]); - qdf_print("mu_ampdu_underrun_usr: %u, %u, %u, %u", + qdf_debug("mu_ampdu_underrun_usr: %u, %u, %u, %u", tx_mu_stats->mu_ampdu_underrun_usr[0], tx_mu_stats->mu_ampdu_underrun_usr[1], tx_mu_stats->mu_ampdu_underrun_usr[2], @@ -1109,20 +1104,20 @@ static void htt_t2h_stats_tx_mu_stats_print( static void htt_t2h_stats_sifs_resp_stats_print( struct wlan_dbg_sifs_resp_stats *sifs_stats, int concise) { - qdf_print("SIFS RESP STATS:"); - qdf_print("num of ps-poll trigger frames: %u", + qdf_debug("SIFS RESP STATS:"); + qdf_debug("num of ps-poll trigger frames: %u", sifs_stats->ps_poll_trigger); - qdf_print("num of uapsd trigger frames: %u", + qdf_debug("num of uapsd trigger frames: %u", sifs_stats->uapsd_trigger); - qdf_print("num of data trigger frames: %u, %u", + qdf_debug("num of data trigger frames: %u, %u", sifs_stats->qb_data_trigger[0], sifs_stats->qb_data_trigger[1]); - qdf_print("num of bar trigger frames: %u, %u", + qdf_debug("num of bar trigger frames: %u, %u", sifs_stats->qb_bar_trigger[0], sifs_stats->qb_bar_trigger[1]); - qdf_print("num of ppdu transmitted at SIFS interval: %u", + qdf_debug("num of ppdu transmitted at SIFS interval: %u", sifs_stats->sifs_resp_data); - qdf_print("num of ppdu failed to meet SIFS resp timing: %u", + qdf_debug("num of ppdu failed to meet SIFS resp timing: %u", sifs_stats->sifs_resp_err); } @@ -1141,10 +1136,10 @@ void htt_t2h_stats_print(uint8_t *stats_data, int concise) if (status == HTT_DBG_STATS_STATUS_SERIES_DONE) { return; } else if (status == HTT_DBG_STATS_STATUS_INVALID) { - qdf_print("Target doesn't support stats type %d", type); + qdf_debug("Target doesn't support stats type %d", type); return; } else if (status == HTT_DBG_STATS_STATUS_ERROR) { - qdf_print("Target couldn't upload stats type %d (no mem?)", + qdf_debug("Target couldn't upload stats type %d (no mem?)", type); return; } @@ -1194,8 +1189,7 @@ void htt_t2h_stats_print(uint8_t *stats_data, int concise) if (status == HTT_DBG_STATS_STATUS_PARTIAL && length == 0) { - qdf_print - ("HTT_DBG_STATS_TX_PPDU_LOG -- length = 0!"); + qdf_debug("HTT_DBG_STATS_TX_PPDU_LOG -- length = 0!"); break; } hdr = (struct ol_fw_tx_dbg_ppdu_msg_hdr *)(msg_word + 1); diff --git a/core/dp/htt/htt_tx.c b/core/dp/htt/htt_tx.c index 267def77e447..47af19d95f50 100644 --- a/core/dp/htt/htt_tx.c +++ b/core/dp/htt/htt_tx.c @@ -1023,28 +1023,28 @@ void htt_tx_desc_display(void *tx_desc) htt_tx_desc = (struct htt_tx_msdu_desc_t *)tx_desc; /* only works for little-endian */ - qdf_print("HTT tx desc (@ %pK):", htt_tx_desc); - qdf_print(" msg type = %d", htt_tx_desc->msg_type); - qdf_print(" pkt subtype = %d", htt_tx_desc->pkt_subtype); - qdf_print(" pkt type = %d", htt_tx_desc->pkt_type); - qdf_print(" vdev ID = %d", htt_tx_desc->vdev_id); - qdf_print(" ext TID = %d", htt_tx_desc->ext_tid); - qdf_print(" postponed = %d", htt_tx_desc->postponed); - qdf_print(" extension = %d", htt_tx_desc->extension); - qdf_print(" cksum_offload = %d", htt_tx_desc->cksum_offload); - qdf_print(" tx_compl_req= %d", htt_tx_desc->tx_compl_req); - qdf_print(" length = %d", htt_tx_desc->len); - qdf_print(" id = %d", htt_tx_desc->id); + qdf_debug("HTT tx desc (@ %pK):", htt_tx_desc); + qdf_debug(" msg type = %d", htt_tx_desc->msg_type); + qdf_debug(" pkt subtype = %d", htt_tx_desc->pkt_subtype); + qdf_debug(" pkt type = %d", htt_tx_desc->pkt_type); + qdf_debug(" vdev ID = %d", htt_tx_desc->vdev_id); + qdf_debug(" ext TID = %d", htt_tx_desc->ext_tid); + qdf_debug(" postponed = %d", htt_tx_desc->postponed); + qdf_debug(" extension = %d", htt_tx_desc->extension); + qdf_debug(" cksum_offload = %d", htt_tx_desc->cksum_offload); + qdf_debug(" tx_compl_req= %d", htt_tx_desc->tx_compl_req); + qdf_debug(" length = %d", htt_tx_desc->len); + qdf_debug(" id = %d", htt_tx_desc->id); #if HTT_PADDR64 - qdf_print(" frag desc addr.lo = %#x", + qdf_debug(" frag desc addr.lo = %#x", htt_tx_desc->frags_desc_ptr.lo); - qdf_print(" frag desc addr.hi = %#x", + qdf_debug(" frag desc addr.hi = %#x", htt_tx_desc->frags_desc_ptr.hi); #else /* ! HTT_PADDR64 */ - qdf_print(" frag desc addr = %#x", htt_tx_desc->frags_desc_ptr); + qdf_debug(" frag desc addr = %#x", htt_tx_desc->frags_desc_ptr); #endif /* HTT_PADDR64 */ - qdf_print(" peerid = %d", htt_tx_desc->peerid); - qdf_print(" chanfreq = %d", htt_tx_desc->chanfreq); + qdf_debug(" peerid = %d", htt_tx_desc->peerid); + qdf_debug(" chanfreq = %d", htt_tx_desc->chanfreq); } #endif diff --git a/core/dp/txrx/ol_txrx.c b/core/dp/txrx/ol_txrx.c index c889853c881f..6f8880cd75b7 100644 --- a/core/dp/txrx/ol_txrx.c +++ b/core/dp/txrx/ol_txrx.c @@ -1057,14 +1057,14 @@ static void ol_txrx_stats_display_tso(ol_txrx_pdev_handle pdev) int msdu_idx; int seg_idx; - QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR, + QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_DEBUG, "TSO Statistics:"); - QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR, + QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_DEBUG, "TSO pkts %lld, bytes %lld\n", pdev->stats.pub.tx.tso.tso_pkts.pkts, pdev->stats.pub.tx.tso.tso_pkts.bytes); - QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR, + QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_DEBUG, "TSO Histogram for numbers of segments:\n" "Single segment %d\n" " 2-5 segments %d\n" @@ -1079,7 +1079,7 @@ static void ol_txrx_stats_display_tso(ol_txrx_pdev_handle pdev) pdev->stats.pub.tx.tso.tso_hist.pkts_16_20, pdev->stats.pub.tx.tso.tso_hist.pkts_20_plus); - QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR, + QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_DEBUG, "TSO History Buffer: Total size %d, current_index %d", NUM_MAX_TSO_MSDUS, TXRX_STATS_TSO_MSDU_IDX(pdev)); @@ -1087,7 +1087,7 @@ static void ol_txrx_stats_display_tso(ol_txrx_pdev_handle pdev) for (msdu_idx = 0; msdu_idx < NUM_MAX_TSO_MSDUS; msdu_idx++) { if (TXRX_STATS_TSO_MSDU_TOTAL_LEN(pdev, msdu_idx) == 0) continue; - QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR, + QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_DEBUG, "jumbo pkt idx: %d num segs %d gso_len %d total_len %d nr_frags %d", msdu_idx, TXRX_STATS_TSO_MSDU_NUM_SEG(pdev, msdu_idx), @@ -1102,19 +1102,19 @@ static void ol_txrx_stats_display_tso(ol_txrx_pdev_handle pdev) struct qdf_tso_seg_t tso_seg = TXRX_STATS_TSO_SEG(pdev, msdu_idx, seg_idx); - QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR, + QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_DEBUG, "seg idx: %d", seg_idx); - QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR, + QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_DEBUG, "tso_enable: %d", tso_seg.tso_flags.tso_enable); - QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR, + QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_DEBUG, "fin %d syn %d rst %d psh %d ack %d urg %d ece %d cwr %d ns %d", tso_seg.tso_flags.fin, tso_seg.tso_flags.syn, tso_seg.tso_flags.rst, tso_seg.tso_flags.psh, tso_seg.tso_flags.ack, tso_seg.tso_flags.urg, tso_seg.tso_flags.ece, tso_seg.tso_flags.cwr, tso_seg.tso_flags.ns); - QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR, + QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_DEBUG, "tcp_seq_num: 0x%x ip_id: %d", tso_seg.tso_flags.tcp_seq_num, tso_seg.tso_flags.ip_id);