mbox series

[0/3] wifi: ath12k: Support transmit scheduler, pdev error and TQM htt_stats

Message ID 20240625042217.1303332-1-quic_rdevanat@quicinc.com
Headers show
Series wifi: ath12k: Support transmit scheduler, pdev error and TQM htt_stats | expand

Message

Roopni Devanathan June 25, 2024, 4:22 a.m. UTC
Add support to request HTT stats type 4, 5 and 6 from firmware. These
stats give transmit scheduler information, pdev error information and
TQM information respectively.

Depends-on: [PATCH v6 0/4] wifi: ath12k: Add support to enable debugfs_htt_stats
Link: https://lore.kernel.org/linux-wireless/20240624043845.3502520-4-quic_rgnanase@quicinc.com/T/

Dinesh Karthikeyan (3):
  wifi: ath12k: Support Transmit Scheduler stats
  wifi: ath12k: Support pdev error stats
  wifi: ath12k: Support TQM stats

 .../wireless/ath/ath12k/debugfs_htt_stats.c   | 784 ++++++++++++++++++
 .../wireless/ath/ath12k/debugfs_htt_stats.h   | 267 ++++++
 2 files changed, 1051 insertions(+)


base-commit: cac9bfd02678adbcca9a7dce770609b9f7434d37
prerequisite-patch-id: d01c8ec08d1c98d95876ca5eaca12993138536f3
prerequisite-patch-id: ca00fe5681f8f3a5e485700f3e8d32daa91f529b
prerequisite-patch-id: aa1475d182cf5cd996093ecf7645695decf9cf8b
prerequisite-patch-id: 7a864608c715dec904ed804a8df58e4674e30f21
prerequisite-patch-id: e60fe6bc8f57eba3d1461c74f659602912d820d5

Comments

Jeff Johnson June 25, 2024, 7:53 p.m. UTC | #1
On 6/24/2024 9:22 PM, Roopni Devanathan wrote:
> From: Dinesh Karthikeyan <quic_dinek@quicinc.com>
> 
> Add support to request transmission scheduler stats from firmware through
> HTT stats type 4. This stat gives information such as pdev stats
> scheduled per transmission queue, transmission queue command posted and
> reaped, scheduler order, scheduler ineligibility and supercycle triggers.
> 
> Sample output:
> -------------
> echo 4 > /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_STATS_TX_SCHED_CMN_TLV:
> mac_id = 0
> current_timestamp = 952546828
> 
> HTT_TX_PDEV_STATS_SCHED_PER_TXQ_TLV:
> mac_id = 0
> txq_id = 14
> sched_policy = 2
> .....
> 
> HTT_SCHED_TXQ_CMD_POSTED_TLV:
> sched_cmd_posted =  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
> 
> HTT_SCHED_TXQ_CMD_REAPED_TLV:
> sched_cmd_reaped =  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
> 
> HTT_SCHED_TXQ_SCHED_ORDER_SU_TLV:
> sched_order_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, 14:0, 15:0, 16:0, 17:0, 18:0, 19:0
> 
> HTT_SCHED_TXQ_SCHED_INELIGIBILITY:
> sched_ineligibility =  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, 14:0, 15:0, 16:0, 17:0, 18:0, 19:0, 20:0, 21:0,
> 22:0, 23:0, 24:0, 25:0, 26:0, 27:0, 28:0, 29:0, 30:0, 31:0, 32:0, 33:0,
> 34:0, 35:0
> 
> HTT_SCHED_TXQ_SUPERCYCLE_TRIGGER:
> supercycle_triggers =  0:0, 1:0, 2:0, 3:0, 4:0, 5:0, 6: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>
Jeff Johnson June 25, 2024, 7:53 p.m. UTC | #2
On 6/24/2024 9:22 PM, Roopni Devanathan wrote:
> From: Dinesh Karthikeyan <quic_dinek@quicinc.com>
> 
> Add support to request pdev TQM stats from firmware through HTT stats
> type 6. This stat type gives information such as TQM error, MPDU
> related information and TQM pdev stats.
> 
> Sample output:
> -------------
> echo 6 > /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_TQM_ERROR_STATS_TLV:
> q_empty_failure = 0
> q_not_empty_failure = 0
> add_msdu_failure = 0
> 
> TQM_ERROR_RESET_STATS:
> tqm_cache_ctl_err = 0
> tqm_soft_reset = 0
> tqm_reset_total_num_in_use_link_descs = 0
> .....
> 
> HTT_TX_TQM_GEN_MPDU_STATS_TLV:
> gen_mpdu_end_reason =  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, 14:0, 15:0, 16:0
> 
> HTT_TX_TQM_LIST_MPDU_STATS_TLV:
> list_mpdu_end_reason =  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
> 
> HTT_TX_TQM_LIST_MPDU_CNT_TLV_V:
> list_mpdu_cnt_hist =  0:0, 1:0, 2:0, 3:0, 4:0, 5:0, 6:0, 7:0, 8:0, 9:0
> 
> HTT_TX_TQM_PDEV_STATS_TLV_V:
> msdu_count = 0
> mpdu_count = 0
> remove_msdu = 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>