qcacmn: Add ini support to modify IPA tx and tx_comp ring sizes
Currently IPA tx buffers are fixed at 1007 buffers. Adding INI support to change number of TX buffers at load time. Change-Id: Ide0357554f34759198276b9699e0e6f4a3e20051 CRs-Fixed: 2957916
Цей коміт міститься в:

зафіксовано
Madan Koyyalamudi

джерело
79f2d89f69
коміт
b5a3efab59
@@ -887,6 +887,32 @@ void wlan_cfg_fill_interrupt_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef IPA_OFFLOAD
|
||||
/**
|
||||
* wlan_soc_ipa_cfg_attach() - Update ipa config in dp soc
|
||||
* cfg context
|
||||
* @psoc - Object manager psoc
|
||||
* @wlan_cfg_ctx - dp soc cfg ctx
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
static void
|
||||
wlan_soc_ipa_cfg_attach(struct cdp_ctrl_objmgr_psoc *psoc,
|
||||
struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx)
|
||||
{
|
||||
wlan_cfg_ctx->ipa_tx_ring_size =
|
||||
cfg_get(psoc, CFG_DP_IPA_TX_RING_SIZE);
|
||||
wlan_cfg_ctx->ipa_tx_comp_ring_size =
|
||||
cfg_get(psoc, CFG_DP_IPA_TX_COMP_RING_SIZE);
|
||||
}
|
||||
#else
|
||||
static inline void
|
||||
wlan_soc_ipa_cfg_attach(struct cdp_ctrl_objmgr_psoc *psoc,
|
||||
struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* wlan_cfg_soc_attach() - Allocate and prepare SoC configuration
|
||||
* @psoc - Object manager psoc
|
||||
@@ -1063,6 +1089,8 @@ wlan_cfg_soc_attach(struct cdp_ctrl_objmgr_psoc *psoc)
|
||||
cfg_get(psoc, CFG_DP_WOW_CHECK_RX_PENDING);
|
||||
wlan_cfg_ctx->delay_mon_replenish = cfg_get(psoc,
|
||||
CFG_DP_DELAY_MON_REPLENISH);
|
||||
wlan_soc_ipa_cfg_attach(psoc, wlan_cfg_ctx);
|
||||
|
||||
return wlan_cfg_ctx;
|
||||
}
|
||||
|
||||
@@ -1971,3 +1999,15 @@ void wlan_cfg_dp_soc_ctx_dump(struct wlan_cfg_dp_soc_ctxt *cfg)
|
||||
dp_info("reo_dst_ring_size = %d, delayed_replenish_entries = %d",
|
||||
cfg->reo_dst_ring_size, cfg->delayed_replenish_entries);
|
||||
}
|
||||
|
||||
#ifdef IPA_OFFLOAD
|
||||
uint32_t wlan_cfg_ipa_tx_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
|
||||
{
|
||||
return cfg->ipa_tx_ring_size;
|
||||
}
|
||||
|
||||
uint32_t wlan_cfg_ipa_tx_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
|
||||
{
|
||||
return cfg->ipa_tx_comp_ring_size;
|
||||
}
|
||||
#endif
|
||||
|
Посилання в новій задачі
Заблокувати користувача