qcacmn: Initialize only one RXDMA Monitor Status ring
For WCN7850, the first mac (i.e.. MAC0) is capable of 2G/5G and 6G data transfer. Hence initialize and use only on RXDMA monitor status ring. Change-Id: Idb6e23a887a9ed32a52dd54765e5ed3c6a12df06 CRs-Fixed: 3094138
This commit is contained in:

committed by
Madan Koyyalamudi

parent
fc5f47db1a
commit
125174cdd1
@@ -161,7 +161,9 @@ void dp_mon_rings_deinit_1_0(struct dp_pdev *pdev)
|
||||
|
||||
pdev_cfg_ctx = pdev->wlan_cfg_ctx;
|
||||
|
||||
for (mac_id = 0; mac_id < NUM_RXDMA_RINGS_PER_PDEV; mac_id++) {
|
||||
for (mac_id = 0;
|
||||
mac_id < soc->wlan_cfg_ctx->num_rxdma_status_rings_per_pdev;
|
||||
mac_id++) {
|
||||
int lmac_id = dp_get_lmac_id_for_pdev_id(soc, mac_id,
|
||||
pdev->pdev_id);
|
||||
|
||||
@@ -181,7 +183,9 @@ void dp_mon_rings_free_1_0(struct dp_pdev *pdev)
|
||||
|
||||
pdev_cfg_ctx = pdev->wlan_cfg_ctx;
|
||||
|
||||
for (mac_id = 0; mac_id < NUM_RXDMA_RINGS_PER_PDEV; mac_id++) {
|
||||
for (mac_id = 0;
|
||||
mac_id < soc->wlan_cfg_ctx->num_rxdma_status_rings_per_pdev;
|
||||
mac_id++) {
|
||||
int lmac_id = dp_get_lmac_id_for_pdev_id(soc, mac_id,
|
||||
pdev->pdev_id);
|
||||
|
||||
@@ -200,7 +204,9 @@ QDF_STATUS dp_mon_rings_init_1_0(struct dp_pdev *pdev)
|
||||
|
||||
pdev_cfg_ctx = pdev->wlan_cfg_ctx;
|
||||
|
||||
for (mac_id = 0; mac_id < NUM_RXDMA_RINGS_PER_PDEV; mac_id++) {
|
||||
for (mac_id = 0;
|
||||
mac_id < soc->wlan_cfg_ctx->num_rxdma_status_rings_per_pdev;
|
||||
mac_id++) {
|
||||
int lmac_id = dp_get_lmac_id_for_pdev_id(soc, mac_id,
|
||||
pdev->pdev_id);
|
||||
|
||||
@@ -231,7 +237,9 @@ QDF_STATUS dp_mon_rings_alloc_1_0(struct dp_pdev *pdev)
|
||||
|
||||
pdev_cfg_ctx = pdev->wlan_cfg_ctx;
|
||||
|
||||
for (mac_id = 0; mac_id < NUM_RXDMA_RINGS_PER_PDEV; mac_id++) {
|
||||
for (mac_id = 0;
|
||||
mac_id < soc->wlan_cfg_ctx->num_rxdma_status_rings_per_pdev;
|
||||
mac_id++) {
|
||||
int lmac_id =
|
||||
dp_get_lmac_id_for_pdev_id(soc, mac_id, pdev->pdev_id);
|
||||
entries = wlan_cfg_get_dma_mon_stat_ring_size(pdev_cfg_ctx);
|
||||
@@ -636,6 +644,9 @@ QDF_STATUS dp_mon_htt_srng_setup_1_0(struct dp_soc *soc,
|
||||
if (status != QDF_STATUS_SUCCESS)
|
||||
return status;
|
||||
|
||||
if (!soc->rxdma_mon_status_ring[mac_id].hal_srng)
|
||||
return QDF_STATUS_SUCCESS;
|
||||
|
||||
status = htt_srng_setup(soc->htt_handle, mac_for_pdev,
|
||||
soc->rxdma_mon_status_ring[mac_id]
|
||||
.hal_srng,
|
||||
|
@@ -1403,7 +1403,9 @@ static void dp_cfr_filter(struct cdp_soc_t *soc_hdl,
|
||||
htt_tlv_filter.mo_data_filter = filter_val->mo_data;
|
||||
}
|
||||
|
||||
for (mac_id = 0; mac_id < max_mac_rings; mac_id++) {
|
||||
for (mac_id = 0;
|
||||
mac_id < soc->wlan_cfg_ctx->num_rxdma_status_rings_per_pdev;
|
||||
mac_id++) {
|
||||
int mac_for_pdev =
|
||||
dp_get_mac_id_for_pdev(mac_id,
|
||||
pdev->pdev_id);
|
||||
|
@@ -92,6 +92,9 @@ dp_mon_ht2_rx_ring_cfg(struct dp_soc *soc,
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
if (!hal_ring_hdl)
|
||||
continue;
|
||||
|
||||
status = htt_h2t_rx_ring_cfg(soc->htt_handle, mac_for_pdev,
|
||||
hal_ring_hdl, hal_ring_type,
|
||||
ring_buf_size,
|
||||
|
Reference in New Issue
Block a user