qcacmn: initialize PPE rings

Changes to initialize PPE rings based on ini
configuration

Change-Id: Id6a26b557c45fd78ae17675b0292424e979958ad
This commit is contained in:
Chaithanya Garrepalli
2021-08-12 17:22:12 +05:30
committed by Madan Koyyalamudi
parent d5006a849b
commit 0702aaf463
11 changed files with 411 additions and 27 deletions

View File

@@ -4291,6 +4291,7 @@ static QDF_STATUS dp_init_tx_ring_pair_by_index(struct dp_soc *soc,
dp_err("dp_srng_init failed for tx_comp_ring");
goto fail1;
}
wlan_minidump_log(soc->tx_comp_ring[index].base_vaddr_unaligned,
soc->tx_comp_ring[index].alloc_size,
soc->ctrl_psoc,
@@ -12496,6 +12497,10 @@ fail1:
static void dp_soc_srng_deinit(struct dp_soc *soc)
{
uint32_t i;
if (soc->arch_ops.txrx_soc_srng_deinit)
soc->arch_ops.txrx_soc_srng_deinit(soc);
/* Free the ring memories */
/* Common rings */
wlan_minidump_remove(soc->wbm_desc_rel_ring.base_vaddr_unaligned,
@@ -12712,6 +12717,14 @@ static QDF_STATUS dp_soc_srng_init(struct dp_soc *soc)
"reo_dest_ring");
}
if (soc->arch_ops.txrx_soc_srng_init) {
if (soc->arch_ops.txrx_soc_srng_init(soc)) {
dp_init_err("%pK: dp_srng_init failed for arch rings",
soc);
goto fail1;
}
}
return QDF_STATUS_SUCCESS;
fail1:
/*
@@ -12731,6 +12744,9 @@ static void dp_soc_srng_free(struct dp_soc *soc)
{
uint32_t i;
if (soc->arch_ops.txrx_soc_srng_free)
soc->arch_ops.txrx_soc_srng_free(soc);
dp_srng_free(soc, &soc->wbm_desc_rel_ring);
for (i = 0; i < soc->num_tcl_data_rings; i++)
@@ -12855,6 +12871,14 @@ static QDF_STATUS dp_soc_srng_alloc(struct dp_soc *soc)
}
}
if (soc->arch_ops.txrx_soc_srng_alloc) {
if (soc->arch_ops.txrx_soc_srng_alloc(soc)) {
dp_init_err("%pK: dp_srng_alloc failed for arch rings",
soc);
goto fail1;
}
}
return QDF_STATUS_SUCCESS;
fail1: