qcacmn: Add EHT debug counter on PPDU

Add debug count to count PPDU based on UL/DL and type compression
mode

Change-Id: I2b320e6562d309cc0a178a137162ab0499c81e58
CRs-Fixed: 3326278
This commit is contained in:
Kai Chen
2022-10-20 15:15:42 -07:00
committed by Madan Koyyalamudi
부모 21ba9eb74b
커밋 9cb6199f70
4개의 변경된 파일80개의 추가작업 그리고 4개의 파일을 삭제

파일 보기

@@ -1579,6 +1579,33 @@ dp_rx_mu_stats_update(
+= rx_user_status->mpdu_cnt_fcs_err;
}
static inline void
dp_rx_he_ppdu_stats_update(
struct cdp_pdev_mon_stats *stats,
struct hal_rx_u_sig_info *u_sig
)
{
stats->ppdu_eht_type_mode[u_sig->ppdu_type_comp_mode][u_sig->ul_dl]++;
}
static inline void
dp_rx_he_ppdu_stats(struct dp_pdev *pdev, struct hal_rx_ppdu_info *ppdu_info)
{
struct dp_mon_pdev *mon_pdev;
struct cdp_pdev_mon_stats *rx_mon_stats;
mon_pdev = pdev->monitor_pdev;
rx_mon_stats = &mon_pdev->rx_mon_stats;
if (ppdu_info->u_sig_info.ppdu_type_comp_mode < CDP_EHT_TYPE_MODE_MAX &&
ppdu_info->u_sig_info.ul_dl < CDP_MU_TYPE_MAX)
dp_rx_he_ppdu_stats_update(
rx_mon_stats,
&ppdu_info->u_sig_info);
else
qdf_assert(0);
}
static inline void
dp_rx_mu_stats(struct dp_pdev *pdev, struct hal_rx_ppdu_info *ppdu_info)
{
@@ -1608,6 +1635,9 @@ dp_rx_mu_stats(struct dp_pdev *pdev, struct hal_rx_ppdu_info *ppdu_info)
dp_rx_mu_stats_update(ppdu_info, rx_mon_stats, preamble_type,
reception_type, mu_dl_ul, i);
}
if (rx_status->eht_flags)
dp_rx_he_ppdu_stats(pdev, ppdu_info);
}
static inline uint32_t

파일 보기

@@ -926,6 +926,49 @@ dp_print_pdev_mpdu_pkt_type(struct cdp_pdev_mon_stats *rx_mon_sts)
dp_print_pdev_mpdu_rx_type(rx_mon_sts, pkt_t);
}
static inline void
print_ppdu_eht_type_mode(
struct cdp_pdev_mon_stats *rx_mon_stats,
uint32_t ppdu_type_mode,
uint32_t dl_ul)
{
DP_PRINT_STATS("type_mode=%d, dl_ul=%d, cnt=%d",
ppdu_type_mode,
dl_ul,
rx_mon_stats->ppdu_eht_type_mode[ppdu_type_mode][dl_ul]);
}
static inline void
print_ppdu_eth_type_mode_dl_ul(
struct cdp_pdev_mon_stats *rx_mon_stats,
uint32_t ppdu_type_mode
)
{
uint32_t dl_ul;
for (dl_ul = 0; dl_ul < CDP_MU_TYPE_MAX; dl_ul++) {
if (rx_mon_stats->ppdu_eht_type_mode[ppdu_type_mode][dl_ul])
print_ppdu_eht_type_mode(rx_mon_stats,
ppdu_type_mode, dl_ul);
}
}
static inline void
dp_print_pdev_eht_ppdu_cnt(struct dp_pdev *pdev)
{
struct cdp_pdev_mon_stats *rx_mon_stats;
struct dp_mon_pdev *mon_pdev = pdev->monitor_pdev;
uint32_t ppdu_type_mode;
rx_mon_stats = &mon_pdev->rx_mon_stats;
DP_PRINT_STATS("Monitor EHT PPDU Count");
for (ppdu_type_mode = 0; ppdu_type_mode < CDP_EHT_TYPE_MODE_MAX;
ppdu_type_mode++) {
print_ppdu_eth_type_mode_dl_ul(rx_mon_stats,
ppdu_type_mode);
}
}
static inline void
dp_print_pdev_mpdu_stats(struct dp_pdev *pdev)
{
@@ -1033,6 +1076,7 @@ dp_print_pdev_rx_mon_stats(struct dp_pdev *pdev)
dp_mon_rx_print_advanced_stats(pdev->soc, pdev);
dp_print_pdev_mpdu_stats(pdev);
dp_print_pdev_eht_ppdu_cnt(pdev);
}