Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp277778lqo; Thu, 9 May 2024 22:08:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUiKxnQv+hURS1noOMNYYrQFl5/m3YzSHZY0io3bL+Wm5Ld2OuFliEYvrsy/T7xfP5KcXJ6OhFXTcU8rnAR/LIXixBfTuFkO/K72bADaA== X-Google-Smtp-Source: AGHT+IFzjDL4yEM3glL66DbVotZC2uhympJh/K2bnHBdyhcFsp/U8QG98MlGFcLTtIJfpYqO/y2b X-Received: by 2002:a05:6512:2030:b0:518:b93f:b5a0 with SMTP id 2adb3069b0e04-5220fc7be2amr1248299e87.22.1715317710126; Thu, 09 May 2024 22:08:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715317710; cv=pass; d=google.com; s=arc-20160816; b=FmTT3DkkzLGkhttBlN4DqqN+6RsMp2yUQaffAz2Aus09e9kff1rpslhew8dKLSeWgS +nm79wtWzGbXEDKeE7gRpsT4YfjxED/HPXx68iyvAPtsM1lnHV+k7IJaiycvQt3UCRz4 QD9iUBgSYqYR/WwSpDMcdtC7xVyV21pDWGSHRNcQ2Yl+AW0FvzWsSpis5fBSRWjtoIp/ 8kfokuXM6apGITGit4H0T0VGWk1hxyixLLsuQbggW08yMYHeWfBVzxSLIPd8MEsR/kEb HjAtU0t0GlI9Abz1GL1XQLJd1MLp8yuUZWDOtC239pycWupD/rrdvpT4nNEPxscfECYl T2kQ== 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=fsu9WMZe6SKTBEZTTDGdITecpC4SZQYUNKWCx0s+5YQ=; fh=8JfDQlpUjKMrwFSvSU4A2C1GR8rVM1mF1CGTl2hgXQg=; b=DEGLmiiaYJXEnGKMrgmaPKcEUqQP/kpB60qzj+d/XWdVWUuV/3a3J8nUEiYvRbtZK9 NYkRYajFxfPLR3ktlvi67ImgE61k2w60HG+9u3d4YXIwAryfs3TNSpH7bFgLYXLE+7GT MOeY0x8lqmD3X6CiNjoNjxpeHmmZrGR8fuG6s1dSvdn4kX4zvAcdk/QZ5abF9xgZ0QYH p2R1Q0F29IQ+itCv8mR/3+0gj3wsg2S5IEGq+twWwVslNBeM1+Yyfff5Fzw0Y643TrJ9 fS05GLA8J+yW+j437nIVyhkUbRoDtO3eUuGG7hBxhlAHlWICH5Sytubhof0JSOMCrB4z k+iA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Ug+RaHOe; 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-7421-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7421-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c2d52e2si1459139a12.226.2024.05.09.22.08.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 22:08:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7421-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Ug+RaHOe; 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-7421-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7421-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C76291F21F7C for ; Fri, 10 May 2024 05:08:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E53AB14D716; Fri, 10 May 2024 05:08:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Ug+RaHOe" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 656BA20309 for ; Fri, 10 May 2024 05:08:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715317704; cv=none; b=QnWaEWXgGB6F5NLfMzEGKjv5fpJKjCl+8ZH6SnTCQ31r29E1mebJOEeduLcLEFePLDtOFarIuuSTfeloLanS8XeeqMQAzU7dz6XWe1vJ3gPLbmikQJ7/X0UWgq1KXcbfdE/Q9nj589WpIIpk5wu/gcwQe+3QOvudDBfisEqTyMU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715317704; c=relaxed/simple; bh=G/xNM5zvPLS/l3w0pbhTKNmyLogv0uILSVxkBdqrrqk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Ab5M4yZGDDMlqxcEngJ4UqyGs/Q/jn4LyUFBw+6jR2LN3zP7HDN7DrfeQodkXHwYqdPyO/+YP8LYxEFPEW9fRXWMtWoA7lqpU8t94DtnghnEMgMtIiX9UGvIzC44sMWup2tFOcABaXf1HPEPjynqWujZOYG21P9YzZ5HvQ5UPGE= 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=Ug+RaHOe; arc=none smtp.client-ip=205.220.168.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 (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44A2tgjI028327; Fri, 10 May 2024 05:08:14 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=fsu9WMZe6SKTBEZTTDGd ITecpC4SZQYUNKWCx0s+5YQ=; b=Ug+RaHOeoY9aiDbNa9XYuW5XD5DNlJEqhNjr e2nBgNkGeaVoQy7tGkJGhEQ368WOqHWUsI0Wkr5N+X/V09FhazfyFmwAoLefcS7o HHmyO8imE5JIxZXQC01G5OAHuEvyBA4zoIJEMOCZUbs0rwM3224cEh/4Za5TEUHX RKz9BZU1FtBJmXCUL87n09U3v2SwwmUN7eIQXRFoxU/qoJjKWQM/FcBM0Esizzzz XLaBj5HcFxr1Pf6lAuccTx8GJDLMGRh50KCGAQAiCmSVfh7Nihrd0Eca5nDU6GNh d1eKXIs/3pBcGbbrvKXYV7ztVsyHYKhte1mExFJxshikkJ/Idg== 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 3y16w0rkvg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 May 2024 05:08:13 +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 44A58AXD031844; Fri, 10 May 2024 05:08:10 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 3xwe3krc4w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 May 2024 05:08:10 +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 44A58AMR031803; Fri, 10 May 2024 05:08:10 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 44A58AQj031796 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 May 2024 05:08:10 +0000 Received: by hu-devc-blr-u22-a.qualcomm.com (Postfix, from userid 2378837) id 0613C4110C; Fri, 10 May 2024 10:38:09 +0530 (+0530) From: Ramya Gnanasekar To: ath12k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Ramya Gnanasekar Subject: [PATCH v2 0/5] wifi: ath12k: Add support to enable debugfs_htt_stats Date: Fri, 10 May 2024 10:38:01 +0530 Message-Id: <20240510050806.514126-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-GUID: yC-GPtX-YE4MvifuS-o10pn9nfggIu9T X-Proofpoint-ORIG-GUID: yC-GPtX-YE4MvifuS-o10pn9nfggIu9T X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-10_03,2024-05-10_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0 mlxlogscore=999 clxscore=1015 suspectscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 bulkscore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405100034 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 Lingbo Kong (1): wifi: ath12k: Fix Pdev id in HTT stats request for WCN7850 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 | 714 ++++++++++++++++++ .../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 + drivers/net/wireless/ath/ath12k/dp_tx.c | 8 +- drivers/net/wireless/ath/ath12k/mac.c | 61 ++ drivers/net/wireless/ath/ath12k/mac.h | 3 + 10 files changed, 1110 insertions(+), 6 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: 1025c616ee13372f3803b158abb1d87ef368ae3d -- 2.34.1 --- v2: - Handled pdev id sent in HTT stats request command for WCN7850 Added changes as a separate patch #3 - Tested in WCN7850 and added Tested-on tag - Rebased on ToT ---