qcacmn: Print RxBUF ring stats in DMAC mode
When DMAC mode is enabled print Rx BUF rings at SOC level Change-Id: I22bab6676081e3faaf7b8cbe2d23e9b7fa7f2e43
This commit is contained in:

committed by
Madan Koyyalamudi

parent
1dcd308bb3
commit
16219ce7ce
@@ -5208,15 +5208,24 @@ dp_print_ring_stats(struct dp_pdev *pdev)
|
|||||||
dp_print_ring_stat_from_hal(pdev->soc,
|
dp_print_ring_stat_from_hal(pdev->soc,
|
||||||
&pdev->soc->tcl_data_ring[i],
|
&pdev->soc->tcl_data_ring[i],
|
||||||
TCL_DATA);
|
TCL_DATA);
|
||||||
for (i = 0; i < MAX_TCL_DATA_RINGS; i++)
|
for (i = 0; i < pdev->soc->num_tcl_data_rings; i++)
|
||||||
dp_print_ring_stat_from_hal(pdev->soc,
|
dp_print_ring_stat_from_hal(pdev->soc,
|
||||||
&pdev->soc->tx_comp_ring[i],
|
&pdev->soc->tx_comp_ring[i],
|
||||||
WBM2SW_RELEASE);
|
WBM2SW_RELEASE);
|
||||||
|
|
||||||
lmac_id = dp_get_lmac_id_for_pdev_id(pdev->soc, 0, pdev->pdev_id);
|
if (pdev->soc->features.dmac_cmn_src_rxbuf_ring_enabled) {
|
||||||
dp_print_ring_stat_from_hal(pdev->soc,
|
for (i = 0; i < pdev->soc->num_rx_refill_buf_rings; i++) {
|
||||||
&pdev->soc->rx_refill_buf_ring[lmac_id],
|
dp_print_ring_stat_from_hal
|
||||||
|
(pdev->soc, &pdev->soc->rx_refill_buf_ring[i],
|
||||||
RXDMA_BUF);
|
RXDMA_BUF);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
lmac_id = dp_get_lmac_id_for_pdev_id(pdev->soc, 0,
|
||||||
|
pdev->pdev_id);
|
||||||
|
dp_print_ring_stat_from_hal
|
||||||
|
(pdev->soc, &pdev->soc->rx_refill_buf_ring[lmac_id],
|
||||||
|
RXDMA_BUF);
|
||||||
|
}
|
||||||
|
|
||||||
dp_print_ring_stat_from_hal(pdev->soc,
|
dp_print_ring_stat_from_hal(pdev->soc,
|
||||||
&pdev->rx_refill_buf_ring2,
|
&pdev->rx_refill_buf_ring2,
|
||||||
|
@@ -74,10 +74,7 @@
|
|||||||
#define DP_VDEV_ALL 0xff
|
#define DP_VDEV_ALL 0xff
|
||||||
|
|
||||||
#if defined(WLAN_MAX_PDEVS) && (WLAN_MAX_PDEVS == 1)
|
#if defined(WLAN_MAX_PDEVS) && (WLAN_MAX_PDEVS == 1)
|
||||||
#define MAX_PDEV_CNT 1
|
|
||||||
#define WLAN_DP_RESET_MON_BUF_RING_FILTER
|
#define WLAN_DP_RESET_MON_BUF_RING_FILTER
|
||||||
#else
|
|
||||||
#define MAX_PDEV_CNT 3
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Max no. of VDEV per PSOC */
|
/* Max no. of VDEV per PSOC */
|
||||||
|
Reference in New Issue
Block a user