qcacmn: Capture tx status error as well in CFR stats

Capture tx status errors & cookie lookup failure under CFR stats

Change-Id: I546b70424f5fe5fafde36da3cdf587cb7ab29856
Bu işleme şunda yer alıyor:
Shwetha G K
2020-05-18 13:26:55 +05:30
işlemeyi yapan: nshrivas
ebeveyn e4155588aa
işleme 2846a3c308
4 değiştirilmiş dosya ile 27 ekleme ve 0 silme

Dosyayı Görüntüle

@@ -451,6 +451,12 @@ struct cfr_rcc_param {
* total_tx_evt_cnt: No. of Tx completion events since wifi was up
* dbr_evt_cnt: No. of WMI DBR completion events
* release_cnt: No. of CFR data buffers relayed to userspace
* tx_peer_status_cfr_fail: No. of tx events without tx status set to
* PEER_CFR_CAPTURE_EVT_STATUS_MASK indicating CFR capture failure on a peer.
* tx_evt_status_cfr_fail: No. of tx events without tx status set to
* CFR_TX_EVT_STATUS_MASK indicating CFR capture status failure.
* tx_dbr_cookie_lookup_fail: No. of dbr cookie lookup failures during tx event
* process.
* rcc_param: Structure to store CFR config for the current commit session
* global: Structure to store accumulated CFR config
* rx_tlv_evt_cnt: Number of CFR WDI events from datapath
@@ -494,6 +500,9 @@ struct pdev_cfr {
uint64_t total_tx_evt_cnt;
uint64_t dbr_evt_cnt;
uint64_t release_cnt;
uint64_t tx_peer_status_cfr_fail;
uint64_t tx_evt_status_cfr_fail;
uint64_t tx_dbr_cookie_lookup_fail;
#ifdef WLAN_ENH_CFR_ENABLE
struct cfr_rcc_param rcc_param;
struct ta_ra_cfr_cfg global[MAX_TA_RA_ENTRIES];

Dosyayı Görüntüle

@@ -882,6 +882,12 @@ QDF_STATUS ucfg_cfr_rcc_dump_dbg_counters(struct wlan_objmgr_vdev *vdev)
pcfr->invalid_dma_length_cnt);
cfr_err("flush_timeout_dbr_cnt = %llu\n",
pcfr->flush_timeout_dbr_cnt);
cfr_err("tx_peer_status_cfr_fail = %llu\n",
pcfr->tx_peer_status_cfr_fail);
cfr_err("tx_evt_status_cfr_fail = %llu\n",
pcfr->tx_evt_status_cfr_fail);
cfr_err("tx_dbr_cookie_lookup_fail = %llu\n",
pcfr->tx_dbr_cookie_lookup_fail);
cfr_err("PPDU id mismatch for same cookie:\n");
cfr_err("clear_txrx_event = %llu\n",
pcfr->clear_txrx_event);
@@ -954,6 +960,9 @@ QDF_STATUS ucfg_cfr_rcc_clr_dbg_counters(struct wlan_objmgr_vdev *vdev)
pcfr->invalid_dma_length_cnt = 0;
pcfr->clear_txrx_event = 0;
pcfr->cfr_dma_aborts = 0;
pcfr->tx_peer_status_cfr_fail = 0;
pcfr->tx_evt_status_cfr_fail = 0;
pcfr->tx_dbr_cookie_lookup_fail = 0;
wlan_objmgr_pdev_release_ref(pdev, WLAN_CFR_ID);
return status;