Преглед изворни кода

qcacmn: Add section defines and new dp ini parameters

Add section defines parameters and add the required new dp
ini parameters

Change-Id: I6a93c621565207970e35f1aa153283f7a6535bea
CRs-Fixed: 3107545
Surya Prakash Raajen пре 3 година
родитељ
комит
e7074b084e
2 измењених фајлова са 169 додато и 0 уклоњено
  1. 52 0
      cfg/inc/cfg_define.h
  2. 117 0
      wlan_cfg/cfg_dp.h

+ 52 - 0
cfg/inc/cfg_define.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -91,5 +92,56 @@ enum cfg_fallback_behavior {
 #define PLATFORM_VALUE(non_ap_value, ap_value) non_ap_value
 #endif
 
+#ifdef WLAN_USE_CONFIG_PARAMS
+/* Section Parsing - section names to be parsed */
+#define CFG_256M_SECTION "256M"
+#define CFG_512M_SECTION "512M"
+#define CFG_512M_E_SECTION "512M-E"
+#define CFG_512M_P_SECTION "512M-P"
+
+#define CFG_2G_SECTION "2G"
+#define CFG_5G_SECTION "5G"
+#define CFG_5G_LOW_SECTION "5GL"
+#define CFG_5G_HIGH_SECTION "5GH"
+#define CFG_6G_SECTION "6G"
+
+#define CFG_256M_2G_SECTION "2G-256M"
+#define CFG_256M_5G_SECTION "5G-256M"
+#define CFG_256M_5G_LOW_SECTION "5GL-256M"
+#define CFG_256M_5G_HIGH_SECTION "5GH-256M"
+#define CFG_256M_6G_SECTION "6G-256M"
+
+#define CFG_512ME_2G_SECTION "2G-512M-E"
+#define CFG_512ME_5G_SECTION "5G-512M-E"
+#define CFG_512ME_5G_LOW_SECTION "5GL-512M-E"
+#define CFG_512ME_5G_HIGH_SECTION "5GH-512M-E"
+#define CFG_512ME_6G_SECTION "6G-512M-E"
+
+#define CFG_512MP_2G_SECTION "2G-512M-P"
+#define CFG_512MP_5G_LOW_SECTION "5GL-512M-P"
+#define CFG_512MP_5G_HIGH_SECTION "5GH-512M-P"
+#define CFG_512MP_5G_SECTION "5G-512M-P"
+#define CFG_512MP_6G_SECTION "6G-512M-P"
+
+#define CFG_1G_2G_SECTION "1G-2G"
+#define CFG_1G_5G_SECTION "1G-5G"
+#define CFG_1G_5G_LOW_SECTION "1G-5GL"
+#define CFG_1G_5G_HIGH_SECTION "1G-5GH"
+#define CFG_1G_6G_SECTION "1G-6G"
+
+#define CFG_SBS_NSS_RING_SECTION "SBS-NSS-RING"
+#define CFG_DBS_NSS_RING_SECTION "DBS-NSS-RING"
+
+#define CFG_DP_TX_DESC_512P_SECTION "512M_REDUCED_DESC"
+#define CFG_DP_TX_DESC_1G_SECTION "1G-TX-DESC"
+#define CFG_DP_MON_512M_SECTION "DP_MON_512M_RING"
+#define CFG_NSS_3DEV_RING_SECTION "DP_NSS_3DEV_RING_SIZE"
+#define CFG_DP_4RADIO_REO_SECTION "DP_NSS_4RADIO_REO_MAP"
+
+#define CFG_512M_OR_4CHAIN_SECTION "512M_OR_DP_MON_4CHAIN"
+#define CFG_DP_MON_2CHAIN_SECTION "DP_MON_2CHAIN"
+
+#endif /* WLAN_USE_CONFIG_PARAMS */
+
 #endif /* __CFG_DEFINE_H */
 

+ 117 - 0
wlan_cfg/cfg_dp.h

@@ -732,6 +732,122 @@
 	CFG_INI_BOOL("LROEnable", WLAN_LRO_ENABLE, \
 	"DP LRO Enable")
 
+#ifdef WLAN_USE_CONFIG_PARAMS
+/*
+ * <ini>
+ * dp_tx_desc_use_512p - Use 512M tx descriptor size
+ * @Min: 0
+ * @Max: 1
+ * @Default: 0
+ *
+ * This ini entry is used as flag to use 512M tx descriptor size or not
+ *
+ * Usage: Internal
+ *
+ * </ini>
+ */
+#define CFG_DP_TX_DESC_512P \
+	CFG_INI_BOOL("dp_tx_desc_use_512p", false, \
+	"DP TX DESC PINE SPECIFIC")
+
+/*
+ * <ini>
+ * dp_nss_3radio_ring - Use 3 Radio NSS comp ring size
+ * @Min: 0
+ * @Max: 1
+ * @Default: 0
+ *
+ * This ini entry is used as flag to use 3 Radio NSS com ring size or not
+ *
+ * Usage: Internal
+ *
+ * </ini>
+ */
+#define CFG_DP_NSS_3RADIO_RING \
+	CFG_INI_BOOL("dp_nss_3radio_ring", false, \
+	"DP NSS 3 RADIO RING SIZE")
+
+/*
+ * <ini>
+ * dp_mon_ring_per_512M - Update monitor status ring as 512M profile
+ * @Min: 0
+ * @Max: 1
+ * @Default: 0
+ *
+ * This ini entry is used as flag to update monitor status ring as 512M profile
+ *
+ * Usage: Internal
+ *
+ * </ini>
+ */
+#define CFG_DP_MON_STATUS_512M \
+	CFG_INI_BOOL("dp_mon_ring_per_512M", false, \
+	"DP MON STATUS RING SIZE PER 512M PROFILE")
+
+/*
+ * <ini>
+ * dp_mon_2chain_ring - Reduce monitor rings size as for 2 Chains case
+ * @Min: 0
+ * @Max: 1
+ * @Default: 0
+ *
+ * This ini entry is used as flag to reduce monitor rings size as those used
+ * in case of 2 Tx/RxChains
+ *
+ * Usage: Internal
+ *
+ * </ini>
+ */
+#define CFG_DP_MON_2CHAIN_RING \
+	CFG_INI_BOOL("dp_mon_2chain_ring", false, \
+	"DP MON UPDATE RINGS FOR 2CHAIN")
+
+/*
+ * <ini>
+ * dp_mon_4chain_ring - Update monitor rings size for 4 Chains case
+ * @Min: 0
+ * @Max: 1
+ * @Default: 0
+ *
+ * This ini entry is used as flag to reduce monitor rings size as those used
+ * in case of 4 Tx/RxChains
+ *
+ * Usage: Internal
+ *
+ * </ini>
+ */
+#define CFG_DP_MON_4CHAIN_RING \
+	CFG_INI_BOOL("dp_mon_4chain_ring", false, \
+	"DP MON UPDATE RINGS FOR 4CHAIN")
+
+/*
+ * <ini>
+ * dp_4radip_rdp_reo - Update RDP REO map based on 4 radio config
+ * @Min: 0
+ * @Max: 1
+ * @Default: 0
+ *
+ * This ini entry is used as flag to update RDP reo map based on 4 Radio config
+ *
+ * Usage: Internal
+ *
+ * </ini>
+ */
+#define CFG_DP_4RADIO_RDP_REO \
+	CFG_INI_BOOL("dp_nss_4radio_rdp_reo", \
+	false, "Update REO destination mapping for 4radio")
+
+#define CFG_DP_INI_SECTION_PARAMS \
+		CFG(CFG_DP_NSS_3RADIO_RING) \
+		CFG(CFG_DP_TX_DESC_512P) \
+		CFG(CFG_DP_MON_STATUS_512M) \
+		CFG(CFG_DP_MON_2CHAIN_RING) \
+		CFG(CFG_DP_MON_4CHAIN_RING) \
+		CFG(CFG_DP_4RADIO_RDP_REO)
+#else
+#define CFG_DP_INI_SECTION_PARAMS
+#endif
+
 /*
  * <ini>
  * CFG_DP_SG - Enable the SG feature standalonely
@@ -1606,6 +1722,7 @@
 		CFG_DP_PPE_CONFIG \
 		CFG_DP_IPA_TX_ALT_RING_CFG \
 		CFG_DP_MLO_CONFIG \
+		CFG_DP_INI_SECTION_PARAMS \
 		CFG_DP_VDEV_STATS_HW_OFFLOAD \
 		CFG(CFG_DP_TX_CAPT_MAX_MEM_MB)
 #endif /* _CFG_DP_H_ */