[PATCH 2/3] wifi: ath12k: Support pdev error stats
Jeff Johnson
quic_jjohnson at quicinc.com
Tue Jun 25 12:53:21 PDT 2024
On 6/24/2024 9:22 PM, Roopni Devanathan wrote:
> From: Dinesh Karthikeyan <quic_dinek at quicinc.com>
>
> Add support to request pdev error stats from firmware through HTT stats
> type 5. This stats type gives information such as list of pdev errors,
> reasons for reset, logging information about recovery, drain and war
> stats. etc.
>
> Sample output:
> -------------
> echo 5 > /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_HW_STATS_PDEV_ERRS_TLV:
> mac_id = 0
> tx_abort = 0
> tx_abort_fail_count = 0
> rx_abort = 53
> .....
>
> PDEV_PHY_WARM_RESET_REASONS:
> phy_warm_reset_reason_phy_m3 = 0
> phy_warm_reset_reason_tx_hw_stuck = 0
> phy_warm_reset_reason_num_cca_rx_frame_stuck = 0
> .....
>
> WAL_RX_RECOVERY_STATS:
> wal_rx_recovery_rst_mac_hang_count = 0
> wal_rx_recovery_rst_known_sig_count = 0
> wal_rx_recovery_rst_no_rx_count = 0
> .....
>
> HTT_RX_DEST_DRAIN_STATS:
> rx_dest_drain_rx_descs_leak_prevention_done = 0
> rx_dest_drain_rx_descs_saved_cnt = 0
> rx_dest_drain_rxdma2reo_leak_detected = 0
> .....
>
> HTT_HW_STATS_INTR_MISC_TLV:
> hw_intr_name = AMPI
> mask = 0
> count = 2
>
> HTT_HW_STATS_WHAL_TX_TLV:
> mac_id = 0
> last_unpause_ppdu_id = 0
> hwsch_unpause_wait_tqm_write = 0
> .....
>
> HTT_HW_WAR_STATS_TLV:
> mac_id = 0
> hw_war 0 = 0
> hw_war 1 = 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 at quicinc.com>
> Signed-off-by: Roopni Devanathan <quic_rdevanat at quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson at quicinc.com>
More information about the ath12k
mailing list