Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1518698lqa; Mon, 29 Apr 2024 10:38:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXSH09pPzgI3J6pWCS+lcHMnz1N+8J1N1C40++fx4rF3JKI6QTxUlpA6HGz6zFSua9VMUusI14aBsM/jq2jy2pXOl9UsUEWOFg+lBZDA== X-Google-Smtp-Source: AGHT+IGNibd5TvmZr2p7kSG8Mr2HXmmOhG0j1JZtRQa0EoAdaBZJ3i3U7RdkQ7ecUtLW6jjLX1Hm X-Received: by 2002:a05:6214:d45:b0:6a0:b3cc:ee06 with SMTP id 5-20020a0562140d4500b006a0b3ccee06mr342056qvr.37.1714412322240; Mon, 29 Apr 2024 10:38:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714412322; cv=pass; d=google.com; s=arc-20160816; b=uwhaKaOijviiO1/AOSCxwvld01H7Cg4Cg27Dc/RDiN8yCpU4b/hIJ8gLScAPIQHP6B viHtgWXLlgN2ZYwAiIuiEy5A04Ys3oZXyIPijBWehGSrHq0M78lNBY/Wkq/owFCX8d1W 5yCJ/jiDMgN2Fi9dcuqKOaclLrTisCkiFjOX78PCO3qS0tIHLOM8beWRFEmdv10cLq4U JOqgmuXrPf5cz/HOXbwac+t2q0/e7UwjKg4xdgUQV8eMaqXIRJJvs4oByAvAvT/Uk15r Lo28kKY4olSpjGgE0tcPP1T7kNZJk9QP6JXcBQQLQ64ztykxp8FJBga1Ek9HXVmzuX5m WxNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=zDslRiKG30+N4HJXGjof7AUIBxgayl4YlcmyzHS+1YM=; fh=8JfDQlpUjKMrwFSvSU4A2C1GR8rVM1mF1CGTl2hgXQg=; b=fE5OaHSE6wQQ2Q7PgWFEPCyXJU/Bl4LRnG2n2/fXvzehanMHk6yfQenIWvD3Xnhy1Q 5TEKwF5jESyC8FLXP0ACJpiivY15XXpjLjLTrFy+nIP84AmJEDLXEQhi8Y7u2xOjCbjq RCCuOGezHtkyAhTdKtCni08oO6UOo66klTrI9G3qBp+K4ZGSQvw2BqvjXJnJlIBk2tZv jVfu7RPJSPOH/VQLeZNL0JBSi7j3Z8va/85WqTYaFV9gLDf60r0xAWQ0tTNt47e5W96Z PVSguqO8L3aS1aKdAw8BZGKipLp/+8sXiMbH1D69dyNMDnmicEEuXb5PMJdcJ7Up96zc pCwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=nDOxaLnj; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-6996-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6996-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id kd5-20020a056214400500b0069b1e21c5fesi26479021qvb.70.2024.04.29.10.38.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 10:38:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6996-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=nDOxaLnj; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-6996-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6996-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DE5CD1C21082 for ; Mon, 29 Apr 2024 17:38:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C6BA126F02; Mon, 29 Apr 2024 17:38:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="nDOxaLnj" 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 A5D098627D for ; Mon, 29 Apr 2024 17:38:37 +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=1714412319; cv=none; b=gLTP17WDC0vtcsxRbY+kfgwsE4n2yvSXJs40OiV6ohNtVAgkgp+Qpcuj679QoleHHkCcHzrllFpYXra8DEA9Tv8EC4bF/wKroq3MclzJy+KARJi5uh8jOUNheq5fU1VvbUrvz4XAj+Sad03aA89icNYCbQWeywHrA/EoIYM4GLE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714412319; c=relaxed/simple; bh=r/+9LqIUt/M9dh5+10LY+J//y9W5X0tN+LnC14C5PUo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=gLT+LfSw/DSSlaDaClp8nxcFSb+y7I9PLtg/F9ctjnmytzvSPZ3y4ijA+pHuqfjGgEUqReVF3dq0npyDKGmXEHe01lYQMYsNeZWWUhEQTuEyV38M6eI45bcTwaP+Zd6otIdFmROHuEzk7/Z29gkjqUnxRJP5Zi6v6Fl/adLF4P4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=nDOxaLnj; 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=qualcomm.com Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43THOj4F009535; Mon, 29 Apr 2024 17:38:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=qcppdkim1; bh=zDslRiKG30+N4HJXGjof 7AUIBxgayl4YlcmyzHS+1YM=; b=nDOxaLnjrkGmlYT2aX+zSPvCUQ+clBre3Mk6 cOLD5zHmLoD4qZbdBUOp/HA44fVmX4AeHISHCHl7XK0Ag8K5boCIRNr+1QTOLDsg CCFtpkU0jEk82GJWJAIJ5O7SANoJ6Y8Lq6+9V7ZD0fnx8GckcpbPplSpdUJjOd9h cdZZqtzTiTF6PxSA11OQvsGsd6JsX13JO/GI1cRUNT27EQo72/dn65aKF+euYem7 r34Nc5/IfoBI/qZNse9Vpytuvq2kOMCiyz5wjkRp/hwGR0KjFQ3smfk/eqyDN3DX 4JUiYOnEG8KfuaBTekXOGw7JQ/sYmx+sTu20zrlqVLYCui/gHQ== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xt5xkaym5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Apr 2024 17:38:33 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 43THcR8C032224; Mon, 29 Apr 2024 17:38:27 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 3xrtekh4xy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Apr 2024 17:38:27 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 43THcRlu032195; Mon, 29 Apr 2024 17:38:27 GMT Received: from hu-devc-blr-u22-a.qualcomm.com (hu-rgnanase-blr.qualcomm.com [10.190.106.79]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 43THcRTH032184 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Apr 2024 17:38:27 +0000 Received: by hu-devc-blr-u22-a.qualcomm.com (Postfix, from userid 2378837) id 493874111F; Mon, 29 Apr 2024 23:08:26 +0530 (+0530) From: Ramya Gnanasekar To: ath12k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Ramya Gnanasekar Subject: [PATCH 0/4] wifi: ath12k: Add support to enable debugfs_htt_stats Date: Mon, 29 Apr 2024 23:08:21 +0530 Message-Id: <20240429173825.2369355-1-quic_rgnanase@quicinc.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: GW0b4pYCtKr_bESMSqCl4dNJzRd_UlTu X-Proofpoint-GUID: GW0b4pYCtKr_bESMSqCl4dNJzRd_UlTu X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-29_15,2024-04-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 mlxscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 spamscore=0 suspectscore=0 priorityscore=1501 phishscore=0 mlxlogscore=899 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404290113 Bring in the basic infrastructure necessary for enabling htt_stats via debugfs. Patch series bring support to request stats type to firmware, dump the stats and request to reset the stats from firmware. Schema with one ath12k device: ath12k `-- pci-0000:06:00.0 |-- mac0 `-- htt_stats |-- htt_stats_type |-- htt_stats_reset Dinesh Karthikeyan (3): wifi: ath12k: Add support to enable debugfs_htt_stats wifi: ath12k: Add htt_stats_dump file ops support wifi: ath12k: Add support to parse requested stats_type Ramya Gnanasekar (1): wifi: ath12k: Dump additional Tx PDEV HTT stats drivers/net/wireless/ath/ath12k/Makefile | 2 +- drivers/net/wireless/ath/ath12k/core.h | 11 + drivers/net/wireless/ath/ath12k/debugfs.c | 3 + .../wireless/ath/ath12k/debugfs_htt_stats.c | 713 ++++++++++++++++++ .../wireless/ath/ath12k/debugfs_htt_stats.h | 300 ++++++++ drivers/net/wireless/ath/ath12k/dp_rx.c | 10 +- drivers/net/wireless/ath/ath12k/dp_rx.h | 4 + 7 files changed, 1038 insertions(+), 5 deletions(-) create mode 100644 drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c create mode 100644 drivers/net/wireless/ath/ath12k/debugfs_htt_stats.h base-commit: 326f8f68f28b0b831233acfabffb486a5b0f4717 -- 2.34.1