qcacmn: cdp support enable/disable dp debug logging

Added cdp support to get/set
dp debug logging in per packet path.
Enable debug logs only if dp debug logging
is enabled.
With this change there is benefit of all CPU
average around 1% to 1.5%

Change-Id: Ibe0ca4c75211cace4c5fca9ec0bce1c594ca8a6b
CRs-Fixed: 3623910
This commit is contained in:
Sushant Butta
2023-09-25 11:29:34 +05:30
committed by Rahul Choudhary
parent d6ee46a496
commit 41e5a457c0
4 changed files with 49 additions and 34 deletions

View File

@@ -417,10 +417,11 @@ dp_tx_desc_release(struct dp_soc *soc, struct dp_tx_desc_s *tx_desc,
soc->hal_soc);
else
comp_status = HAL_TX_COMP_RELEASE_REASON_FW;
dp_tx_debug("Tx Completion Release desc %d status %d outstanding %d",
tx_desc->id, comp_status,
qdf_atomic_read(&pdev->num_tx_outstanding));
if (soc->dp_debug_log_en) {
dp_tx_debug("Tx Completion Release desc %d status %d outstanding %d",
tx_desc->id, comp_status,
qdf_atomic_read(&pdev->num_tx_outstanding));
}
if (tx_desc->flags & DP_TX_DESC_FLAG_SPECIAL)
dp_tx_spcl_desc_free(soc, tx_desc, desc_pool_id);
@@ -6025,36 +6026,38 @@ void dp_tx_comp_process_tx_status(struct dp_soc *soc,
length = dp_tx_get_pkt_len(tx_desc);
dp_status = dp_tx_hw_to_qdf(ts->status);
dp_tx_comp_debug("-------------------- \n"
"Tx Completion Stats: \n"
"-------------------- \n"
"ack_frame_rssi = %d \n"
"first_msdu = %d \n"
"last_msdu = %d \n"
"msdu_part_of_amsdu = %d \n"
"rate_stats valid = %d \n"
"bw = %d \n"
"pkt_type = %d \n"
"stbc = %d \n"
"ldpc = %d \n"
"sgi = %d \n"
"mcs = %d \n"
"ofdma = %d \n"
"tones_in_ru = %d \n"
"tsf = %d \n"
"ppdu_id = %d \n"
"transmit_cnt = %d \n"
"tid = %d \n"
"peer_id = %d\n"
"tx_status = %d\n"
"tx_release_source = %d\n",
ts->ack_frame_rssi, ts->first_msdu,
ts->last_msdu, ts->msdu_part_of_amsdu,
ts->valid, ts->bw, ts->pkt_type, ts->stbc,
ts->ldpc, ts->sgi, ts->mcs, ts->ofdma,
ts->tones_in_ru, ts->tsf, ts->ppdu_id,
ts->transmit_cnt, ts->tid, ts->peer_id,
ts->status, ts->release_src);
if (soc->dp_debug_log_en) {
dp_tx_comp_debug("--------------------\n"
"Tx Completion Stats:\n"
"--------------------\n"
"ack_frame_rssi = %d\n"
"first_msdu = %d\n"
"last_msdu = %d\n"
"msdu_part_of_amsdu = %d\n"
"rate_stats valid = %d\n"
"bw = %d\n"
"pkt_type = %d\n"
"stbc = %d\n"
"ldpc = %d\n"
"sgi = %d\n"
"mcs = %d\n"
"ofdma = %d\n"
"tones_in_ru = %d\n"
"tsf = %d\n"
"ppdu_id = %d\n"
"transmit_cnt = %d\n"
"tid = %d\n"
"peer_id = %d\n"
"tx_status = %d\n"
"tx_release_source = %d\n",
ts->ack_frame_rssi, ts->first_msdu,
ts->last_msdu, ts->msdu_part_of_amsdu,
ts->valid, ts->bw, ts->pkt_type, ts->stbc,
ts->ldpc, ts->sgi, ts->mcs, ts->ofdma,
ts->tones_in_ru, ts->tsf, ts->ppdu_id,
ts->transmit_cnt, ts->tid, ts->peer_id,
ts->status, ts->release_src);
}
/* Update SoC level stats */
DP_STATS_INCC(soc, tx.dropped_fw_removed, 1,