Message ID | 20241106044548.3530128-1-quic_rdevanat@quicinc.com |
---|---|
Headers | show |
Series | wifi: ath12k: Support Pager, Counter, SoC, Transmit Rate Stats | expand |
On 11/5/2024 8:45 PM, Roopni Devanathan wrote: > From: Dinesh Karthikeyan <quic_dinek@quicinc.com> > > Add support to request counters and Transmission Power Control > (TPC) stats through HTT stats type 37. These stats give > information about counters like received packet count, CRC pass > count, error count, transmit abort count, etc., about counter reset > like reset cause, channel frequency, number and mode, channel flags, > etc., about TPC like transmit power scale, maximum transmit power, > gain cap, EIRP, etc. > > Note: MCC firmware version - > WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 does not > support HTT stats type 37, i.e., the firmware does not respond to the > command requesting stats. > > Sample output: > ------------- > echo 37 > /sys/kernel/debug/ath12k/pci-0000\:06\:00.0/mac0/htt_stats_type > cat /sys/kernel/debug/ath12k/pci-0000\:06\:00.0/mac0/htt_stats > HTT_PHY_STATS_TLV: > bdf_nf_chain[0] = -92 > bdf_nf_chain[1] = -94 > bdf_nf_chain[2] = -94 > bdf_nf_chain[3] = -93 > ..... > > HTT_PHY_COUNTERS_TLV: > rx_ofdma_timing_err_cnt = 18068 > rx_cck_fail_cnt = 0 > mactx_abort_cnt = 2612 > macrx_abort_cnt = 0 > ..... > > HTT_PHY_RESET_STATS_TLV: > pdev_id = 0 > chan_mhz = 0 > chan_band_center_freq1 = 0 > chan_band_center_freq2 = 0 > ..... > > HTT_PHY_RESET_COUNTERS_TLV: > pdev_id = 0 > cf_active_low_fail_cnt = 0 > cf_active_low_pass_cnt = 0 > phy_off_through_vreg_cnt = 0 > ..... > > HTT_PHY_TPC_STATS_TLV: > pdev_id = 0 > tx_power_scale = 0 > tx_power_scale_db = 0 > min_negative_tx_power = 0 > ..... > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Dinesh Karthikeyan <quic_dinek@quicinc.com> > Signed-off-by: Roopni Devanathan <quic_rdevanat@quicinc.com> Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
On 11/5/2024 8:45 PM, Roopni Devanathan wrote: > From: Dinesh Karthikeyan <quic_dinek@quicinc.com> > > Add support to request per rate stats through HTT stats type > 40. These stats give information about rates of PPDUs and > MPDUs for single user and for OFDMA and MUMIMO technologies > corresponding to multiple users. > > Sample output: > ------------- > echo 40 > /sys/kernel/debug/ath12k/pci-0000\:06\:00.0/mac0/htt_stats_type > cat /sys/kernel/debug/ath12k/pci-0000\:06\:00.0/mac0/htt_stats > HTT_TX_PER_STATS: > > PER_STATS_SU: > > PER per BW: > ppdus_tried_su = 0:0 1:0 2:0 3:0 4:0 > ppdus_ack_failed_su = 0:0 1:0 2:0 3:0 4:0 > mpdus_tried_su = 0:0 1:0 2:0 3:0 4:0 > mpdus_failed_su = 0:0 1:0 2:0 3:0 4:0 > > PER per NSS: > ppdus_tried_su = 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0 > ppdus_ack_failed_su = 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0 > mpdus_tried_su = 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0 > mpdus_failed_su = 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0 > > PER per MCS: > ppdus_tried_su = 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:0 9:0 10:0 11:0 12:0 13:0 > ppdus_ack_failed_su = 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:0 9:0 10:0 11:0 12:0 13:0 > mpdus_tried_su = 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:0 9:0 10:0 11:0 12:0 13:0 > mpdus_failed_su = 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:0 9:0 10:0 11:0 12:0 13:0 > ..... > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 > > Signed-off-by: Dinesh Karthikeyan <quic_dinek@quicinc.com> > Signed-off-by: Roopni Devanathan <quic_rdevanat@quicinc.com> Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
On 11/5/2024 8:45 PM, Roopni Devanathan wrote: > Add support to request HTT stats type 36, 37, 38 and 40 from firmware. > These stat types give downlink pager stats, counter and TPC stats, SoC > common stats and Transmit PER rate stats, respectively. > > v4: > - Addressed Jeff's comments pertaining to data type conversions. > v3: > - Added macros to fix compilation issues. > v2: > - Removed dependencies. No change in code. > > Dinesh Karthikeyan (4): > wifi: ath12k: Support Downlink Pager Stats > wifi: ath12k: Support phy counter and TPC stats > wifi: ath12k: Support SoC Common Stats > wifi: ath12k: Support Transmit PER Rate Stats > > .../wireless/ath/ath12k/debugfs_htt_stats.c | 630 +++++++++++++++++- > .../wireless/ath/ath12k/debugfs_htt_stats.h | 204 +++++- > 2 files changed, 831 insertions(+), 3 deletions(-) > > > base-commit: d63fbff74ab1af1573c1dca20cfe1e876f8ffa62 I acked 2-4/4. I can fix 1/4 in pending so no need to spin v5
On 11/5/2024 8:45 PM, Roopni Devanathan wrote: > Add support to request HTT stats type 36, 37, 38 and 40 from firmware. > These stat types give downlink pager stats, counter and TPC stats, SoC > common stats and Transmit PER rate stats, respectively. > > v4: > - Addressed Jeff's comments pertaining to data type conversions. > v3: > - Added macros to fix compilation issues. > v2: > - Removed dependencies. No change in code. > > Dinesh Karthikeyan (4): > wifi: ath12k: Support Downlink Pager Stats > wifi: ath12k: Support phy counter and TPC stats > wifi: ath12k: Support SoC Common Stats > wifi: ath12k: Support Transmit PER Rate Stats > > .../wireless/ath/ath12k/debugfs_htt_stats.c | 630 +++++++++++++++++- > .../wireless/ath/ath12k/debugfs_htt_stats.h | 204 +++++- > 2 files changed, 831 insertions(+), 3 deletions(-) > > > base-commit: d63fbff74ab1af1573c1dca20cfe1e876f8ffa62 when I build this series with W=1 drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c: In function 'ath12k_htt_print_dlpager_entry': drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c:2582:13: warning: variable 'ts_hi' set but not used [-Wunused-but-set-variable] drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c:2581:13: warning: variable 'ts_lo' set but not used [-Wunused-but-set-variable] I can remove these locally in 'pending' if there are no other issues. /jeff
On 11/6/2024 4:15 PM, Jeff Johnson wrote: > On 11/5/2024 8:45 PM, Roopni Devanathan wrote: >> Add support to request HTT stats type 36, 37, 38 and 40 from firmware. >> These stat types give downlink pager stats, counter and TPC stats, SoC >> common stats and Transmit PER rate stats, respectively. >> >> v4: >> - Addressed Jeff's comments pertaining to data type conversions. >> v3: >> - Added macros to fix compilation issues. >> v2: >> - Removed dependencies. No change in code. >> >> Dinesh Karthikeyan (4): >> wifi: ath12k: Support Downlink Pager Stats >> wifi: ath12k: Support phy counter and TPC stats >> wifi: ath12k: Support SoC Common Stats >> wifi: ath12k: Support Transmit PER Rate Stats >> >> .../wireless/ath/ath12k/debugfs_htt_stats.c | 630 +++++++++++++++++- >> .../wireless/ath/ath12k/debugfs_htt_stats.h | 204 +++++- >> 2 files changed, 831 insertions(+), 3 deletions(-) >> >> >> base-commit: d63fbff74ab1af1573c1dca20cfe1e876f8ffa62 > I acked 2-4/4. I can fix 1/4 in pending so no need to spin v5 > Please check the fixup of the 1/4 patch: https://git.kernel.org/pub/scm/linux/kernel/git/ath/ath.git/commit/?h=pending&id=e97a15b67f1417e36d799aaa1f15e3a362293475