|
@@ -1596,6 +1596,8 @@ void wlan_cfg_fill_interrupt_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#ifdef IPA_OFFLOAD
|
|
#ifdef IPA_OFFLOAD
|
|
|
|
+
|
|
|
|
+#define WLAN_CFG_IPA_ENABLE_MASK BIT(0)
|
|
#ifdef IPA_WDI3_TX_TWO_PIPES
|
|
#ifdef IPA_WDI3_TX_TWO_PIPES
|
|
/**
|
|
/**
|
|
* wlan_soc_ipa_cfg_attach() - Update ipa tx and tx alt config
|
|
* wlan_soc_ipa_cfg_attach() - Update ipa tx and tx alt config
|
|
@@ -1609,6 +1611,8 @@ static void
|
|
wlan_soc_ipa_cfg_attach(struct cdp_ctrl_objmgr_psoc *psoc,
|
|
wlan_soc_ipa_cfg_attach(struct cdp_ctrl_objmgr_psoc *psoc,
|
|
struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx)
|
|
struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx)
|
|
{
|
|
{
|
|
|
|
+ wlan_cfg_ctx->ipa_enabled = (cfg_get(psoc, CFG_DP_IPA_OFFLOAD_CONFIG) &
|
|
|
|
+ WLAN_CFG_IPA_ENABLE_MASK);
|
|
wlan_cfg_ctx->ipa_tx_ring_size =
|
|
wlan_cfg_ctx->ipa_tx_ring_size =
|
|
cfg_get(psoc, CFG_DP_IPA_TX_RING_SIZE);
|
|
cfg_get(psoc, CFG_DP_IPA_TX_RING_SIZE);
|
|
wlan_cfg_ctx->ipa_tx_comp_ring_size =
|
|
wlan_cfg_ctx->ipa_tx_comp_ring_size =
|
|
@@ -1631,6 +1635,8 @@ static void
|
|
wlan_soc_ipa_cfg_attach(struct cdp_ctrl_objmgr_psoc *psoc,
|
|
wlan_soc_ipa_cfg_attach(struct cdp_ctrl_objmgr_psoc *psoc,
|
|
struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx)
|
|
struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx)
|
|
{
|
|
{
|
|
|
|
+ wlan_cfg_ctx->ipa_enabled = (cfg_get(psoc, CFG_DP_IPA_OFFLOAD_CONFIG) &
|
|
|
|
+ WLAN_CFG_IPA_ENABLE_MASK);
|
|
wlan_cfg_ctx->ipa_tx_ring_size =
|
|
wlan_cfg_ctx->ipa_tx_ring_size =
|
|
cfg_get(psoc, CFG_DP_IPA_TX_RING_SIZE);
|
|
cfg_get(psoc, CFG_DP_IPA_TX_RING_SIZE);
|
|
wlan_cfg_ctx->ipa_tx_comp_ring_size =
|
|
wlan_cfg_ctx->ipa_tx_comp_ring_size =
|
|
@@ -2232,7 +2238,7 @@ int wlan_cfg_num_tcl_data_rings(struct wlan_cfg_dp_soc_ctxt *cfg)
|
|
int wlan_cfg_num_nss_tcl_data_rings(struct wlan_cfg_dp_soc_ctxt *cfg)
|
|
int wlan_cfg_num_nss_tcl_data_rings(struct wlan_cfg_dp_soc_ctxt *cfg)
|
|
{
|
|
{
|
|
if (!cfg->ipa_enabled)
|
|
if (!cfg->ipa_enabled)
|
|
- return cfg->num_tcl_data_rings;
|
|
|
|
|
|
+ return cfg->num_nss_tcl_data_rings;
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|