Forráskód Böngészése

qcacmn: Use gEnableDataStallDetection as UINT value

Currently, data stall detection is without control over
individual data stall events.
INI variable, gEnableDataStallDetection is converted from
boolean to unsigned int which provides control over events
across FW and host with each bit corresponding to different
data stall events.
Bit 0: Enable all data stall events if set.
Bit 1-30: mapped to data stall events. Used when Bit 0 is 0
Bit 31: Enable aggressive timeout for WLM Mode.

Change-Id: I4656520accd1589e77d5054eaa0a3cb8e63b14b2
CRs-Fixed: 3174906
Ananya Gupta 3 éve
szülő
commit
bf41cceb2f
3 módosított fájl, 7 hozzáadás és 6 törlés
  1. 2 2
      dp/inc/cdp_txrx_mob_def.h
  2. 3 2
      wlan_cfg/cfg_dp.h
  3. 2 2
      wlan_cfg/wlan_cfg.h

+ 2 - 2
dp/inc/cdp_txrx_mob_def.h

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-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
@@ -326,7 +326,7 @@ struct txrx_pdev_cfg_param_t {
 	bool tso_enable;
 	bool lro_enable;
 	bool sg_enable;
-	bool enable_data_stall_detection;
+	uint32_t enable_data_stall_detection;
 	bool enable_flow_steering;
 	bool disable_intra_bss_fwd;
 

+ 3 - 2
wlan_cfg/cfg_dp.h

@@ -1171,8 +1171,9 @@
 			false, "Disable intrs BSS Rx packets")
 
 #define CFG_DP_ENABLE_DATA_STALL_DETECTION \
-		CFG_INI_BOOL("gEnableDataStallDetection", \
-		true, "Enable/Disable Data stall detection")
+		CFG_INI_UINT("gEnableDataStallDetection", \
+		0, 0xFFFFFFFF, 0x1, \
+		CFG_VALUE_OR_DEFAULT, "Enable/Disable Data stall detection")
 
 #define CFG_DP_RX_SW_DESC_WEIGHT \
 		CFG_INI_UINT("dp_rx_sw_desc_weight", \

+ 2 - 2
wlan_cfg/wlan_cfg.h

@@ -195,7 +195,7 @@ struct wlan_srng_cfg {
  * @rxdma_refill_ring: rxdma refill ring size
  * @rxdma_err_dst_ring: rxdma error detination ring size
  * @raw_mode_war: enable/disable raw mode war
- * @enable_data_stall_detection: flag to enable data stall detection
+ * @enable_data_stall_detection: enable/disable specific data stall detection
  * @disable_intra_bss_fwd: flag to disable intra bss forwarding
  * @rxdma1_enable: flag to indicate if rxdma1 is enabled
  * @delay_mon_replenish: delay monitor buffer replenish
@@ -335,7 +335,7 @@ struct wlan_cfg_dp_soc_ctxt {
 	int rxdma_err_dst_ring;
 	uint32_t per_pkt_trace;
 	bool raw_mode_war;
-	bool enable_data_stall_detection;
+	uint32_t enable_data_stall_detection;
 	bool disable_intra_bss_fwd;
 	bool rxdma1_enable;
 	bool delay_mon_replenish;