On 12/6/2024 5:33 AM, Lingbo Kong wrote: > Support to dump additional PDEV receive rate stats through HTT debugfs > stats type 30. > > Sample output: > ------------------ > echo 30 > /sys/kernel/debug/ath12k/pci-0000\:03\:00.0/mac0/htt_stats_type > cat /sys/kernel/debug/ath12k/pci-0000\:03\:00.0/mac0/htt_stats > HTT_RX_PDEV_RATE_EXT_STATS_TLV: > rssi_mgmt_in_dbm = -48 > rx_stbc_ext = 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 > ul_ofdma_rx_mcs_ext = 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 > rx_11ax_su_txbf_mcs_ext = 0:0, 1:0, 2:0, 3:0, 4:0, 5:9, 6:72, 7:41, 8:1, 9:0, 10:0, 11:0, 12:0, 13:0 > rx_11ax_mu_txbf_mcs_ext = 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 > rx_11ax_dl_ofdma_mcs_ext = 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 > rx_bw_ext = 0:1395, 1:0, 2:0, 3:0, 4:0 > rx_su_punctured_mode = 0:0, 1:0, 2:0, 3:0, 4:0 > rx_mcs_ext = 0:0, 1:0, 2:0, 3:0, 4:0, 5:14, 6:149, 7:44, 8:1, 9:0, 10:0, 11:0, 12:0, 13:0, 14:0, 15:0 > rx_gi_ext[0] = 0:0, 1:0, 2:0, 3:0, 4:0, 5:14, 6:149, 7:44, 8:1, 9:0, 10:0, 11:0, 12:0, 13:0 > rx_gi_ext[1] = 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 > rx_gi_ext[2] = 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 > rx_gi_ext[3] = 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 > ul_ofdma_rx_gi_ext[0] = 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 > ul_ofdma_rx_gi_ext[1] = 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 > ul_ofdma_rx_gi_ext[2] = 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 > ul_ofdma_rx_gi_ext[3] = 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: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Lingbo Kong <quic_lingbok@xxxxxxxxxxx> > Acked-by: Jeff Johnson <quic_jjohnson@xxxxxxxxxxx> ... > diff --git a/drivers/net/wireless/ath/ath12k/debugfs_htt_stats.h b/drivers/net/wireless/ath/ath12k/debugfs_htt_stats.h > index 65e95d1e04e5..57376307959f 100644 > --- a/drivers/net/wireless/ath/ath12k/debugfs_htt_stats.h > +++ b/drivers/net/wireless/ath/ath12k/debugfs_htt_stats.h > @@ -137,6 +137,7 @@ enum ath12k_dbg_htt_ext_stats_type { > ATH12K_DBG_HTT_EXT_STATS_PDEV_TX_MU = 17, > ATH12K_DBG_HTT_EXT_STATS_PDEV_CCA_STATS = 19, > ATH12K_DBG_HTT_EXT_STATS_PDEV_OBSS_PD_STATS = 23, > + ATH12K_DBG_HTT_EXT_STATS_PDEV_RX_RATE_EXT = 30, > ATH12K_DBG_HTT_EXT_STATS_DLPAGER_STATS = 36, > ATH12K_DBG_HTT_EXT_PHY_COUNTERS_AND_PHY_STATS = 37, > ATH12K_DBG_HTT_EXT_VDEVS_TXRX_STATS = 38, > @@ -201,6 +202,7 @@ enum ath12k_dbg_htt_tlv_tag { > HTT_STATS_HW_WAR_TAG = 89, > HTT_STATS_SCHED_TXQ_SUPERCYCLE_TRIGGER_TAG = 100, > HTT_STATS_PDEV_CTRL_PATH_TX_STATS_TAG = 102, > + HTT_STATS_RX_PDEV_RATE_EXT_STATS_TAG = 103, > HTT_STATS_TX_SELFGEN_AC_SCHED_STATUS_STATS_TAG = 111, > HTT_STATS_TX_SELFGEN_AX_SCHED_STATUS_STATS_TAG = 112, > HTT_STATS_DLPAGER_STATS_TAG = 120, both of those should used tab(s) to align the = to match the existing code