|
@@ -5811,7 +5811,6 @@ static QDF_STATUS dp_rxdma_ring_config(struct dp_soc *soc)
|
|
|
|
|
|
if (pdev) {
|
|
if (pdev) {
|
|
int mac_id;
|
|
int mac_id;
|
|
- bool dbs_enable = 0;
|
|
|
|
int max_mac_rings =
|
|
int max_mac_rings =
|
|
wlan_cfg_get_num_mac_rings
|
|
wlan_cfg_get_num_mac_rings
|
|
(pdev->wlan_cfg_ctx);
|
|
(pdev->wlan_cfg_ctx);
|
|
@@ -5828,29 +5827,10 @@ static QDF_STATUS dp_rxdma_ring_config(struct dp_soc *soc)
|
|
.hal_srng,
|
|
.hal_srng,
|
|
RXDMA_BUF);
|
|
RXDMA_BUF);
|
|
|
|
|
|
- if (soc->cdp_soc.ol_ops->
|
|
|
|
- is_hw_dbs_2x2_capable) {
|
|
|
|
- dbs_enable = soc->cdp_soc.ol_ops->
|
|
|
|
- is_hw_dbs_2x2_capable(
|
|
|
|
- (void *)soc->ctrl_psoc);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (dbs_enable) {
|
|
|
|
- QDF_TRACE(QDF_MODULE_ID_TXRX,
|
|
|
|
- QDF_TRACE_LEVEL_ERROR,
|
|
|
|
- FL("DBS enabled max_mac_rings %d"),
|
|
|
|
- max_mac_rings);
|
|
|
|
- } else {
|
|
|
|
- max_mac_rings = 1;
|
|
|
|
- QDF_TRACE(QDF_MODULE_ID_TXRX,
|
|
|
|
- QDF_TRACE_LEVEL_ERROR,
|
|
|
|
- FL("DBS disabled, max_mac_rings %d"),
|
|
|
|
- max_mac_rings);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR,
|
|
|
|
- FL("pdev_id %d max_mac_rings %d"),
|
|
|
|
- pdev->pdev_id, max_mac_rings);
|
|
|
|
|
|
+ /* get max_mac_rings based on DBS */
|
|
|
|
+ dp_is_hw_dbs_enable(soc, &max_mac_rings);
|
|
|
|
+ dp_err("pdev_id %d max_mac_rings %d",
|
|
|
|
+ pdev->pdev_id, max_mac_rings);
|
|
|
|
|
|
for (mac_id = 0; mac_id < max_mac_rings; mac_id++) {
|
|
for (mac_id = 0; mac_id < max_mac_rings; mac_id++) {
|
|
int mac_for_pdev =
|
|
int mac_for_pdev =
|
|
@@ -13572,11 +13552,14 @@ void dp_is_hw_dbs_enable(struct dp_soc *soc,
|
|
int *max_mac_rings)
|
|
int *max_mac_rings)
|
|
{
|
|
{
|
|
bool dbs_enable = false;
|
|
bool dbs_enable = false;
|
|
- if (soc->cdp_soc.ol_ops->is_hw_dbs_2x2_capable)
|
|
|
|
|
|
+
|
|
|
|
+ if (soc->cdp_soc.ol_ops->is_hw_dbs_capable)
|
|
dbs_enable = soc->cdp_soc.ol_ops->
|
|
dbs_enable = soc->cdp_soc.ol_ops->
|
|
- is_hw_dbs_2x2_capable((void *)soc->ctrl_psoc);
|
|
|
|
|
|
+ is_hw_dbs_capable((void *)soc->ctrl_psoc);
|
|
|
|
|
|
*max_mac_rings = (dbs_enable)?(*max_mac_rings):1;
|
|
*max_mac_rings = (dbs_enable)?(*max_mac_rings):1;
|
|
|
|
+ dp_info("dbs_enable %d, max_mac_rings %d",
|
|
|
|
+ dbs_enable, *max_mac_rings);
|
|
}
|
|
}
|
|
|
|
|
|
qdf_export_symbol(dp_is_hw_dbs_enable);
|
|
qdf_export_symbol(dp_is_hw_dbs_enable);
|