From 4eea6d6ea6543aa2c32a7c64468cbb271eecb2bc Mon Sep 17 00:00:00 2001 From: Srinivas Girigowda Date: Tue, 21 Feb 2023 10:03:21 -0800 Subject: [PATCH] qcacmn: Interrupt masking for TxMon and RxMon Interrupt masking for TxMon and RxMon. Change-Id: I2bb8a9b029ef81c043066904f775adff043b7268 CRs-Fixed: 3415822 --- wlan_cfg/wlan_cfg.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/wlan_cfg/wlan_cfg.c b/wlan_cfg/wlan_cfg.c index a2e5f366fa..89cde319bd 100644 --- a/wlan_cfg/wlan_cfg.c +++ b/wlan_cfg/wlan_cfg.c @@ -226,8 +226,13 @@ static const uint8_t rxdma2host_ring_mask_msi[WLAN_CFG_INT_NUM_CONTEXTS] = { #endif /* CONFIG_BERYLLIUM */ #ifdef CONFIG_BERYLLIUM +#ifdef WLAN_FEATURE_LOCAL_PKT_CAPTURE +static const uint8_t rx_mon_ring_mask_msi[WLAN_CFG_INT_NUM_CONTEXTS] = { + [14] = WLAN_CFG_RX_MON_RING_MASK_0 | WLAN_CFG_RX_MON_RING_MASK_1}; +#else static const uint8_t rx_mon_ring_mask_msi[WLAN_CFG_INT_NUM_CONTEXTS] = { [5] = WLAN_CFG_RX_MON_RING_MASK_0}; +#endif #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}; @@ -282,6 +287,17 @@ static const uint8_t tx_ring_near_full_irq_mask_msi[WLAN_CFG_INT_NUM_CONTEXTS] = 0 }; #endif +#ifdef CONFIG_BERYLLIUM +#ifdef WLAN_FEATURE_LOCAL_PKT_CAPTURE +static const uint8_t tx_mon_ring_mask_msi[WLAN_CFG_INT_NUM_CONTEXTS] = { + [13] = WLAN_CFG_TX_MON_RING_MASK_0 | WLAN_CFG_TX_MON_RING_MASK_1}; +#else +static const uint8_t tx_mon_ring_mask_msi[WLAN_CFG_INT_NUM_CONTEXTS] = {0}; +#endif /* WLAN_FEATURE_LOCAL_PKT_CAPTURE */ +#else +static const uint8_t tx_mon_ring_mask_msi[WLAN_CFG_INT_NUM_CONTEXTS] = {0}; +#endif + #else /* Integrated configuration + 16 possible MSI configurations */ #define NUM_INTERRUPT_COMBINATIONS 17 @@ -3357,7 +3373,7 @@ void wlan_cfg_fill_interrupt_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx, wlan_cfg_ctx->int_rx_mon_ring_mask[i] = rx_mon_ring_mask_msi[i]; - wlan_cfg_ctx->int_tx_mon_ring_mask[i] = 0; + wlan_cfg_ctx->int_tx_mon_ring_mask[i] = tx_mon_ring_mask_msi[i]; wlan_cfg_ctx->int_rx_err_ring_mask[i] = rx_err_ring_mask_msi[i]; wlan_cfg_ctx->int_rx_wbm_rel_ring_mask[i] =