Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp538316lqt; Thu, 6 Jun 2024 10:30:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWT3v7UAQ0g9voRo+DogHVr9Hg2jvukNG4BgL4aV7vTTy3i9P0LYQzXjj/gDpTTrbCDdHV55fegcZtyQnvUantAJCXaXaz/v2iRQM3m5A== X-Google-Smtp-Source: AGHT+IFXIan1Co5XCTUwitw53JqHD7s4HTnbdVzCkq214MfMOcRp0cpycj33Kr+1DGrJq9TVqLZr X-Received: by 2002:a05:6a21:2725:b0:1ae:3359:a2de with SMTP id adf61e73a8af0-1b2c5714e12mr3978464637.28.1717695052192; Thu, 06 Jun 2024 10:30:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717695052; cv=pass; d=google.com; s=arc-20160816; b=Rp83UTntw7AlMz0fzJ4iGSJIDI3mgVa0gDAwhn9hF6mOBXWLcN2g6r4ZRKcJ7E2gov cY0u+UX/gfXSxK/qN5LTrzqLIUqpTqjiYXwE+sBcPcmvFbH+5fufK2xQmcYk1tmdlWVI Mv+juFTmaD6AyvE7g2cx+KG4c9CZKB8O6cHrZSujavjDickJdT3DdUdnwzvRwOBK4rv4 Lid/AxZaV0cYNARBoO3h79+qoMyMhBDzuGM0SbA73dMJjgxpmrmS0hoI7JwlH+GvX6g0 v/sOAi8/ZtEsJwuhCu20setoy8llKONXkgoO/ZfWDvddpMfqLi4oDNqb+9F2kduBNO+0 C61g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=td1JCc+xR83J1CfZP9yAbQ9iUkPKoTjfs56I+wfuRkY=; fh=ahnNA3bdEYEGdZowhCrl2GwpmB5YgwPjxOeWKZ8+8Lw=; b=GVJ+zBxbfBM7yp4g86m2ZOWJ+C695Fav6+gAF2dnICPrItNO/PfKK+n0uKlY/5de0A hqLT0B9iLs++BxhO20F7g+Ti5MLw+qX5ljccfSVUMrLRzA/HCvKjRZWbNBpE66iiAewS PROYvTrmfO5RZb3gmdxZq4cYsKeOI9H6HY6qyRDyY6PdTkRxWBaR/ogyiaSWbfLb19HV yOjoX7tCg8P7hwU6B0ebLXwmh4Lns/ryu/bUhA46bXgzl/F9kTeQJbaxzHHrIRw/R4jT pxa/vf47s6+xS3TRDP4Ix+mqQIFOmM9cBRyxEvT/g/OWKrNLTMF6hTMb6s4sWtZEHWv6 +uhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=gNt6XkIw; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-8630-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8630-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2ae0ed50si1486481a12.858.2024.06.06.10.30.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 10:30:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8630-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=gNt6XkIw; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-8630-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8630-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0A9B8B237B3 for ; Thu, 6 Jun 2024 16:44:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 413681F171; Thu, 6 Jun 2024 16:44:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="gNt6XkIw" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B867B1CAA9 for ; Thu, 6 Jun 2024 16:44:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717692254; cv=none; b=t9r84oKbozJ+8xdl8Vtu7jS6tdtgJYLgYFSQ/bWpY36lSgjzU8U57KwbOAO3fxdEtHterDu5yML1mcCoFbAHIxg02/v0G2cM8CYaMJa9/7y/UsGKhxEAM5PW/7Tegw9rOmWstMIP95bQ3TQAtUrB3ZyNBE/usIWAK54fvSB35QM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717692254; c=relaxed/simple; bh=9Obw2X5qISUvJC/MrgJALmW/a94TzVizNNNufWa3hBk=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=PaFtfHlvLxiea/dTT/ze87AzrTKUFU97iNAm2SpwOnBD1ktnqaGRFVTxxOYInL5WdXKfEcjlOcxnNgfxCUUe9I6WKnsEm3HmJihZIbuk8YiB4nwfB1hTJHJnUNSKBTIm7L/PuJ5leiV3fRm7j6KAINYx0BBKd2eMcqqZawB847g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=gNt6XkIw; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com 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 456AMfZL031654; Thu, 6 Jun 2024 16:44:07 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= td1JCc+xR83J1CfZP9yAbQ9iUkPKoTjfs56I+wfuRkY=; b=gNt6XkIwZ0Mkr2HC CebQzn1y7B/MM+CcWL+xPTt0LOp4Up6cohJJluxeJLcHhByyGMIRJo7e1pW/Ki1w KZeuQW43ixn21usK7dnboTCZUj7uRFiwWHHtcyc2udgo8h90kvTxmPOx3QoTjiV7 nsg7LyQ7kB1GUDrNqBBs5Bc+mDW3MmyXNGjUD6JZuVYRD3EKPStiIIVs/EPMjAl4 bFvVd9MJFkBZdMRi+3/3yuCVCJ3sbAUhn4HM01UeE8pLpbTR0rElPAuIoH5iZ9hI RnMEFry6LAprBEUKrTH4wTWqSkWTep2f1FbknW8HGVcSMf9sC/25NFbiUEFpW6vX turW4A== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yjk89c8sw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jun 2024 16:44:07 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 456Gi6VC018319 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 6 Jun 2024 16:44:06 GMT Received: from [10.48.241.109] (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; Thu, 6 Jun 2024 09:44:05 -0700 Message-ID: <6bdebf58-1bae-4a8d-b804-fdb0e0557364@quicinc.com> Date: Thu, 6 Jun 2024 09:44:04 -0700 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 5/5] wifi: ath12k: Dump additional Tx PDEV HTT stats Content-Language: en-US To: Ramya Gnanasekar , CC: References: <20240603044214.960261-1-quic_rgnanase@quicinc.com> <20240603044214.960261-6-quic_rgnanase@quicinc.com> From: Jeff Johnson In-Reply-To: <20240603044214.960261-6-quic_rgnanase@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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-GUID: wO3hOHu4CRrClsCoZRudqOfjQZEzOh4G X-Proofpoint-ORIG-GUID: wO3hOHu4CRrClsCoZRudqOfjQZEzOh4G X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-06_13,2024-06-06_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 impostorscore=0 phishscore=0 mlxscore=0 bulkscore=0 adultscore=0 malwarescore=0 priorityscore=1501 clxscore=1015 suspectscore=0 mlxlogscore=890 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406060119 On 6/2/2024 9:42 PM, Ramya Gnanasekar wrote: > Support to dump additional Tx PDEV stats through HTT stats debugfs. > Following stats dump are supported: > 1. PDEV control path stat to dump Tx management frame count > 2. Tx PDEV SIFS histogram stats > 3. Tx MU MIMO PPDU stats for 802.11ac, 802.11ax and 802.11be again have a new comment in this patch > +static inline void > +ath12k_htt_print_tx_pdev_mu_ppdu_dist_stats_tlv(const void *tag_buf, u16 tag_len, > + struct debug_htt_stats_req *stats_req) > +{ > + const struct ath12k_htt_tx_pdev_mu_ppdu_dist_stats_tlv *htt_stats_buf = tag_buf; > + char *mode; > + u8 j, hw_mode, i, str_buf_len; > + u8 *buf = stats_req->buf; > + u32 len = stats_req->buf_len; > + u32 buf_len = ATH12K_HTT_STATS_BUF_SIZE; > + u32 stats_value; > + u8 max_ppdu = ATH12K_HTT_STATS_MAX_NUM_MU_PPDU_PER_BURST; > + u8 max_sched = ATH12K_HTT_STATS_MAX_NUM_SCHED_STATUS; > + char str_buf[ATH12K_HTT_MAX_STRING_LEN]; > + > + if (tag_len < sizeof(struct ath12k_htt_tx_pdev_mu_ppdu_dist_stats_tlv)) sizeof(*htt_stats_buf) is preferred > + return;