فهرست منبع

qcacld-3.0: CL 1644962 – update fw common interface files

Propagation from qcacld-2.0 to qcacld-3.0.

Further WMI stats field name cleanups
Continue WMI stats field name cleanups begun in CL 1639162.
This change disambiguates the interpretation of some of the stats fields,
and adds a couple stats field renames that were overlooked in CL 1639162.

Change-Id: I0879a42ef3b0b280ac45a691658d26e48de105fd
CRs-Fixed: 865207
Poddar, Siddarth 8 سال پیش
والد
کامیت
f363616e2f
3فایلهای تغییر یافته به همراه83 افزوده شده و 82 حذف شده
  1. 15 15
      target/inc/wmi_tlv_defs.h
  2. 67 66
      target/inc/wmi_unified.h
  3. 1 1
      target/inc/wmi_version.h

+ 15 - 15
target/inc/wmi_tlv_defs.h

@@ -3915,14 +3915,14 @@ WMITLV_CREATE_PARAM_STRUC(WMI_RADIO_TX_POWER_LEVEL_STATS_EVENTID);
  *    A_UINT32                 tx_fail_mcs[][][];        Array length is num_peer_ac_tx_stats * WLAN_MAX_AC * tx_fail_mcs_array_len,
  *                                                       array index is (peer_index * WLAN_MAX_AC + ac_index) * tx_fail_mcs_array_len + MCS index
  *                                                       Contains a count of how many PPDUs failed tx due to no ack for each MCS of each AC of each peer.
- *    A_UINT32                 tx_delay[][][];           Array length is num_peer_ac_tx_stats * WLAN_MAX_AC * tx_delay_array_len,
- *                                                       array index is (peer_index * WLAN_MAX_AC + ac_index) * tx_delay_array_len + delay index
+ *    A_UINT32                 tx_ppdu_delay[][][];      Array length is num_peer_ac_tx_stats * WLAN_MAX_AC * tx_ppdu_delay_array_len,
+ *                                                       array index is (peer_index * WLAN_MAX_AC + ac_index) * tx_ppdu_delay_array_len + delay index
  *                                                       Contains a histogram of how many PPDUs encountered each level of delay due to retries or air interface contention.
- *                                                       The time represented by each array element (i.e. histogram bin) is specified by tx_delay_bin_size_ms.
- *                                                       Element 0 contains the count of PPDUs delayed by less than tx_delay_bin_size_ms.
- *                                                       Element 1 contains the count of PPDUs delayed by more than 1x tx_delay_bin_size_ms but less than 2x.
+ *                                                       The time represented by each array element (i.e. histogram bin) is specified by tx_ppdu_delay_bin_size_ms.
+ *                                                       Element 0 contains the count of PPDUs delayed by less than tx_ppdu_delay_bin_size_ms.
+ *                                                       Element 1 contains the count of PPDUs delayed by more than 1x tx_ppdu_delay_bin_size_ms but less than 2x.
  *                                                       Element tx_delay_array_len-1 contains the count of PPDUs delayed by
- *                                                           >= tx_delay_bin_size_ms * (tx_delay_array_len-1)
+ *                                                           >= tx_ppdu_delay_bin_size_ms * (tx_ppdu_delay_array_len-1)
  *    wmi_peer_ac_rx_stats     peer_ac_rx_stats[];       Array length is specified by num_peer_ac_rx_stats
  *    wmi_rx_stats             rx_stats[][];             Array length is num_peer_ac_rx_stats * WLAN_MAX_AC, array index is (peer_index * WLAN_MAX_AC + ac_index)
  *    A_UINT32                 rx_mpdu_aggr[][][];       Array length is num_peer_ac_rx_stats * WLAN_MAX_AC * rx_mpdu_aggr_array_len,
@@ -3975,14 +3975,14 @@ WMITLV_CREATE_PARAM_STRUC(WMI_RADIO_TX_POWER_LEVEL_STATS_EVENTID);
  * 36. tx_fail_mcs[1][1][] for peer Y, AC 1
  * 37. tx_fail_mcs[1][2][] for peer Y, AC 2
  * 38. tx_fail_mcs[1][3][] for peer Y, AC 3
- * 39. tx_delay[0][0][] for peer X, AC 0
- * 40. tx_delay[0][1][] for peer X, AC 1
- * 41. tx_delay[0][2][] for peer X, AC 2
- * 42. tx_delay[0][3][] for peer X, AC 3
- * 43. tx_delay[1][0][] for peer Y, AC 0
- * 44. tx_delay[1][1][] for peer Y, AC 1
- * 45. tx_delay[1][2][] for peer Y, AC 2
- * 46. tx_delay[1][3][] for peer Y, AC 3
+ * 39. tx_ppdu_delay[0][0][] for peer X, AC 0
+ * 40. tx_ppdu_delay[0][1][] for peer X, AC 1
+ * 41. tx_ppdu_delay[0][2][] for peer X, AC 2
+ * 42. tx_ppdu_delay[0][3][] for peer X, AC 3
+ * 43. tx_ppdu_delay[1][0][] for peer Y, AC 0
+ * 44. tx_ppdu_delay[1][1][] for peer Y, AC 1
+ * 45. tx_ppdu_delay[1][2][] for peer Y, AC 2
+ * 46. tx_ppdu_delay[1][3][] for peer Y, AC 3
  * 47. peer_ac_rx_stats[0] for X
  * 48. peer_ac_rx_stats[1] for Y
  * 49. rx_stats[0][0] for peer X, AC 0
@@ -4019,7 +4019,7 @@ WMITLV_CREATE_PARAM_STRUC(WMI_RADIO_TX_POWER_LEVEL_STATS_EVENTID);
 	WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_ARRAY_UINT32, A_UINT32, tx_mpdu_aggr, WMITLV_SIZE_VAR) \
 	WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_ARRAY_UINT32, A_UINT32, tx_succ_mcs, WMITLV_SIZE_VAR) \
 	WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_ARRAY_UINT32, A_UINT32, tx_fail_mcs, WMITLV_SIZE_VAR) \
-	WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_ARRAY_UINT32, A_UINT32, tx_delay, WMITLV_SIZE_VAR) \
+	WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_ARRAY_UINT32, A_UINT32, tx_ppdu_delay, WMITLV_SIZE_VAR) \
 	WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_ARRAY_STRUC, wmi_peer_ac_rx_stats, peer_ac_rx_stats, WMITLV_SIZE_VAR) \
 	WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_ARRAY_STRUC, wmi_rx_stats, rx_stats, WMITLV_SIZE_VAR) \
 	WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_ARRAY_UINT32, A_UINT32, rx_mpdu_aggr, WMITLV_SIZE_VAR) \

+ 67 - 66
target/inc/wmi_unified.h

@@ -3868,13 +3868,13 @@ typedef enum {
 	 */
 	WMI_PDEV_PARAM_STATS_OBSERVATION_PERIOD,
 	/**
-	 * Set tx_delay[] bin size to specify how many
-	 * milliseconds each bin of the wmi_tx_stats.tx_delay[]
+	 * Set tx_ppdu_delay[] bin size to specify how many
+	 * milliseconds each bin of the wmi_tx_stats.tx_ppdu_delay[]
 	 * histogram represents.
 	 */
-	WMI_PDEV_PARAM_TX_DELAY_BIN_SIZE_MS,
-	/** set wmi_tx_stats.tx_delay[] array length */
-	WMI_PDEV_PARAM_TX_DELAY_ARRAY_LEN,
+	WMI_PDEV_PARAM_TX_PPDU_DELAY_BIN_SIZE_MS,
+	/** set wmi_tx_stats.tx_ppdu_delay[] array length */
+	WMI_PDEV_PARAM_TX_PPDU_DELAY_ARRAY_LEN,
 	/** set wmi_tx_stats.tx_mpdu_aggr[] array length */
 	WMI_PDEV_PARAM_TX_MPDU_AGGR_ARRAY_LEN,
 	/** set wmi_rx_stats.rx_mpdu_aggr[] array length */
@@ -5111,51 +5111,51 @@ typedef struct {
 #define WLAN_STATS_TX_FAIL_MCS_SHIFT           11
 #define WLAN_STATS_TX_FAIL_MCS_MASK            0x00000800
 
-#define WLAN_STATS_TX_DELAY_SHIFT              12
-#define WLAN_STATS_TX_DELAY_MASK               0x00001000
+#define WLAN_STATS_TX_PPDU_DELAY_SHIFT         12
+#define WLAN_STATS_TX_PPDU_DELAY_MASK          0x00001000
 
 /* WLAN RX stats bitmap  */
-#define WLAN_STATS_MAC_RX_MPDU_CNT_SHIFT    0
-#define WLAN_STATS_MAC_RX_MPDU_CNT_MASK     0x00000001
+#define WLAN_STATS_MAC_RX_MPDU_CNT_SHIFT     0
+#define WLAN_STATS_MAC_RX_MPDU_CNT_MASK      0x00000001
 
-#define WLAN_STATS_MAC_RX_BYTES_SHIFT       1
-#define WLAN_STATS_MAC_RX_BYTES_MASK        0x00000002
+#define WLAN_STATS_MAC_RX_BYTES_SHIFT        1
+#define WLAN_STATS_MAC_RX_BYTES_MASK         0x00000002
 
-#define WLAN_STATS_PHY_RX_PPDU_CNT_SHIFT    2
-#define WLAN_STATS_PHY_RX_PPDU_CNT_MASK     0x00000004
+#define WLAN_STATS_PHY_RX_PPDU_CNT_SHIFT     2
+#define WLAN_STATS_PHY_RX_PPDU_CNT_MASK      0x00000004
 
-#define WLAN_STATS_PHY_RX_BYTES_SHIFT       3
-#define WLAN_STATS_PHY_RX_BYTES_MASK        0x00000008
+#define WLAN_STATS_PHY_RX_BYTES_SHIFT        3
+#define WLAN_STATS_PHY_RX_BYTES_MASK         0x00000008
 
-#define WLAN_STATS_RX_DISORDER_CNT_SHIFT    4
-#define WLAN_STATS_RX_DISORDER_CNT_MASK     0x00000010
+#define WLAN_STATS_RX_DISORDER_CNT_SHIFT     4
+#define WLAN_STATS_RX_DISORDER_CNT_MASK      0x00000010
 
-#define WLAN_STATS_RX_RETRY_CNT_SHIFT       5
-#define WLAN_STATS_RX_RETRY_CNT_MASK        0x00000020
+#define WLAN_STATS_RX_RETRY_CNT_SHIFT        5
+#define WLAN_STATS_RX_RETRY_CNT_MASK         0x00000020
 
-#define WLAN_STATS_RX_DUP_CNT_SHIFT         6
-#define WLAN_STATS_RX_DUP_CNT_MASK          0x00000040
+#define WLAN_STATS_RX_DUP_CNT_SHIFT          6
+#define WLAN_STATS_RX_DUP_CNT_MASK           0x00000040
 
-#define WLAN_STATS_RX_DISCARD_CNT_SHIFT     7
-#define WLAN_STATS_RX_DISCARD_CNT_MASK      0x00000080
+#define WLAN_STATS_RX_DISCARD_CNT_SHIFT      7
+#define WLAN_STATS_RX_DISCARD_CNT_MASK       0x00000080
 
-#define WLAN_STATS_RX_MPDU_AGGR_SHIFT       8
-#define WLAN_STATS_RX_MPDU_AGGR_MASK        0x00000100
+#define WLAN_STATS_RX_MPDU_AGGR_SHIFT        8
+#define WLAN_STATS_RX_MPDU_AGGR_MASK         0x00000100
 
-#define WLAN_STATS_RX_MCS_SHIFT             9
-#define WLAN_STATS_RX_MCS_MASK              0x00000200
+#define WLAN_STATS_RX_MCS_SHIFT              9
+#define WLAN_STATS_RX_MCS_MASK               0x00000200
 
-#define WLAN_STATS_STA_PS_INDS_SHIFT        10
-#define WLAN_STATS_STA_PS_INDS_MASK         0x00000400
+#define WLAN_STATS_STA_PS_INDS_SHIFT         10
+#define WLAN_STATS_STA_PS_INDS_MASK          0x00000400
 
-#define WLAN_STATS_STA_PS_DURS_SHIFT        11
-#define WLAN_STATS_STA_PS_DURS_MASK         0x00000800
+#define WLAN_STATS_STA_PS_DURS_SHIFT         11
+#define WLAN_STATS_STA_PS_DURS_MASK          0x00000800
 
-#define WLAN_STATS_RX_PROBE_REQS_SHIFT      12
-#define WLAN_STATS_RX_PROBE_REQS_MASK       0x00001000
+#define WLAN_STATS_RX_PROBE_REQS_SHIFT       12
+#define WLAN_STATS_RX_PROBE_REQS_MASK        0x00001000
 
-#define WLAN_STATS_RX_OTH_MGMTS_SHIFT       13
-#define WLAN_STATS_RX_OTH_MGMTS_MASK        0x00002000
+#define WLAN_STATS_RX_OTH_MGMTS_SHIFT        13
+#define WLAN_STATS_RX_OTH_MGMTS_MASK         0x00002000
 
 typedef struct {
 	A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_chan_cca_stats */
@@ -5247,9 +5247,9 @@ typedef struct {
 	/**
 	 * This TLV is followed by TLVs below: :
 	 *     A_UINT32 tx_mpdu_aggr[tx_mpdu_aggr_array_len];
-	 *     A_UINT32 tx_succ_mcs[tx_msdu_acked_mcs_array_len];
-	 *     A_UINT32 tx_fail_mcs[tx_msdu_failed_mcs_array_len];
-	 *     A_UINT32 tx_delay[tx_msdu_delay_array_len];
+	 *     A_UINT32 tx_succ_mcs[tx_succ_mcs_array_len];
+	 *     A_UINT32 tx_fail_mcs[tx_fail_mcs_array_len];
+	 *     A_UINT32 tx_delay[tx_ppdu_delay_array_len];
 	 */
 } wmi_tx_stats;
 
@@ -5270,7 +5270,7 @@ typedef struct {
 	A_UINT32 tx_mpdu_aggr;
 	A_UINT32 tx_succ_mcs;
 	A_UINT32 tx_fail_mcs;
-	A_UINT32 tx_delay;
+	A_UINT32 tx_ppdu_delay;
 } wmi_tx_stats_thresh;
 
 typedef struct {
@@ -5285,26 +5285,26 @@ typedef struct {
 typedef struct {
 	/** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rx_stats */
 	A_UINT32 tlv_header;
-	/** Number of RX MSDUs on MAC layer */
-	A_UINT32 mac_rx_msdu_cnt;
+	/** Number of RX MPDUs on MAC layer */
+	A_UINT32 mac_rx_mpdu_cnt;
 	/** Bytes of RX packets on MAC layer */
 	A_UINT32 mac_rx_bytes;
-	/** Number of RX packets on PHY layer */
+	/** Number of RX PPDU on PHY layer */
 	A_UINT32 phy_rx_ppdu_cnt;
 	/** Bytes of RX packets on PHY layer */
 	A_UINT32 phy_rx_bytes;
 	/** Number of discontinuity in seqnum */
 	A_UINT32 rx_disorder_cnt;
 	/** Number of RX MPDUs flagged as retransmissions */
-	A_UINT32 rx_retry_cnt;
+	A_UINT32 rx_mpdu_retry_cnt;
 	/** Number of RX MPDUs identified as duplicates */
-	A_UINT32 rx_dup_cnt;
-	/** Number of RX MSDUs discarded */
-	A_UINT32 rx_msdu_discard_cnt;
+	A_UINT32 rx_mpdu_dup_cnt;
+	/** Number of RX MPDUs discarded */
+	A_UINT32 rx_mpdu_discard_cnt;
 	/**
 	 * This TLV is followed by TLVs below:
 	 *     A_UINT32 rx_mpdu_aggr[rx_mpdu_aggr_array_len];
-	 *     A_UINT32 rx_mcs[rx_msdu_mcs_array_len];
+	 *     A_UINT32 rx_mcs[rx_mcs_array_len];
 	 */
 } wmi_rx_stats;
 
@@ -5319,9 +5319,9 @@ typedef struct {
 	A_UINT32 phy_rx_ppdu_cnt;
 	A_UINT32 phy_rx_bytes;
 	A_UINT32 rx_disorder_cnt;
-	A_UINT32 rx_retry_cnt;
-	A_UINT32 rx_dup_cnt;
-	A_UINT32 rx_discard_cnt;
+	A_UINT32 rx_mpdu_retry_cnt;
+	A_UINT32 rx_mpdu_dup_cnt;
+	A_UINT32 rx_mpdu_discard_cnt;
 	A_UINT32 rx_mpdu_aggr;
 	A_UINT32 rx_mcs;
 	A_UINT32 sta_ps_inds;
@@ -5404,24 +5404,25 @@ typedef struct {
 	 */
 	A_UINT32 tx_fail_mcs_array_len;
 	/**
-	 * tx_delay[]is a histogram of delays on MAC layer.
+	 * tx_ppdu_delay[]is a histogram of delays on MAC layer.
 	 * The array counts numbers of PPDUs encountering different TX time delays.
-	 * TX delay here means time interval between the time the packet has been received
-	 * at the MAC layer and the time lower layers returns a tx status (<10ms to >100ms)
+	 * TX delay here means time interval between the time a PPDU is queued
+	 * to the MAC HW for transmission and the time the lower layers of
+	 * tx FW return a tx status.
 	 *
-	 * The bin size tx_delay_bin_size_ms specifies how many milliseconds
-	 * each bin of the tx_delay histogram represents.
+	 * The bin size tx_ppdu_delay_bin_size_ms specifies how many
+	 * milliseconds. Each bin of the tx_ppdu_delay histogram represents.
 	 * By default the bin size is 10ms.
-	 * tx_delay[0] -> delays between 0-9 ms
-	 * tx_delay[1] -> delays between 10-19 ms
+	 * tx_ppdu_delay[0] -> delays between 0-9 ms
+	 * tx_ppdu_delay[1] -> delays between 10-19 ms
 	 * ...
-	 * tx_delay[9] -> delays between 90-99 ms
-	 * tx_delay[10] -> delays >= 100 ms
-	 * Bin size can be set per WMI_PDEV_PARAM_TX_DELAY_BIN_SIZE_MS.
+	 * tx_ppdu_delay[9] -> delays between 90-99 ms
+	 * tx_ppdu_delay[10] -> delays >= 100 ms
+	 * Bin size can be set per WMI_PDEV_PARAM_TX_PPDU_DELAY_BIN_SIZE_MS.
 	 */
-	A_UINT32 tx_delay_bin_size_ms;
-	/** Array length of tx_delay[]. It can be set per WMI_PDEV_PARAM_TX_DELAY_ARRAY_LEN */
-	A_UINT32 tx_delay_array_len;
+	A_UINT32 tx_ppdu_delay_bin_size_ms;
+	/** Array length of tx_ppdu_delay[]. It can be set per WMI_PDEV_PARAM_TX_PPDU_DELAY_ARRAY_LEN */
+	A_UINT32 tx_ppdu_delay_array_len;
 	/** number of per peer ac RX stats structures (wmi_peer_ac_rx_stats), 0 to max peers*/
 	A_UINT32 num_peer_ac_rx_stats;
 	/**
@@ -5433,7 +5434,7 @@ typedef struct {
 	 * Array size of rx_mcs[] which is histogram of encoding rate.
 	 * The array indicates number of PPDUs received at a specific rate
 	 */
-	A_UINT32 rx_mcs_array_size;
+	A_UINT32 rx_mcs_array_len;
 
 	/**
 	 * This TLV is followed by TLVs below:
@@ -5447,8 +5448,8 @@ typedef struct {
 	 *                                                       array index is (peer_index * WLAN_MAX_AC + ac_index) * tx_succ_mcs_array_len + MCS index
 	 *    A_UINT32                 tx_fail_mcs[][][];        Array length is num_peer_ac_tx_stats * WLAN_MAX_AC * tx_fail_mcs_array_len,
 	 *                                                       array index is (peer_index * WLAN_MAX_AC + ac_index) * tx_fail_mcs_array_len + MCS index
-	 *    A_UINT32                 tx_delay[][][];           Array length is num_peer_ac_tx_stats * WLAN_MAX_AC * tx_delay_array_len,
-	 *                                                       array index is (peer_index * WLAN_MAX_AC + ac_index) * tx_delay_array_len + tx delay index
+	 *    A_UINT32                 tx_ppdu_delay[][][];      Array length is num_peer_ac_tx_stats * WLAN_MAX_AC * tx_ppdu_delay_array_len,
+	 *                                                       array index is (peer_index * WLAN_MAX_AC + ac_index) * tx_ppdu_delay_array_len + tx delay index
 	 *    wmi_peer_ac_rx_stats     peer_ac_rx_stats[];       Array length is specified by num_peer_ac_rx_stats
 	 *    wmi_rx_stats             rx_stats[][];             Array length is num_peer_ac_rx_stats * WLAN_MAX_AC, array index is (peer_index * WLAN_MAX_AC + ac_index)
 	 *    A_UINT32                 rx_mpdu_aggr[][][];       Array length is num_peer_ac_rx_stats * WLAN_MAX_AC * rx_mpdu_aggr_array_len,

+ 1 - 1
target/inc/wmi_version.h

@@ -36,7 +36,7 @@
 #define __WMI_VER_MINOR_    0
 /** WMI revision number has to be incremented when there is a
  *  change that may or may not break compatibility */
-#define __WMI_REVISION_ 296
+#define __WMI_REVISION_ 297
 
 /** The Version Namespace should not be normally changed. Only
  *  host and firmware of the same WMI namespace will work