Эх сурвалжийг харах

qcacmn: Modify min value of DP configuration for emulation

Reducing min value of DP configuration parameter to support
low memory emulation platform.

Change-Id: I524dca73b3ce52e138527c7abd1a9d8d0cbe9ac1
CRs-Fixed: 2309295
Pratik Gandhi 6 жил өмнө
parent
commit
4cce3e03cd

+ 9 - 4
dp/wifi3.0/dp_main.c

@@ -1842,7 +1842,11 @@ static void dp_hw_link_desc_pool_cleanup(struct dp_soc *soc)
 }
 
 #define REO_DST_RING_SIZE_QCA6290 1024
+#ifndef QCA_WIFI_QCA8074_VP
 #define REO_DST_RING_SIZE_QCA8074 2048
+#else
+#define REO_DST_RING_SIZE_QCA8074 8
+#endif
 
 /*
  * dp_wds_aging_timer_fn() - Timer callback function for WDS aging
@@ -2749,7 +2753,7 @@ static void dp_cleanup_ipa_rx_refill_buf_ring(struct dp_soc *soc,
 }
 #endif
 
-#ifndef QCA_WIFI_QCA6390
+#if !defined(QCA_WIFI_QCA6390) && !defined(DISABLE_MON_CONFIG)
 static
 QDF_STATUS dp_mon_rings_setup(struct dp_soc *soc, struct dp_pdev *pdev)
 {
@@ -3117,7 +3121,7 @@ static void dp_htt_ppdu_stats_detach(struct dp_pdev *pdev)
 	}
 }
 
-#ifndef QCA_WIFI_QCA6390
+#if !defined(QCA_WIFI_QCA6390) && !defined(DISABLE_MON_CONFIG)
 static
 void dp_mon_ring_deinit(struct dp_soc *soc, struct dp_pdev *pdev,
 			int mac_id)
@@ -3336,7 +3340,7 @@ static void dp_soc_detach_wifi3(void *txrx_soc)
 	qdf_mem_free(soc);
 }
 
-#ifndef QCA_WIFI_QCA6390
+#if !defined(QCA_WIFI_QCA6390) && !defined(DISABLE_MON_CONFIG)
 static void dp_mon_htt_srng_setup(struct dp_soc *soc,
 				  struct dp_pdev *pdev,
 				  int mac_id,
@@ -3476,7 +3480,7 @@ static void dp_rxdma_ring_config(struct dp_soc *soc)
 
 			htt_srng_setup(soc->htt_handle, mac_for_pdev,
 				pdev->rx_refill_buf_ring.hal_srng, RXDMA_BUF);
-
+#ifndef DISABLE_MON_CONFIG
 			htt_srng_setup(soc->htt_handle, mac_for_pdev,
 				pdev->rxdma_mon_buf_ring[mac_id].hal_srng,
 				RXDMA_MONITOR_BUF);
@@ -3489,6 +3493,7 @@ static void dp_rxdma_ring_config(struct dp_soc *soc)
 			htt_srng_setup(soc->htt_handle, mac_for_pdev,
 				pdev->rxdma_mon_desc_ring[mac_id].hal_srng,
 				RXDMA_MONITOR_DESC);
+#endif
 			htt_srng_setup(soc->htt_handle, mac_for_pdev,
 				pdev->rxdma_err_dst_ring[mac_id].hal_srng,
 				RXDMA_DST);

+ 14 - 0
dp/wifi3.0/dp_rx_mon_dest.c

@@ -1214,6 +1214,7 @@ void dp_mon_link_desc_pool_cleanup(struct dp_soc *soc, uint32_t mac_id)
  * Return: QDF_STATUS_SUCCESS: success
  *         QDF_STATUS_E_RESOURCES: Error return
  */
+#ifndef DISABLE_MON_CONFIG
 QDF_STATUS
 dp_rx_pdev_mon_attach(struct dp_pdev *pdev) {
 	struct dp_soc *soc = pdev->soc;
@@ -1254,6 +1255,12 @@ dp_rx_pdev_mon_attach(struct dp_pdev *pdev) {
 	qdf_spinlock_create(&pdev->mon_lock);
 	return QDF_STATUS_SUCCESS;
 }
+#else
+QDF_STATUS
+dp_rx_pdev_mon_attach(struct dp_pdev *pdev) {
+	return QDF_STATUS_SUCCESS;
+}
+#endif
 
 /**
  * dp_rx_pdev_mon_detach() - detach dp rx for monitor mode
@@ -1266,6 +1273,7 @@ dp_rx_pdev_mon_attach(struct dp_pdev *pdev) {
  * Return: QDF_STATUS_SUCCESS: success
  *         QDF_STATUS_E_RESOURCES: Error return
  */
+#ifndef DISABLE_MON_CONFIG
 QDF_STATUS
 dp_rx_pdev_mon_detach(struct dp_pdev *pdev) {
 	uint8_t pdev_id = pdev->pdev_id;
@@ -1283,4 +1291,10 @@ dp_rx_pdev_mon_detach(struct dp_pdev *pdev) {
 
 	return QDF_STATUS_SUCCESS;
 }
+#else
+QDF_STATUS
+dp_rx_pdev_mon_detach(struct dp_pdev *pdev) {
+	return QDF_STATUS_SUCCESS;
+}
+#endif /* DISABLE_MON_CONFIG */
 #endif

+ 11 - 7
wlan_cfg/cfg_dp.h

@@ -26,7 +26,7 @@
 #include "cfg_define.h"
 
 #define WLAN_CFG_MAX_CLIENTS 64
-#define WLAN_CFG_MAX_CLIENTS_MIN 64
+#define WLAN_CFG_MAX_CLIENTS_MIN 8
 #define WLAN_CFG_MAX_CLIENTS_MAX 64
 
 /* Change this to a lower value to enforce scattered idle list mode */
@@ -83,7 +83,11 @@
 #define WLAN_LRO_ENABLE 0
 
 /* Tx Descriptor and Tx Extension Descriptor pool sizes */
+#ifndef QCA_WIFI_QCA8074_VP
 #define WLAN_CFG_NUM_TX_DESC  0x320000
+#else
+#define WLAN_CFG_NUM_TX_DESC  (8 << 10)
+#endif
 #define WLAN_CFG_NUM_TX_EXT_DESC 0x80000
 
 /* Interrupt Mitigation - Batch threshold in terms of number of frames */
@@ -118,7 +122,7 @@
 #define WLAN_CFG_TX_RING_SIZE_MIN 512
 #define WLAN_CFG_TX_RING_SIZE_MAX 2048
 
-#define WLAN_CFG_TX_COMP_RING_SIZE_MIN 1024
+#define WLAN_CFG_TX_COMP_RING_SIZE_MIN 512
 #define WLAN_CFG_TX_COMP_RING_SIZE_MAX 0x80000
 
 #define WLAN_CFG_NUM_TX_DESC_MIN  1024
@@ -218,7 +222,7 @@
 #define WLAN_CFG_REO_REINJECT_RING_SIZE_MAX 32
 
 #define WLAN_CFG_RX_RELEASE_RING_SIZE 1024
-#define WLAN_CFG_RX_RELEASE_RING_SIZE_MIN 1024
+#define WLAN_CFG_RX_RELEASE_RING_SIZE_MIN 8
 #define WLAN_CFG_RX_RELEASE_RING_SIZE_MAX 1024
 
 #define WLAN_CFG_REO_EXCEPTION_RING_SIZE 128
@@ -238,19 +242,19 @@
 #define WLAN_CFG_RXDMA_BUF_RING_SIZE_MAX 1024
 
 #define WLAN_CFG_RXDMA_REFILL_RING_SIZE 4096
-#define WLAN_CFG_RXDMA_REFILL_RING_SIZE_MIN 4096
+#define WLAN_CFG_RXDMA_REFILL_RING_SIZE_MIN 16
 #define WLAN_CFG_RXDMA_REFILL_RING_SIZE_MAX 4096
 
 #define WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE 4096
-#define WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE_MIN 4096
+#define WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE_MIN 16
 #define WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE_MAX 4096
 
 #define WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE 2048
-#define WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE_MIN 2048
+#define WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE_MIN 48
 #define WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE_MAX 2048
 
 #define WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE 1024
-#define WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE_MIN 1024
+#define WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE_MIN 16
 #define WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE_MAX 1024
 
 #define WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE 4096