qcacmn: print backpressure stats in work queue context

Avoid backpressure event prints in irq context and
defer work queue context

Change-Id: Ib68237d6a9930ead38f53aa89ec1d9e9a2f4147d
This commit is contained in:
Chaithanya Garrepalli
2020-07-23 17:17:24 +05:30
committed by Madan Koyyalamudi
parent 46a4d7c734
commit 970948916a
4 changed files with 431 additions and 8 deletions

View File

@@ -4825,6 +4825,7 @@ static void dp_pdev_deinit(struct cdp_pdev *txrx_pdev, int force)
dp_rx_pdev_buffers_free(pdev);
dp_rx_pdev_mon_desc_pool_deinit(pdev);
dp_rx_pdev_desc_pool_deinit(pdev);
dp_pdev_bkp_stats_detach(pdev);
dp_htt_ppdu_stats_detach(pdev);
dp_tx_ppdu_stats_detach(pdev);
qdf_event_destroy(&pdev->fw_peer_stats_event);
@@ -14614,6 +14615,12 @@ static QDF_STATUS dp_pdev_init(struct cdp_soc_t *txrx_soc,
goto fail9;
}
if (dp_pdev_bkp_stats_attach(pdev) != QDF_STATUS_SUCCESS) {
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR,
FL("dp_pdev_bkp_stats_attach failed"));
goto fail10;
}
/* initialize sw rx descriptors */
dp_rx_pdev_desc_pool_init(pdev);
/* initialize sw monitor rx descriptors */
@@ -14632,6 +14639,8 @@ static QDF_STATUS dp_pdev_init(struct cdp_soc_t *txrx_soc,
qdf_skb_total_mem_stats_read());
return QDF_STATUS_SUCCESS;
fail10:
dp_rx_fst_detach(soc, pdev);
fail9:
dp_ipa_uc_detach(soc, pdev);
fail8: