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:
Rakesh Pillai
2021-12-12 09:43:20 -08:00
committed by Madan Koyyalamudi
parent fc5f47db1a
commit 125174cdd1
8 changed files with 39 additions and 9 deletions

View File

@@ -201,16 +201,20 @@ static const uint8_t rx_ring_mask_msi[WLAN_CFG_INT_NUM_CONTEXTS] = {
#ifdef CONFIG_BERYLLIUM
static const uint8_t rxdma2host_ring_mask_msi[WLAN_CFG_INT_NUM_CONTEXTS] = {
[13] = WLAN_CFG_RXDMA2HOST_RING_MASK_0 |
WLAN_CFG_RXDMA2HOST_RING_MASK_1};
[13] = WLAN_CFG_RXDMA2HOST_RING_MASK_0};
#else
static const uint8_t rxdma2host_ring_mask_msi[WLAN_CFG_INT_NUM_CONTEXTS] = {
[5] = WLAN_CFG_RXDMA2HOST_RING_MASK_0,
[6] = WLAN_CFG_RXDMA2HOST_RING_MASK_1};
#endif /* CONFIG_BERYLLIUM */
#ifdef CONFIG_BERYLLIUM
static const uint8_t rx_mon_ring_mask_msi[WLAN_CFG_INT_NUM_CONTEXTS] = {
[5] = WLAN_CFG_RX_MON_RING_MASK_0};
#else
static const uint8_t rx_mon_ring_mask_msi[WLAN_CFG_INT_NUM_CONTEXTS] = {
[1] = WLAN_CFG_RX_MON_RING_MASK_0, [2] = WLAN_CFG_RX_MON_RING_MASK_1};
#endif
static const uint8_t host2rxdma_ring_mask_msi[WLAN_CFG_INT_NUM_CONTEXTS] = {0};
@@ -2141,6 +2145,8 @@ wlan_cfg_soc_attach(struct cdp_ctrl_objmgr_psoc *psoc)
PKT_CAPTURE_MODE_DATA_ONLY;
#endif
wlan_cfg_ctx->num_rxdma_dst_rings_per_pdev = NUM_RXDMA_RINGS_PER_PDEV;
wlan_cfg_ctx->num_rxdma_status_rings_per_pdev =
NUM_RXDMA_RINGS_PER_PDEV;
return wlan_cfg_ctx;
}