From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f0Tkf-0002Lp-GW for ath10k@lists.infradead.org; Mon, 26 Mar 2018 15:09:42 +0000 MIME-Version: 1.0 Subject: Re: [v2] ath10k: debugfs support to get final TPC stats for 10.4 variants From: Kalle Valo In-Reply-To: <1519634437-6672-1-git-send-email-mkenna@codeaurora.org> References: <1519634437-6672-1-git-send-email-mkenna@codeaurora.org> Message-Id: <20180326150927.3EFAA607DD@smtp.codeaurora.org> Date: Mon, 26 Mar 2018 15:09:27 +0000 (UTC) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ath10k" Errors-To: ath10k-bounces+kvalo=adurom.com@lists.infradead.org To: mkenna@codeaurora.org Cc: linux-wireless@vger.kernel.org, ath10k@lists.infradead.org mkenna@codeaurora.org wrote: > Export the final Transmit Power Control (TPC) value, which is the > minimum of control power and existing TPC value to user space via > a new debugfs file "tpc_stats_final" to help with debugging. > It works with the new wmi cmd and event introduced in 10.4 firmware > branch. > > WMI command ID: WMI_PDEV_GET_TPC_TABLE_CMDID > WMI event ID: WMI_PDEV_TPC_TABLE_EVENTID > > cat /sys/kernel/debug/ieee80211/phyX/ath10k/tpc_stats_final > > $ cat /sys/kernel/debug/ieee80211/phyX/ath10k/tpc_stats_final > > TPC config for channel 5180 mode 10 > > CTL = 0x 0 Reg. Domain = 58 > Antenna Gain = 0 Reg. Max Antenna Gain = 0 > Power Limit = 60 Reg. Max Power = 60 > Num tx chains = 2 Num supported rates = 109 > > ******************* CDD POWER TABLE **************** > > No. Preamble Rate_code tpc_value1 tpc_value2 tpc_value3 > 0 CCK 0x40 0 0 > 1 CCK 0x41 0 0 > [...] > 107 HTCUP 0x 0 46 46 > 108 HTCUP 0x 0 46 46 > > ******************* STBC POWER TABLE **************** > > No. Preamble Rate_code tpc_value1 tpc_value2 tpc_value3 > 0 CCK 0x40 0 0 > 1 CCK 0x41 0 0 > [...] > 107 HTCUP 0x 0 46 46 > 108 HTCUP 0x 0 46 46 > > *********************************** > TXBF not supported > ********************************** > > The existing tpc_stats debugfs file provides the dump > which is minimum of target power and regulatory domain. > > cat /sys/kernel/debug/ieee80211/phyX/ath10k/tpc_stats > > Hardware_used: QCA4019 > Firmware version: firmware-5.bin_10.4-3.0-00209 > > Signed-off-by: Maharaja Kennadyrajan > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. bc64d05220f3 ath10k: debugfs support to get final TPC stats for 10.4 variants -- https://patchwork.kernel.org/patch/10241601/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k