qcacmn: Featurization of DP_TX_DESC_POOL_OPTIMIZE

1. In lowmem profiles the number of tx_desc in 4th pool is reduced to
quarter for memory optimizations.
Added new API dp_get_updated_tx_desc which will return the desc value
from INI based on the flag DP_TX_DESC_POOL_OPTIMIZE.

2. Changes to introduce new INI to get reduced desc value for 4th tx
desc pool.

This helps optimize 0.75M per SOC in lowmem profiles.

Change-Id: I033fcaeb843019fb03bb77e0d05a3ebf60fa806a
CRs-Fixed: 3557483
This commit is contained in:
Hariharan Ramanathan
2023-07-20 08:40:43 +05:30
committad av Rahul Choudhary
förälder 4c2b8d81e4
incheckning ab649e0622
4 ändrade filer med 51 tillägg och 9 borttagningar

Visa fil

@@ -6300,7 +6300,7 @@ void dp_tx_desc_flush(struct dp_pdev *pdev, struct dp_vdev *vdev,
{
uint8_t i, num_pool;
uint32_t j;
uint32_t num_desc, page_id, offset;
uint32_t num_desc, num_desc_t, page_id, offset;
uint16_t num_desc_per_page;
struct dp_soc *soc = pdev->soc;
struct dp_tx_desc_s *tx_desc = NULL;
@@ -6319,9 +6319,11 @@ void dp_tx_desc_flush(struct dp_pdev *pdev, struct dp_vdev *vdev,
if (!tx_desc_pool->desc_pages.cacheable_pages)
continue;
num_desc_t = dp_get_updated_tx_desc(soc->ctrl_psoc, i,
num_desc);
num_desc_per_page =
tx_desc_pool->desc_pages.num_element_per_page;
for (j = 0; j < num_desc; j++) {
for (j = 0; j < num_desc_t; j++) {
page_id = j / num_desc_per_page;
offset = j % num_desc_per_page;
tx_desc = dp_tx_desc_find(soc, i, page_id, offset);