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
Este commit está contenido en:
Rakesh Pillai
2021-12-12 09:43:20 -08:00
cometido por Madan Koyyalamudi
padre fc5f47db1a
commit 125174cdd1
Se han modificado 8 ficheros con 39 adiciones y 9 borrados

Ver fichero

@@ -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;
}

Ver fichero

@@ -250,6 +250,7 @@ struct wlan_srng_cfg {
* @vdev_stats_hw_offload_config: HW vdev stats config
* @vdev_stats_hw_offload_timer: HW vdev stats timer duration
* @txmon_hw_support: TxMON HW support
* @num_rxdma_status_rings_per_pdev: Num RXDMA status rings
*/
struct wlan_cfg_dp_soc_ctxt {
int num_int_ctxts;
@@ -410,6 +411,7 @@ struct wlan_cfg_dp_soc_ctxt {
#endif
uint8_t num_rxdma_dst_rings_per_pdev;
bool txmon_hw_support;
uint8_t num_rxdma_status_rings_per_pdev;
};
/**