[PATCH 3/3] wifi: ath12k: Request pdev stats from firmware

Aditya Kumar Singh aditya.kumar.singh at oss.qualcomm.com
Fri Jan 24 21:27:22 PST 2025


On 1/25/25 00:23, Ramya Gnanasekar wrote:
> Add support to request pdev stats from firmware through WMI and
> print the information
> 
> Sample Output:
> -------------
> cat /sys/kernel/debug/ath12k/pci-0000\:06\:00.0/mac0/fw_stats/pdev_stats
> 
>               ath12k PDEV stats
>               =================
> 
>             Channel noise floor        -85
>                Channel TX power        126
>                  TX frame count          0
>                  RX frame count       8637
>                  RX clear count      37424
>                     Cycle count    4372024
>                 PHY error count          0
>                  soc drop count          0
> 
>            ath12k PDEV TX stats
>            ====================
> 
>              HTT cookies queued          0
>               HTT cookies disp.          0
>                     MSDU queued          0
>                     MPDU queued          0
>                   MSDUs dropped          0
>                    Local enqued          0
>                     Local freed          0
>                       HW queued          0
>                    PPDUs reaped          0
>                   Num underruns          0
>                   PPDUs cleaned          0
>                  MPDUs requeued          0
>               Excessive retries          0
>                         HW rate          0
>             Sched self triggers          0
>       Dropped due to SW retries          0
>         Illegal rate phy errors          0
>          PDEV continuous xretry          0
>                      TX timeout          9
>                     PDEV resets          0
>   Stateless TIDs alloc failures          0
>                    PHY underrun          0
>    MPDU is more than txop limit          0
> 
>            ath12k PDEV RX stats
>            ====================
> 
>           Mid PPDU route change          0
>         Tot. number of statuses          0
>          Extra frags on rings 0          0
>          Extra frags on rings 1          0
>          Extra frags on rings 2          0
>          Extra frags on rings 3          0
>          MSDUs delivered to HTT          0
>          MPDUs delivered to HTT          0
>        MSDUs delivered to stack          0
>        MPDUs delivered to stack          0
>                 Oversized AMSUs          0
>                      PHY errors          0
>                PHY errors drops          0
>     MPDU errors (FCS, MIC, ENC)          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.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3
> 
> Signed-off-by: Ramya Gnanasekar<ramya.gnanasekar at oss.qualcomm.com>
> ---

Reviewed-by: Aditya Kumar Singh <aditya.kumar.singh at oss.qualcomm.com>

-- 
Aditya



More information about the ath12k mailing list