[PATCH v3 1/4] wifi: ath12k: Support Downlink Pager Stats
Jeff Johnson
quic_jjohnson at quicinc.com
Tue Nov 5 14:49:25 PST 2024
On 11/4/2024 8:54 PM, Roopni Devanathan wrote:
> From: Dinesh Karthikeyan <quic_dinek at quicinc.com>
>
> 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.
...
> +static void ath12k_htt_print_dlpager_entry(const struct ath12k_htt_pgs_info *pg_info,
> + int idx, char *str_buf)
> +{
> + u32 ts_lo;
> + u32 ts_hi;
> + unsigned long long page_timestamp;
> + u16 index = 0;
> +
> + ts_lo = le32_to_cpu(pg_info->ts_lsb);
> + ts_hi = le32_to_cpu(pg_info->ts_msb);
> + page_timestamp = ((unsigned long long)ts_hi) << 32 | ts_lo;
use u64 and ath12k_le32hilo_to_u64(pg_info->ts_msb, pg_info->ts_lsb)?
> +
> + index += snprintf(&str_buf[index], ATH12K_HTT_MAX_STRING_LEN - index,
> + "Index - %u ; Page Number - %u ; ",
> + idx, le32_to_cpu(pg_info->page_num));
> + index += snprintf(&str_buf[index], ATH12K_HTT_MAX_STRING_LEN - index,
> + "Num of pages - %u ; Timestamp - %lluus\n",
> + le32_to_cpu(pg_info->num_pgs), page_timestamp);
> +}
More information about the ath12k
mailing list