From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 036A0D59F7F for ; Thu, 7 Nov 2024 00:11:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:CC:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=damgw+Bf8uGSXKkWfnnqM2dTnYB/vd7zUhhcxG8IJDw=; b=OfIpyKbZdaB4dBfhbiMO8WwLV0 IfLFpwwR9oMrFx0fo5VkbxP9A8Rs1qRk+AyrcGkSmJobqxUFZG+20Ns67hqraJ0RwL7qoeNp4tZab Wtjuc71kVjt4vqHlyIuJz5K72yawmNEkwx32jY7YDVGjrI06zU5B3ueUujjffXsltRgpIPeNklSnI ID2Cy/2nOi0TePzGshtG1LCS55ypJgk6m6Ix2/tQruaPhWJFetz90kkf6gCtCglPQcaFcNcZxupsu dCM1yOpDyraCOg+R3yWrbf6oSEXYkB69vz8kt8d4/IT9nNn943e1ar9QFmbMW44lu5hsTGniO7gBQ vsIRCjVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t8q7W-000000058Lp-33M1 for ath12k@archiver.kernel.org; Thu, 07 Nov 2024 00:11:30 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t8q7U-000000058LM-17eS for ath12k@lists.infradead.org; Thu, 07 Nov 2024 00:11:29 +0000 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4A6NOO2q003708; Thu, 7 Nov 2024 00:11:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= damgw+Bf8uGSXKkWfnnqM2dTnYB/vd7zUhhcxG8IJDw=; b=MLfSS7BA7q3GkMkz Qt4kZjcktRkGCkMaR2Skqt0JB05MaZP+jrSLsFRKILrtugFhgPGBRWqJtRaSB4Wa Rm89JxalBmuBwva2qJXMgWSGygJpdDHsLs0kfUTwPdy7NzAK5w+wmKlcQEkt5uzK ++UO7WvR0NFnQLx8xoGOyqESxIsUQgXsuNGkersMIaNnk8Kwg1BZH7qfh1RoHiHe 2jpnKyFZ2dWS6It6M7WtqvtkXZc/hrX1D8P4K4gKAct8D5YaD6GwAbdpC79DK1ed 1xq+GXD2v5KSwWonCHBfFATI2CK/YgAFvM8O+FUomJdMdCoJ5sGLzL5sqZxukenD BuxCrg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 42qhbudg6c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 07 Nov 2024 00:11:25 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4A70BG1d006322 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 7 Nov 2024 00:11:16 GMT Received: from [10.48.242.250] (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Wed, 6 Nov 2024 16:11:15 -0800 Message-ID: Date: Wed, 6 Nov 2024 16:11:15 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 2/4] wifi: ath12k: Support phy counter and TPC stats To: Roopni Devanathan , CC: , Dinesh Karthikeyan References: <20241106044548.3530128-1-quic_rdevanat@quicinc.com> <20241106044548.3530128-3-quic_rdevanat@quicinc.com> From: Jeff Johnson Content-Language: en-US In-Reply-To: <20241106044548.3530128-3-quic_rdevanat@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: yqPoY-2mFerOtfH8nOLF7z-ZF6ndgkIk X-Proofpoint-GUID: yqPoY-2mFerOtfH8nOLF7z-ZF6ndgkIk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxlogscore=999 clxscore=1015 priorityscore=1501 adultscore=0 bulkscore=0 suspectscore=0 phishscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2411070000 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241106_161128_462689_AF211AF1 X-CRM114-Status: UNSURE ( 9.09 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath12k@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath12k" Errors-To: ath12k-bounces+ath12k=archiver.kernel.org@lists.infradead.org On 11/5/2024 8:45 PM, Roopni Devanathan wrote: > From: Dinesh Karthikeyan > > Add support to request counters and Transmission Power Control > (TPC) stats through HTT stats type 37. These stats give > information about counters like received packet count, CRC pass > count, error count, transmit abort count, etc., about counter reset > like reset cause, channel frequency, number and mode, channel flags, > etc., about TPC like transmit power scale, maximum transmit power, > gain cap, EIRP, etc. > > Note: MCC firmware version - > WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 does not > support HTT stats type 37, i.e., the firmware does not respond to the > command requesting stats. > > Sample output: > ------------- > echo 37 > /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_PHY_STATS_TLV: > bdf_nf_chain[0] = -92 > bdf_nf_chain[1] = -94 > bdf_nf_chain[2] = -94 > bdf_nf_chain[3] = -93 > ..... > > HTT_PHY_COUNTERS_TLV: > rx_ofdma_timing_err_cnt = 18068 > rx_cck_fail_cnt = 0 > mactx_abort_cnt = 2612 > macrx_abort_cnt = 0 > ..... > > HTT_PHY_RESET_STATS_TLV: > pdev_id = 0 > chan_mhz = 0 > chan_band_center_freq1 = 0 > chan_band_center_freq2 = 0 > ..... > > HTT_PHY_RESET_COUNTERS_TLV: > pdev_id = 0 > cf_active_low_fail_cnt = 0 > cf_active_low_pass_cnt = 0 > phy_off_through_vreg_cnt = 0 > ..... > > HTT_PHY_TPC_STATS_TLV: > pdev_id = 0 > tx_power_scale = 0 > tx_power_scale_db = 0 > min_negative_tx_power = 0 > ..... > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Dinesh Karthikeyan > Signed-off-by: Roopni Devanathan Acked-by: Jeff Johnson