fw-api: CL 25734374 - update fw common interface files
HTT stats: modify latency_prof_cal_stats struct Change-Id: Id5df11299388b367101eb38bd52b2941c87fc348 CRs-Fixed: 2262693
This commit is contained in:
@@ -500,7 +500,7 @@ enum htt_dbg_ext_stats_type {
|
||||
* params:
|
||||
* None
|
||||
* Response MSG:
|
||||
* htt_latency_prof_cal_stats_tlv
|
||||
* htt_stats_latency_prof_cal_data_tlv
|
||||
*/
|
||||
HTT_DBG_EXT_PHY_PROF_CAL_STATS = 52,
|
||||
|
||||
@@ -8726,7 +8726,7 @@ enum {
|
||||
};
|
||||
|
||||
#define HTT_STATS_MAX_CAL_IDX_CNT 8
|
||||
typedef struct {
|
||||
typedef struct { /* DEPRECATED */
|
||||
|
||||
htt_tlv_hdr_t tlv_hdr;
|
||||
|
||||
@@ -8781,9 +8781,77 @@ typedef struct {
|
||||
|
||||
/** No of indices invoked per each cal profile */
|
||||
A_UINT32 CalCnt[HTT_STATS_MAX_PROF_CAL];
|
||||
} htt_stats_latency_prof_cal_stats_tlv;
|
||||
} htt_stats_latency_prof_cal_stats_tlv; /* DEPRECATED */
|
||||
/* preserve old name alias for new name consistent with the tag name */
|
||||
typedef htt_stats_latency_prof_cal_stats_tlv htt_latency_prof_cal_stats_tlv;
|
||||
typedef htt_stats_latency_prof_cal_stats_tlv htt_latency_prof_cal_stats_tlv; /* DEPRECATED */
|
||||
|
||||
typedef struct {
|
||||
/** The cnt is incremented when each time the calindex takes place */
|
||||
A_UINT32 cnt;
|
||||
|
||||
/** Minimum time taken to complete the calibration - in us */
|
||||
A_UINT32 min;
|
||||
|
||||
/** Maximum time taken to complete the calibration -in us */
|
||||
A_UINT32 max;
|
||||
|
||||
/** Time taken by the cal for its final time execution - in us */
|
||||
A_UINT32 last;
|
||||
|
||||
/** Total time taken - in us */
|
||||
A_UINT32 tot;
|
||||
|
||||
/** hist_intvl - in us, by default will be set to 2000 us */
|
||||
A_UINT32 hist_intvl;
|
||||
|
||||
/**
|
||||
* If last is less than hist_intvl, then hist[0]++,
|
||||
* If last is less than hist_intvl << 1, then hist[1]++,
|
||||
* otherwise hist[2]++.
|
||||
*/
|
||||
A_UINT32 hist[HTT_INTERRUPTS_LATENCY_PROFILE_MAX_HIST];
|
||||
|
||||
/** pf_last will log the current no of page faults */
|
||||
A_UINT32 pf_last;
|
||||
|
||||
/** Sum of all page faults happened */
|
||||
A_UINT32 pf_tot;
|
||||
|
||||
/** If pf_last > pf_max then pf_max = pf_last */
|
||||
A_UINT32 pf_max;
|
||||
|
||||
/**
|
||||
* For each cal profile, only certain no of cal indices were invoked,
|
||||
* this member will store what all the indices got invoked per each
|
||||
* cal profile
|
||||
*/
|
||||
A_UINT32 enabled_cal_idx;
|
||||
|
||||
/*
|
||||
* NOTE: due to backwards-compatibility requirements,
|
||||
* no fields can be added to this struct.
|
||||
*/
|
||||
} htt_stats_latency_prof_cal_data;
|
||||
|
||||
typedef struct {
|
||||
|
||||
htt_tlv_hdr_t tlv_hdr;
|
||||
|
||||
/** To verify whether prof cal is enabled or not */
|
||||
A_UINT32 enable;
|
||||
|
||||
/** current pdev_id */
|
||||
A_UINT32 pdev_id;
|
||||
|
||||
/** No of indices invoked per each cal profile */
|
||||
A_UINT32 cal_cnt[HTT_STATS_MAX_PROF_CAL];
|
||||
|
||||
/** Latency Cal Profile name */
|
||||
A_UINT8 latency_prof_name[HTT_STATS_MAX_PROF_CAL][HTT_STATS_MAX_PROF_STATS_NAME_LEN];
|
||||
|
||||
/** Latency Cal data */
|
||||
htt_stats_latency_prof_cal_data latency_data[HTT_STATS_MAX_PROF_CAL][HTT_STATS_MAX_CAL_IDX_CNT];
|
||||
} htt_stats_latency_prof_cal_data_tlv;
|
||||
|
||||
#define HTT_ML_PEER_EXT_DETAILS_PEER_ASSOC_IPC_RECVD_M 0x0000003F
|
||||
#define HTT_ML_PEER_EXT_DETAILS_PEER_ASSOC_IPC_RECVD_S 0
|
||||
@@ -10508,6 +10576,7 @@ typedef enum {
|
||||
HTT_CTRL_PATH_STATS_CAL_TYPE_PEF = 0x16,
|
||||
HTT_CTRL_PATH_STATS_CAL_TYPE_PADROOP = 0x17,
|
||||
HTT_CTRL_PATH_STATS_CAL_TYPE_SELFCALTPC = 0x18,
|
||||
HTT_CTRL_PATH_STATS_CAL_TYPE_RXSPUR = 0x19,
|
||||
|
||||
/* add new cal types above this line */
|
||||
HTT_CTRL_PATH_STATS_CAL_TYPE_INVALID = 0xFF
|
||||
@@ -10556,6 +10625,7 @@ static INLINE A_UINT8 *htt_ctrl_path_cal_type_id_to_name(A_UINT32 cal_type_id)
|
||||
HTT_RETURN_STRING(HTT_CTRL_PATH_STATS_CAL_TYPE_PEF);
|
||||
HTT_RETURN_STRING(HTT_CTRL_PATH_STATS_CAL_TYPE_PADROOP);
|
||||
HTT_RETURN_STRING(HTT_CTRL_PATH_STATS_CAL_TYPE_SELFCALTPC);
|
||||
HTT_RETURN_STRING(HTT_CTRL_PATH_STATS_CAL_TYPE_RXSPUR);
|
||||
}
|
||||
|
||||
return (A_UINT8 *) "HTT_CTRL_PATH_STATS_CAL_TYPE_UNKNOWN";
|
||||
|
Reference in New Issue
Block a user