Browse Source

qcacld-3.0: Increase FW response timeout values in debug build

In slub debug enabled build processing is slowed down and hence
increase the FW response timeout values by factor of 2 times.

Change-Id: I979269a9b4f6bc03f97452b3d7f7416fd418f336
CRs-Fixed: 2315934
Rajeev Kumar 6 years ago
parent
commit
9f2dd4729c
1 changed files with 11 additions and 4 deletions
  1. 11 4
      core/wma/inc/wma.h

+ 11 - 4
core/wma/inc/wma.h

@@ -225,10 +225,17 @@ enum ds_mode {
 
 #define WMA_PDEV_SET_HW_MODE_RESP 0x06
 
-#define WMA_VDEV_START_REQUEST_TIMEOUT		6000 /* 6s */
-#define WMA_VDEV_STOP_REQUEST_TIMEOUT		6000 /* 6s */
-#define WMA_VDEV_HW_MODE_REQUEST_TIMEOUT	5000 /* 5s */
-#define WMA_VDEV_PLCY_MGR_CMD_TIMEOUT		3000 /* 3s */
+#ifdef CONFIG_SLUB_DEBUG_ON
+#define SLUB_DEBUG_FACTOR (2)
+#else
+#define SLUB_DEBUG_FACTOR (1)
+#endif
+
+/* FW response timeout values in milli seconds */
+#define WMA_VDEV_START_REQUEST_TIMEOUT   (6000) * (SLUB_DEBUG_FACTOR)
+#define WMA_VDEV_STOP_REQUEST_TIMEOUT    (6000) * (SLUB_DEBUG_FACTOR)
+#define WMA_VDEV_HW_MODE_REQUEST_TIMEOUT (6000) * (SLUB_DEBUG_FACTOR)
+#define WMA_VDEV_PLCY_MGR_CMD_TIMEOUT    (6000) * (SLUB_DEBUG_FACTOR)
 #define WMA_VDEV_SET_KEY_WAKELOCK_TIMEOUT	WAKELOCK_DURATION_RECOMMENDED
 
 #define WMA_TGT_INVALID_SNR (0)