From: Kalle Valo <kvalo@kernel.org>
To: Thiraviyam Mariyappan <quic_tmariyap@quicinc.com>
Cc: <ath11k@lists.infradead.org>, <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] ath11k: add wmi ctrl path stats
Date: Fri, 03 Jun 2022 11:23:18 +0300 [thread overview]
Message-ID: <87czfqnojt.fsf@kernel.org> (raw)
In-Reply-To: <165424060628.24941.10656719779515709897.kvalo@kernel.org> (Kalle Valo's message of "Fri, 3 Jun 2022 07:16:49 +0000 (UTC)")
Kalle Valo <kvalo@kernel.org> writes:
> Thiraviyam Mariyappan <quic_tmariyap@quicinc.com> wrote:
>
>> Currently, ath11k HTT debugfs uses the HTT interface to send stats request
>> to target and response from target. Here HTT interface already overloaded
>> with the data path stats. To reduce the load from HTT, using WMI interface
>> to print the control path stats. This patch come up with framework for
>> control path stats using wmi interface.
>> For now, this framework supports PDEV_STAT and further stats will be
>> added.
>>
>> WMI control path stats command and results are below:
>> echo <stats_id> <action> >
>> sys/kernel/debug/ieee80211/phy3/netdev\:wlan3/wmi_ctrl_stats
>> cat sys/kernel/debug/ieee80211/phy3/netdev\:wlan3/wmi_ctrl_stats
>> stats_id:
>> 1 -> WMI_REQ_CTRL_PATH_PDEV_STATS
>> action:
>> 1 -> stats get
>> 2 -> stats reset
>>
>> WMI_CTRL_PATH_PDEV_STATS:
>> req_id = 26
>> fw_tx_mgmt_subtype = 0:0, 1:0, 2:0, 3:0, 4:0, 5:109, 6:0, 7:0, 8:344, ...
>> fw_rx_mgmt_subtype = 0:0, 1:0, 2:0, 3:0, 4:0, 5:0, 6:0, 7:0, 8:0, 9:0, ...
>> scan_fail_dfs_violation_time_ms = 0
>> nol_chk_fail_last_chan_freq = 0
>> nol_chk_fail_time_stamp_ms = 0
>> tot_peer_create_cnt = 2
>> tot_peer_del_cnt = 1
>> tot_peer_del_resp_cnt = 1
>> vdev_pause_fail_rt_to_sched_algo_fifo_full_cnt = 0
>>
>> Tested-on: WLAN.HK.2.5.0.1-00517-QCAHKSWPL_SILICONZ-1
>>
>> Signed-off-by: Thiraviyam Mariyappan <quic_tmariyap@quicinc.com>
>> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
>
> This added new warnings:
>
> drivers/net/wireless/ath/ath11k/debugfs.c:1600: line length of 92 exceeds 90 columns
> drivers/net/wireless/ath/ath11k/debugfs.c:1666: line length of 93 exceeds 90 columns
> drivers/net/wireless/ath/ath11k/wmi.c:2702: line length of 94 exceeds 90 columns
> drivers/net/wireless/ath/ath11k/wmi.c:2703: line length of 97 exceeds 90 columns
> drivers/net/wireless/ath/ath11k/wmi.c:7037: line length of 97 exceeds 90 columns
> drivers/net/wireless/ath/ath11k/wmi.c:7085: line length of 97 exceeds 90 columns
>
> I fixed them in the pending branch. But in the future please use ath11k-check.
>
> There was one way too long field:
>
> u32 vdev_pause_fail_rt_to_sched_algo_fifo_full_cnt;
>
> I renamed that to:
>
> u32 vdev_pause_fail_rt;
>
> In ath11k_wmi_send_wmi_ctrl_stats_cmd() the error handling was unnecessarily
> using else branch which caused long lines, I fixed that by avoiding else
> branches.
>
> Also I saw some other things, like calling kzalloc() in variable declarations,
> but I will look at them in detail later.
>
> Here's what I did now:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=28bc80a6a9c675fdc7003934a9493d9e95570f5f
And in my regression testing with WCN6855 I see new warnings:
[ 422.555328] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 434.892534] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 447.169512] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 459.707762] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 472.078881] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 484.371612] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 496.663938] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 508.928868] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 521.310941] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 533.859349] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 575.072067] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 594.171473] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 617.581248] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 637.003411] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 656.153840] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 675.210066] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 694.594334] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 714.122679] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 733.506719] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
--
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
WARNING: multiple messages have this Message-ID (diff)
From: Kalle Valo <kvalo@kernel.org>
To: Thiraviyam Mariyappan <quic_tmariyap@quicinc.com>
Cc: <ath11k@lists.infradead.org>, <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] ath11k: add wmi ctrl path stats
Date: Fri, 03 Jun 2022 11:23:18 +0300 [thread overview]
Message-ID: <87czfqnojt.fsf@kernel.org> (raw)
In-Reply-To: <165424060628.24941.10656719779515709897.kvalo@kernel.org> (Kalle Valo's message of "Fri, 3 Jun 2022 07:16:49 +0000 (UTC)")
Kalle Valo <kvalo@kernel.org> writes:
> Thiraviyam Mariyappan <quic_tmariyap@quicinc.com> wrote:
>
>> Currently, ath11k HTT debugfs uses the HTT interface to send stats request
>> to target and response from target. Here HTT interface already overloaded
>> with the data path stats. To reduce the load from HTT, using WMI interface
>> to print the control path stats. This patch come up with framework for
>> control path stats using wmi interface.
>> For now, this framework supports PDEV_STAT and further stats will be
>> added.
>>
>> WMI control path stats command and results are below:
>> echo <stats_id> <action> >
>> sys/kernel/debug/ieee80211/phy3/netdev\:wlan3/wmi_ctrl_stats
>> cat sys/kernel/debug/ieee80211/phy3/netdev\:wlan3/wmi_ctrl_stats
>> stats_id:
>> 1 -> WMI_REQ_CTRL_PATH_PDEV_STATS
>> action:
>> 1 -> stats get
>> 2 -> stats reset
>>
>> WMI_CTRL_PATH_PDEV_STATS:
>> req_id = 26
>> fw_tx_mgmt_subtype = 0:0, 1:0, 2:0, 3:0, 4:0, 5:109, 6:0, 7:0, 8:344, ...
>> fw_rx_mgmt_subtype = 0:0, 1:0, 2:0, 3:0, 4:0, 5:0, 6:0, 7:0, 8:0, 9:0, ...
>> scan_fail_dfs_violation_time_ms = 0
>> nol_chk_fail_last_chan_freq = 0
>> nol_chk_fail_time_stamp_ms = 0
>> tot_peer_create_cnt = 2
>> tot_peer_del_cnt = 1
>> tot_peer_del_resp_cnt = 1
>> vdev_pause_fail_rt_to_sched_algo_fifo_full_cnt = 0
>>
>> Tested-on: WLAN.HK.2.5.0.1-00517-QCAHKSWPL_SILICONZ-1
>>
>> Signed-off-by: Thiraviyam Mariyappan <quic_tmariyap@quicinc.com>
>> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
>
> This added new warnings:
>
> drivers/net/wireless/ath/ath11k/debugfs.c:1600: line length of 92 exceeds 90 columns
> drivers/net/wireless/ath/ath11k/debugfs.c:1666: line length of 93 exceeds 90 columns
> drivers/net/wireless/ath/ath11k/wmi.c:2702: line length of 94 exceeds 90 columns
> drivers/net/wireless/ath/ath11k/wmi.c:2703: line length of 97 exceeds 90 columns
> drivers/net/wireless/ath/ath11k/wmi.c:7037: line length of 97 exceeds 90 columns
> drivers/net/wireless/ath/ath11k/wmi.c:7085: line length of 97 exceeds 90 columns
>
> I fixed them in the pending branch. But in the future please use ath11k-check.
>
> There was one way too long field:
>
> u32 vdev_pause_fail_rt_to_sched_algo_fifo_full_cnt;
>
> I renamed that to:
>
> u32 vdev_pause_fail_rt;
>
> In ath11k_wmi_send_wmi_ctrl_stats_cmd() the error handling was unnecessarily
> using else branch which caused long lines, I fixed that by avoiding else
> branches.
>
> Also I saw some other things, like calling kzalloc() in variable declarations,
> but I will look at them in detail later.
>
> Here's what I did now:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=28bc80a6a9c675fdc7003934a9493d9e95570f5f
And in my regression testing with WCN6855 I see new warnings:
[ 422.555328] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 434.892534] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 447.169512] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 459.707762] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 472.078881] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 484.371612] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 496.663938] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 508.928868] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 521.310941] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 533.859349] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 575.072067] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 594.171473] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 617.581248] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 637.003411] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 656.153840] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 675.210066] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 694.594334] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 714.122679] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
[ 733.506719] debugfs: File 'wmi_ctrl_stats' in directory 'netdev:wlan0' already present!
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
next prev parent reply other threads:[~2022-06-03 8:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-02 13:33 [PATCH] ath11k: add wmi ctrl path stats Thiraviyam Mariyappan
2022-06-02 13:33 ` Thiraviyam Mariyappan
2022-06-03 7:16 ` Kalle Valo
2022-06-03 7:16 ` Kalle Valo
2022-06-03 8:23 ` Kalle Valo [this message]
2022-06-03 8:23 ` Kalle Valo
2022-09-22 8:20 ` Kalle Valo
2022-09-22 8:20 ` Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87czfqnojt.fsf@kernel.org \
--to=kvalo@kernel.org \
--cc=ath11k@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=quic_tmariyap@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.