|
@@ -3742,14 +3742,16 @@ static bool dp_ipa_is_alt_tx_comp_ring(int index)
|
|
|
*
|
|
|
* @tx_ring_num: Tx ring number
|
|
|
* @tx_ipa_ring_sz: Return param only updated for IPA.
|
|
|
+ * @soc_cfg_ctx: dp soc cfg context
|
|
|
*
|
|
|
* Return: None
|
|
|
*/
|
|
|
-static void dp_ipa_get_tx_ring_size(int tx_ring_num, int *tx_ipa_ring_sz)
|
|
|
+static void dp_ipa_get_tx_ring_size(int tx_ring_num, int *tx_ipa_ring_sz,
|
|
|
+ struct wlan_cfg_dp_soc_ctxt *soc_cfg_ctx)
|
|
|
{
|
|
|
if (tx_ring_num == IPA_TCL_DATA_RING_IDX ||
|
|
|
dp_ipa_is_alt_tx_ring(tx_ring_num))
|
|
|
- *tx_ipa_ring_sz = WLAN_CFG_IPA_TX_RING_SIZE;
|
|
|
+ *tx_ipa_ring_sz = wlan_cfg_ipa_tx_ring_size(soc_cfg_ctx);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -3757,15 +3759,18 @@ static void dp_ipa_get_tx_ring_size(int tx_ring_num, int *tx_ipa_ring_sz)
|
|
|
*
|
|
|
* @tx_comp_ring_num: Tx comp ring number
|
|
|
* @tx_comp_ipa_ring_sz: Return param only updated for IPA.
|
|
|
+ * @soc_cfg_ctx: dp soc cfg context
|
|
|
*
|
|
|
* Return: None
|
|
|
*/
|
|
|
static void dp_ipa_get_tx_comp_ring_size(int tx_comp_ring_num,
|
|
|
- int *tx_comp_ipa_ring_sz)
|
|
|
+ int *tx_comp_ipa_ring_sz,
|
|
|
+ struct wlan_cfg_dp_soc_ctxt *soc_cfg_ctx)
|
|
|
{
|
|
|
if (tx_comp_ring_num == IPA_TCL_DATA_RING_IDX ||
|
|
|
dp_ipa_is_alt_tx_comp_ring(tx_comp_ring_num))
|
|
|
- *tx_comp_ipa_ring_sz = WLAN_CFG_IPA_TX_COMP_RING_SIZE;
|
|
|
+ *tx_comp_ipa_ring_sz =
|
|
|
+ wlan_cfg_ipa_tx_comp_ring_size(soc_cfg_ctx);
|
|
|
}
|
|
|
#else
|
|
|
static uint8_t dp_reo_ring_selection(uint32_t value, uint32_t *ring)
|
|
@@ -3899,12 +3904,14 @@ static bool dp_reo_remap_config(struct dp_soc *soc,
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
-static void dp_ipa_get_tx_ring_size(int ring_num, int *tx_ipa_ring_sz)
|
|
|
+static void dp_ipa_get_tx_ring_size(int ring_num, int *tx_ipa_ring_sz,
|
|
|
+ struct wlan_cfg_dp_soc_ctxt *soc_cfg_ctx)
|
|
|
{
|
|
|
}
|
|
|
|
|
|
static void dp_ipa_get_tx_comp_ring_size(int tx_comp_ring_num,
|
|
|
- int *tx_comp_ipa_ring_sz)
|
|
|
+ int *tx_comp_ipa_ring_sz,
|
|
|
+ struct wlan_cfg_dp_soc_ctxt *soc_cfg_ctx)
|
|
|
{
|
|
|
}
|
|
|
#endif /* IPA_OFFLOAD */
|
|
@@ -4051,7 +4058,7 @@ static QDF_STATUS dp_alloc_tx_ring_pair_by_index(struct dp_soc *soc,
|
|
|
int cached = 0;
|
|
|
|
|
|
tx_ring_size = wlan_cfg_tx_ring_size(soc_cfg_ctx);
|
|
|
- dp_ipa_get_tx_ring_size(index, &tx_ring_size);
|
|
|
+ dp_ipa_get_tx_ring_size(index, &tx_ring_size, soc_cfg_ctx);
|
|
|
|
|
|
if (dp_srng_alloc(soc, &soc->tcl_data_ring[index], TCL_DATA,
|
|
|
tx_ring_size, cached)) {
|
|
@@ -4060,7 +4067,7 @@ static QDF_STATUS dp_alloc_tx_ring_pair_by_index(struct dp_soc *soc,
|
|
|
}
|
|
|
|
|
|
tx_comp_ring_size = wlan_cfg_tx_comp_ring_size(soc_cfg_ctx);
|
|
|
- dp_ipa_get_tx_comp_ring_size(index, &tx_comp_ring_size);
|
|
|
+ dp_ipa_get_tx_comp_ring_size(index, &tx_comp_ring_size, soc_cfg_ctx);
|
|
|
/* Enable cached TCL desc if NSS offload is disabled */
|
|
|
if (!wlan_cfg_get_dp_soc_nss_cfg(soc_cfg_ctx))
|
|
|
cached = WLAN_CFG_DST_RING_CACHED_DESC;
|