On 11/14/2024 10:28 PM, Roopni Devanathan wrote: > From: Dinesh Karthikeyan <quic_dinek@xxxxxxxxxxx> > > Add support to request downlink pager stats from firmware through HTT > stats type 36. These stats give paging information like number of pages, > their timestamp, number of locked and free pages, synchronous and > asynchronous locked pages. > > Note: MCC firmware version - > WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 responds to > the event requesting stats, but it does not give any data. > > Sample output: > ------------- > echo 36 > /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_DLPAGER_STATS_TLV: > ASYNC locked pages = 2 > SYNC locked pages = 0 > Total locked pages = 2 > Total free pages = 127 > > LOCKED PAGES HISTORY > last_locked_page_idx = 0 > Index - 0 ; Page Number - 8495 ; Num of pages - 1 ; Timestamp - 4031009360us > Index - 1 ; Page Number - 7219 ; Num of pages - 2 ; Timestamp - 885379515us > Index - 2 ; Page Number - 0 ; Num of pages - 0 ; Timestamp - 0us > Index - 3 ; Page Number - 0 ; Num of pages - 0 ; Timestamp - 0us > ..... > UNLOCKED PAGES HISTORY > last_unlocked_page_idx = 0 > Index - 0 ; Page Number - 7144 ; Num of pages - 2 ; Timestamp - 4032070008us > Index - 1 ; Page Number - 7214 ; Num of pages - 2 ; Timestamp - 885379512us > Index - 2 ; Page Number - 0 ; Num of pages - 0 ; Timestamp - 0us > Index - 3 ; Page Number - 0 ; Num of pages - 0 ; Timestamp - 0us > ..... > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Dinesh Karthikeyan <quic_dinek@xxxxxxxxxxx> > Signed-off-by: Roopni Devanathan <quic_rdevanat@xxxxxxxxxxx> Acked-by: Jeff Johnson <quic_jjohnson@xxxxxxxxxxx>