Explorar el Código

qcacld-3.0: make rx refill buffer pool size configurable

This change makes two rx refill buffer pool size MACROs configurable,
so that they can be customized according to different platforms.

Change-Id: I638c71be0cd0b53f2db8351931abd54f80c5525c
CRs-Fixed: 3601396
jinbaoliu hace 1 año
padre
commit
c34bfe823f

+ 6 - 0
Kbuild

@@ -4803,6 +4803,12 @@ endif
 ifdef CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES
 ccflags-y += -DDP_RX_BUFFER_POOL_ALLOC_THRES=$(CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES)
 endif
+ifdef CONFIG_DP_RX_REFILL_BUFF_POOL_SIZE
+ccflags-y += -DDP_RX_REFILL_BUFF_POOL_SIZE=$(CONFIG_DP_RX_REFILL_BUFF_POOL_SIZE)
+endif
+ifdef CONFIG_DP_RX_REFILL_THRD_THRESHOLD
+ccflags-y += -DDP_RX_REFILL_THRD_THRESHOLD=$(CONFIG_DP_RX_REFILL_THRD_THRESHOLD)
+endif
 endif
 
 ccflags-$(CONFIG_DP_FT_LOCK_HISTORY) += -DDP_FT_LOCK_HISTORY

+ 6 - 0
Kconfig

@@ -225,6 +225,12 @@ config DP_RX_BUFFER_POOL_ALLOC_THRES
 config DP_RX_BUFFER_POOL_SIZE
 	int "Enable DP_RX_BUFFER_POOL_SIZE"
 
+config DP_RX_REFILL_BUFF_POOL_SIZE
+	int "Enable DP_RX_REFILL_BUFF_POOL_SIZE"
+
+config DP_RX_REFILL_THRD_THRESHOLD
+	int "Enable DP_RX_REFILL_THRD_THRESHOLD"
+
 config DP_RX_DROP_RAW_FRM
 	bool "Enable DP_RX_DROP_RAW_FRM"
 	default n

+ 6 - 0
configs/config_to_feature.h

@@ -2663,6 +2663,12 @@
 #ifdef CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES
 #define DP_RX_BUFFER_POOL_ALLOC_THRES (CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES)
 #endif
+#ifdef CONFIG_DP_RX_REFILL_BUFF_POOL_SIZE
+#define DP_RX_REFILL_BUFF_POOL_SIZE (CONFIG_DP_RX_REFILL_BUFF_POOL_SIZE)
+#endif
+#ifdef CONFIG_DP_RX_REFILL_THRD_THRESHOLD
+#define DP_RX_REFILL_THRD_THRESHOLD (CONFIG_DP_RX_REFILL_THRD_THRESHOLD)
+#endif
 #endif
 #ifdef CONFIG_DP_FT_LOCK_HISTORY
 #define DP_FT_LOCK_HISTORY (1)

+ 8 - 0
configs/default_defconfig

@@ -149,6 +149,8 @@ ifeq (y,$(findstring y,$(CONFIG_CNSS_KIWI) $(CONFIG_CNSS_KIWI_V2)))
 	CONFIG_WLAN_FEATURE_RX_BUFFER_POOL := y
 	CONFIG_DP_RX_BUFFER_POOL_SIZE := 128
 	CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES := 5
+	CONFIG_DP_RX_REFILL_BUFF_POOL_SIZE := 2048
+	CONFIG_DP_RX_REFILL_THRD_THRESHOLD := 512
 	CONFIG_NO_RX_PKT_HDR_TLV := y
 ifeq ($(CONFIG_DP_CON_MON_MSI_ENABLED), y)
 	CONFIG_DP_CON_MON_MSI_SKIP_SET := y
@@ -481,6 +483,8 @@ CONFIG_WBM_IDLE_LSB_WR_CNF_WAR := y
 CONFIG_WLAN_FEATURE_RX_BUFFER_POOL := y
 CONFIG_DP_RX_BUFFER_POOL_SIZE := 128
 CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES := 5
+CONFIG_DP_RX_REFILL_BUFF_POOL_SIZE := 2048
+CONFIG_DP_RX_REFILL_THRD_THRESHOLD := 512
 ifeq ($(CONFIG_WDI3_STATS_UPDATE), y)
 CONFIG_WDI3_STATS_BW_MONITOR := y
 endif
@@ -1572,6 +1576,8 @@ ifeq ($(CONFIG_CNSS_QCA6750), y)
 CONFIG_WLAN_FEATURE_RX_BUFFER_POOL := y
 CONFIG_DP_RX_BUFFER_POOL_SIZE := 128
 CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES := 5
+CONFIG_DP_RX_REFILL_BUFF_POOL_SIZE := 2048
+CONFIG_DP_RX_REFILL_THRD_THRESHOLD := 512
 CONFIG_DP_SWLM := y
 CONFIG_WLAN_FEATURE_CE_RX_BUFFER_REUSE := y
 endif
@@ -1584,6 +1590,8 @@ ifeq (y,$(filter y,$(CONFIG_ARCH_SDXLEMUR) $(CONFIG_ARCH_SDXBAAGHA)))
 CONFIG_WLAN_FEATURE_RX_BUFFER_POOL := y
 CONFIG_DP_RX_BUFFER_POOL_SIZE := 128
 CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES := 5
+CONFIG_DP_RX_REFILL_BUFF_POOL_SIZE := 2048
+CONFIG_DP_RX_REFILL_THRD_THRESHOLD := 512
 CONFIG_BEACON_TX_OFFLOAD_MAX_VDEV := 4
 CONFIG_NUM_IPA_IFACE := 4
 CONFIG_MAX_CLIENTS_ALLOWED := 64

+ 4 - 0
configs/kiwi_v2_defconfig

@@ -103,6 +103,10 @@ endif # IPA_OFFLOAD
 
 CONFIG_WLAN_SYSFS_RANGE_EXT := n
 
+CONFIG_WLAN_FEATURE_RX_BUFFER_POOL := y
+CONFIG_DP_RX_REFILL_BUFF_POOL_SIZE := 256
+CONFIG_DP_RX_REFILL_THRD_THRESHOLD := 128
+
 endif # ARCH_SDXPINN
 
 ifeq ($(CONFIG_ARCH_PINEAPPLE), y)

+ 2 - 0
configs/peach_defconfig

@@ -97,6 +97,8 @@ CONFIG_DP_PKT_STATS_PER_LMAC := y
 CONFIG_WLAN_FEATURE_RX_BUFFER_POOL := y
 CONFIG_DP_RX_BUFFER_POOL_SIZE := 128
 CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES := 5
+CONFIG_DP_RX_REFILL_BUFF_POOL_SIZE := 2048
+CONFIG_DP_RX_REFILL_THRD_THRESHOLD := 512
 CONFIG_NO_RX_PKT_HDR_TLV := y
 ifeq ($(CONFIG_DP_CON_MON_MSI_ENABLED), y)
 	CONFIG_DP_CON_MON_MSI_SKIP_SET := y

+ 2 - 0
configs/pineapple_gki_kiwi-v2_defconfig

@@ -45,6 +45,8 @@ CONFIG_DP_PKT_ADD_TIMESTAMP=y
 CONFIG_DP_PKT_STATS_PER_LMAC=y
 CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES=5
 CONFIG_DP_RX_BUFFER_POOL_SIZE=128
+CONFIG_DP_RX_REFILL_BUFF_POOL_SIZE=2048
+CONFIG_DP_RX_REFILL_THRD_THRESHOLD=512
 CONFIG_DP_RX_DROP_RAW_FRM=y
 CONFIG_DP_RX_PKT_NO_PEER_DELIVER=y
 CONFIG_DP_RX_SPECIAL_FRAME_NEED=y

+ 2 - 0
configs/wcn6450_defconfig

@@ -764,6 +764,8 @@ CONFIG_FEATURE_VDEV_OPS_WAKELOCK := y
 CONFIG_WLAN_FEATURE_RX_BUFFER_POOL := y
 CONFIG_DP_RX_BUFFER_POOL_SIZE := 128
 CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES := 5
+CONFIG_DP_RX_REFILL_BUFF_POOL_SIZE := 2048
+CONFIG_DP_RX_REFILL_THRD_THRESHOLD := 512
 CONFIG_DP_SWLM := y
 
 #Enable Hang Event