ath10k: Extended the HTT stats support to retrieve Mu-MIMO related stats
PATCH 1/2 ath10k: Extended the HTT stats support to retrieve Mu-MIMO related stats
Extended the bit mask value of the HTT stats to get the Mu-MIMO related stats via tracing.
--- drivers/net/wireless/ath/ath10k/debug.c | 4 ++-- drivers/net/wireless/ath/ath10k/htt.h | 3 ++- drivers/net/wireless/ath/ath10k/htt_tx.c | 8 ++++---- 3 files changed, 8 insertions(+), 7 deletions(-)
drivers/net/wireless/ath/ath10k/debug.c +2 -2
@@ -922,8 +922,8 @@ static ssize_t ath10k_write_htt_stats_mask(struct file *file,if (ret)return ret; -/* max 8 bit masks (for now) */ -if (mask >0xff ) +/* max 17 bit masks (for now) */ +if (mask >HTT_STATS_BIT_MASK )return -E2BIG ;mutex_lock (&ar->conf_mutex);
drivers/net/wireless/ath/ath10k/htt.h +2 -1
@@ -315,6 +315,7 @@ struct htt_stats_req { } __packed;#define HTT_STATS_REQ_CFG_STAT_TYPE_INVALID 0xff +#define HTT_STATS_BIT_MASK GENMASK(16, 0)/* * htt_oob_sync_req - request out-of-band sync
@@ -2109,7 +2110,7 @@ void ath10k_htt_htc_tx_complete(struct ath10k *ar, struct sk_buff *skb);void ath10k_htt_htc_t2h_msg_handler (struct ath10k *ar,struct sk_buff *skb);bool ath10k_htt_t2h_msg_handler (struct ath10k *ar,struct sk_buff *skb);int ath10k_htt_h2t_ver_req_msg (struct ath10k_htt *htt); -int ath10k_htt_h2t_stats_req (struct ath10k_htt *htt,u8 mask,u64 cookie); +int ath10k_htt_h2t_stats_req (struct ath10k_htt *htt,u32 mask,u64 cookie);int ath10k_htt_h2t_aggr_cfg_msg (struct ath10k_htt *htt,u8 max_subfrms_ampdu,u8 max_subfrms_amsdu);
drivers/net/wireless/ath/ath10k/htt_tx.c +4 -4
@@ -580,7 +580,7 @@ int ath10k_htt_h2t_ver_req_msg(struct ath10k_htt *htt)return 0 ; } -int ath10k_htt_h2t_stats_req (struct ath10k_htt *htt,u8 mask,u64 cookie) +int ath10k_htt_h2t_stats_req (struct ath10k_htt *htt,u32 mask,u64 cookie) {struct ath10k *ar = htt->ar;struct htt_stats_req *req;
@@ -603,11 +603,11 @@ int ath10k_htt_h2t_stats_req(struct ath10k_htt *htt, u8 mask, u64 cookie)memset (req,0 ,sizeof (*req)); -/* currently we support only max 8 bit masks so no need to worry +/* currently we support only max 24 bit masks so no need to worry * about endian support */ - req->upload_types[0 ] = mask; - req->reset_types[0 ] = mask; +memcpy (req->upload_types, &mask,3 ); +memcpy (req->reset_types, &mask,3 ); req->stat_type =HTT_STATS_REQ_CFG_STAT_TYPE_INVALID ; req->cookie_lsb =cpu_to_le32 (cookie &0xffffffff ); req->cookie_msb =cpu_to_le32 ((cookie &0xffffffff00000000ULL ) >>32 );
Signature · 7 lines
2.20.1 _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
PATCH 2/2 ath10k: Added support to reset HTT stats in debugfs
Reset HTT stats helps to get the aggregated HTT stats via tracing and also we can clear the accumulated HTT stats with this debugfs file.
--- drivers/net/wireless/ath/ath10k/core.h | 1 + drivers/net/wireless/ath/ath10k/debug.c | 43 +++++++++++++++++++++++- drivers/net/wireless/ath/ath10k/htt.h | 3 +- drivers/net/wireless/ath/ath10k/htt_tx.c | 5 +-- 4 files changed, 48 insertions(+), 4 deletions(-)
drivers/net/wireless/ath/ath10k/core.h +1 -0
@@ -614,6 +614,7 @@ struct ath10k_debug {bool fw_stats_done;unsigned long htt_stats_mask; +unsigned long reset_htt_stats;struct delayed_work htt_stats_dwork;struct ath10k_dfs_stats dfs_stats;struct ath_dfs_pool_stats dfs_pool_stats;
drivers/net/wireless/ath/ath10k/debug.c +42 -1
61 lines not on this page · raw message
drivers/net/wireless/ath/ath10k/htt.h +2 -1
@@ -2110,7 +2110,8 @@ void ath10k_htt_htc_tx_complete(struct ath10k *ar, struct sk_buff *skb);void ath10k_htt_htc_t2h_msg_handler (struct ath10k *ar,struct sk_buff *skb);bool ath10k_htt_t2h_msg_handler (struct ath10k *ar,struct sk_buff *skb);int ath10k_htt_h2t_ver_req_msg (struct ath10k_htt *htt); -int ath10k_htt_h2t_stats_req (struct ath10k_htt *htt,u32 mask,u64 cookie); +int ath10k_htt_h2t_stats_req (struct ath10k_htt *htt,u32 mask,u32 reset_mask, +u64 cookie);int ath10k_htt_h2t_aggr_cfg_msg (struct ath10k_htt *htt,u8 max_subfrms_ampdu,u8 max_subfrms_amsdu);
drivers/net/wireless/ath/ath10k/htt_tx.c +3 -2
@@ -580,7 +580,8 @@ int ath10k_htt_h2t_ver_req_msg(struct ath10k_htt *htt)return 0 ; } -int ath10k_htt_h2t_stats_req (struct ath10k_htt *htt,u32 mask,u64 cookie) +int ath10k_htt_h2t_stats_req (struct ath10k_htt *htt,u32 mask,u32 reset_mask, +u64 cookie) {struct ath10k *ar = htt->ar;struct htt_stats_req *req;
@@ -607,7 +608,7 @@ int ath10k_htt_h2t_stats_req(struct ath10k_htt *htt, u32 mask, u64 cookie)* about endian support */ memcpy (req->upload_types, &mask,3 ); -memcpy (req->reset_types, &mask,3 ); +memcpy (req->reset_types, &reset_mask,3 ); req->stat_type =HTT_STATS_REQ_CFG_STAT_TYPE_INVALID ; req->cookie_lsb =cpu_to_le32 (cookie &0xffffffff ); req->cookie_msb =cpu_to_le32 ((cookie &0xffffffff00000000ULL ) >>32 );
Signature · 7 lines
2.20.1 _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 5 lines · Maharaja Kennadyrajan
Extended the bit mask value of the HTT stats to get the Mu-MIMO related stats via tracing.
Signed-off-by Maharaja Kennadyrajan <[email protected]>Signed-off-by Kalle Valo <[email protected]>
2 patches applied to ath-next branch of ath.git, thanks.
14bf9217d66d ath10k: Extended the HTT stats support to retrieve Mu-MIMO related stats 473a4084e19e ath10k: Added support to reset HTT stats in debugfs
Signature · 3 lines
https://patchwork.kernel.org/patch/10831589/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 5 lines · Maharaja Kennadyrajan
Extended the bit mask value of the HTT stats to get the Mu-MIMO related stats via tracing.
Signed-off-by Maharaja Kennadyrajan <[email protected]>Signed-off-by Kalle Valo <[email protected]>
2 patches applied to ath-next branch of ath.git, thanks.
14bf9217d66d ath10k: Extended the HTT stats support to retrieve Mu-MIMO related stats 473a4084e19e ath10k: Added support to reset HTT stats in debugfs
Signature · 9 lines
https://patchwork.kernel.org/patch/10831589/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k