qcacmn: Fix monitor dest srng init in case of splitphy

1. pass appropriate pdev_id as ring_num for srng init
2. Increase max rings for monitor destination rings

CRs-Fixed: 3152722
Change-Id: I36aa2f4e8e5d7fa41ee90a39593cbb8cdf86ec44
This commit is contained in:
Amir Patel
2022-03-17 01:28:43 +05:30
committed by Madan Koyyalamudi
parent 89beaf8bd7
commit 3b816d7013
3 changed files with 8 additions and 7 deletions

View File

@@ -1051,7 +1051,8 @@ int htt_h2t_rx_ring_cfg(struct htt_soc *htt_soc, int pdev_id,
dp_get_target_pdev_id_for_host_pdev_id(soc->dp_soc, pdev_id); dp_get_target_pdev_id_for_host_pdev_id(soc->dp_soc, pdev_id);
if (htt_ring_type == HTT_SW_TO_SW_RING || if (htt_ring_type == HTT_SW_TO_SW_RING ||
htt_ring_type == HTT_SW_TO_HW_RING) htt_ring_type == HTT_SW_TO_HW_RING ||
htt_ring_type == HTT_HW_TO_SW_RING)
HTT_RX_RING_SELECTION_CFG_PDEV_ID_SET(*msg_word, HTT_RX_RING_SELECTION_CFG_PDEV_ID_SET(*msg_word,
target_pdev_id); target_pdev_id);

View File

@@ -892,9 +892,9 @@ void dp_pdev_mon_rings_deinit_2_0(struct dp_pdev *pdev)
pdev->pdev_id); pdev->pdev_id);
dp_srng_deinit(soc, &soc->rxdma_mon_dst_ring[lmac_id], dp_srng_deinit(soc, &soc->rxdma_mon_dst_ring[lmac_id],
RXDMA_MONITOR_DST, 0); RXDMA_MONITOR_DST, pdev->pdev_id);
dp_srng_deinit(soc, &mon_soc_be->tx_mon_dst_ring[lmac_id], dp_srng_deinit(soc, &mon_soc_be->tx_mon_dst_ring[lmac_id],
TX_MONITOR_DST, 0); TX_MONITOR_DST, pdev->pdev_id);
} }
} }
@@ -911,13 +911,13 @@ QDF_STATUS dp_pdev_mon_rings_init_2_0(struct dp_pdev *pdev)
pdev->pdev_id); pdev->pdev_id);
if (dp_srng_init(soc, &soc->rxdma_mon_dst_ring[lmac_id], if (dp_srng_init(soc, &soc->rxdma_mon_dst_ring[lmac_id],
RXDMA_MONITOR_DST, 0, lmac_id)) { RXDMA_MONITOR_DST, pdev->pdev_id, lmac_id)) {
dp_mon_err("%pK: " RNG_ERR "rxdma_mon_dst_ring", soc); dp_mon_err("%pK: " RNG_ERR "rxdma_mon_dst_ring", soc);
goto fail; goto fail;
} }
if (dp_srng_init(soc, &mon_soc_be->tx_mon_dst_ring[lmac_id], if (dp_srng_init(soc, &mon_soc_be->tx_mon_dst_ring[lmac_id],
TX_MONITOR_DST, 0, lmac_id)) { TX_MONITOR_DST, pdev->pdev_id, lmac_id)) {
dp_mon_err("%pK: " RNG_ERR "tx_mon_dst_ring", soc); dp_mon_err("%pK: " RNG_ERR "tx_mon_dst_ring", soc);
goto fail; goto fail;
} }

View File

@@ -2307,7 +2307,7 @@ struct hal_hw_srng_config hw_srng_table_9224[] = {
#ifdef QCA_MONITOR_2_0_SUPPORT #ifdef QCA_MONITOR_2_0_SUPPORT
{ /* RXDMA_MONITOR_DST */ { /* RXDMA_MONITOR_DST */
.start_ring_id = HAL_SRNG_WMAC1_RXMON2SW0, .start_ring_id = HAL_SRNG_WMAC1_RXMON2SW0,
.max_rings = 1, .max_rings = 2,
.entry_size = sizeof(struct mon_destination_ring) >> 2, .entry_size = sizeof(struct mon_destination_ring) >> 2,
.lmac_ring = TRUE, .lmac_ring = TRUE,
.ring_dir = HAL_SRNG_DST_RING, .ring_dir = HAL_SRNG_DST_RING,
@@ -2432,7 +2432,7 @@ struct hal_hw_srng_config hw_srng_table_9224[] = {
}, },
{ /* TX_MONITOR_DST */ { /* TX_MONITOR_DST */
.start_ring_id = HAL_SRNG_WMAC1_TXMON2SW0, .start_ring_id = HAL_SRNG_WMAC1_TXMON2SW0,
.max_rings = 1, .max_rings = 2,
.entry_size = sizeof(struct mon_destination_ring) >> 2, .entry_size = sizeof(struct mon_destination_ring) >> 2,
.lmac_ring = TRUE, .lmac_ring = TRUE,
.ring_dir = HAL_SRNG_DST_RING, .ring_dir = HAL_SRNG_DST_RING,