public inbox for ath12k@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/2] wifi: ath12k: Support Transmit Power Control Stats
@ 2024-12-20 20:36 Roopni Devanathan
  2024-12-20 20:36 ` [PATCH 1/2] wifi: ath12k: Add Support to Parse TPC Event from Firmware Roopni Devanathan
  2024-12-20 20:36 ` [PATCH 2/2] wifi: ath12k: Add Support to Calculate and Display TPC Values Roopni Devanathan
  0 siblings, 2 replies; 5+ messages in thread
From: Roopni Devanathan @ 2024-12-20 20:36 UTC (permalink / raw)
  To: ath12k; +Cc: linux-wireless, Roopni Devanathan

Add support to print Transmit Power Control Stats. Add support for basic
infrastructure necessary for enabling TPC stats via debugfs. This patch
series brings support to request stats type from firmware and dump the
corresponding stats.

Schema for an ath12k device:
ath12k
-- pci-0000:06:00.0
    -- mac0
        -- tpc_stats
        -- tpc_stats_type

Sample TPC logs:
*************** TPC config **************
* powers are in 0.25 dBm steps
reg domain-22           chan freq-5955
power limit-126         max reg-domain Power-252
No.of tx chain-4        No.of rates-1164
**************** SU WITH TXBF ****************
                                TPC values for Active chains
Rate idx Preamble Rate code     1-Chain 2-Chain 3-Chain 4-Chain
4        OFDM    0x000          39      15      1       -9
5        OFDM    0x001          39      15      1       -9
.....
12       HT20    0x200          40      16      2       -8
13       HT20    0x201          40      16      2       -8
.....
44       HT40    0x200          88      88      88      88
45       HT40    0x201          88      88      88      88
.....
76       VHT20   0x300          40      16      2       -8
77       VHT20   0x301          40      16      2       -8
.....
172      VHT40   0x300          88      88      88      88
173      VHT40   0x301          88      88      88      88
.....

Note:
MCC firmware version -
WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 does not print stats
because MCC firmware will not respond to the event passed from host,
resulting in timeout.

Sowmiya Sree Elavalagan (2):
  wifi: ath12k: Add Support to Parse TPC Event from Firmware
  wifi: ath12k: Add Support to Calculate and Display TPC Values

 drivers/net/wireless/ath/ath12k/core.h    |   5 +
 drivers/net/wireless/ath/ath12k/debugfs.c | 716 ++++++++++++++++++++++
 drivers/net/wireless/ath/ath12k/debugfs.h |  85 +++
 drivers/net/wireless/ath/ath12k/wmi.c     | 451 ++++++++++++++
 drivers/net/wireless/ath/ath12k/wmi.h     | 139 +++++
 5 files changed, 1396 insertions(+)


base-commit: 09fa3b6974a1245ddd0751747609431494ba5b4f
-- 
2.25.1



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-01-09  0:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-20 20:36 [PATCH 0/2] wifi: ath12k: Support Transmit Power Control Stats Roopni Devanathan
2024-12-20 20:36 ` [PATCH 1/2] wifi: ath12k: Add Support to Parse TPC Event from Firmware Roopni Devanathan
2024-12-21 22:56   ` kernel test robot
2025-01-09  0:10   ` Jeff Johnson
2024-12-20 20:36 ` [PATCH 2/2] wifi: ath12k: Add Support to Calculate and Display TPC Values Roopni Devanathan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox