From patchwork Thu Feb 6 01:38:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karthikeyan Periyasamy X-Patchwork-Id: 862971 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 108E1BE49 for ; Thu, 6 Feb 2025 01:39:32 +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=1738805974; cv=none; b=OWLrOHYFITOovt73kTBqK9G2rINBWNljSu1yJddkcnd3Y8Z5sqqrKlzhA5wnfrMmj1o6Bono6i/q47od2f5wC33Jl3XnyvRGDONc4NZn7MyRRagqSugLwmjAY9avhVYZ8twlM6VDF5fhRnqzu2QxSOh9ud0Bi6eOpkbXnCFXBEU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738805974; c=relaxed/simple; bh=QzEzYcSftplUIhFleONA5VL4PmjcreyNOelFb5c9h1g=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=BYY0/DOE6BviWrisro9fYPEHGGzKXpizDa3fycl+Ls7wKolU74Uvpx7pRBMKMZ+aDJd8QUhkzCI4zc86i00SiEHzXedk7TFRA8ONk/zsGcAYxf1y0aJ9OoXozwkxiw9YmgRJga/qt1sEQm55q7mrbwywZPu2WVMzszPn1adZp38= 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=aDoVbf6k; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="aDoVbf6k" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 515GNjTC027031; Thu, 6 Feb 2025 01:39:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=ultex6AKGkfuO4aGfVVrUU GU3TEhgQVj/5NLiXk6QBQ=; b=aDoVbf6kcumPXyaVwgLY/pavVH4jpp+QEsLEsE /20Ec670/mTu5vF3xysRmgW6sB2N5bsj2SZasHuuGx1wXdgszIOY21xxnTjIwpK6 0oPz0c9h6meWH/StsoGq5iS4ShIsSx3/Df5iPHpBdioX15/674iPyHBoz+hT135X 2MD2gFklZEQxHRiYoYpbuWft/Z0wJ9zfRERLo9VIci4VIoIOCkEx4X550Dmwnvzs pJ8v4YJ5HlD+NpzaEJLYlPgqHNPWgWHyse6Su/cyP24RVBEKl4M82K6on2MjSLV4 kDeoVnh3+Pf380PMqQ4mdOfdKwsdxVTr6t9lUawc9m5OApsA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 44mbfh93ch-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Feb 2025 01:39:29 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 5161dSE1003606 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 6 Feb 2025 01:39:28 GMT Received: from hu-periyasa-blr.qualcomm.com (10.80.80.8) 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, 5 Feb 2025 17:39:27 -0800 From: Karthikeyan Periyasamy To: CC: , Karthikeyan Periyasamy Subject: [PATCH v9 0/9] wifi: ath12k: Add peer extended Rx statistics debugfs support Date: Thu, 6 Feb 2025 07:08:45 +0530 Message-ID: <20250206013854.174765-1-quic_periyasa@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 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: QlTZJmx4_IW92bXo4UzzKXdqLekvNGjE X-Proofpoint-ORIG-GUID: QlTZJmx4_IW92bXo4UzzKXdqLekvNGjE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-06_01,2025-02-05_03,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 clxscore=1015 mlxscore=0 adultscore=0 priorityscore=1501 impostorscore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 spamscore=0 mlxlogscore=881 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2501170000 definitions=main-2502060010 Currently, peer extended Rx statistics are not supported. Peer extended Rx statistics are collected form the TLV data reported in the monitor status Rx path. Therefore, add support for TLV tag parser handling and debugfs to configure and dump the collected information. Additionally, this series does not impact the WCN7850. v9: - updated the s-o-b as a last tag v8: - Resend due to missed patches v7: - Rebased on ToT v6: wifi: ath12k: Add HAL_PHYRX_GENERIC_U_SIG TLV parsing support wifi: ath12k: Add HAL_PHYRX_GENERIC_EHT_SIG TLV parsing support wifi: ath12k: Add HAL_RX_PPDU_START_USER_INFO TLV parsing support - modified the return type as void v5: Removed the patch "wifi: ath12k: Add EHT rate statistics support" since it is already merged v4: wifi: ath12k: Add peer extended Rx statistics debugfs support - fixed the kernel test robot noticed build errors v3: wifi: ath12k: Add peer extended Rx statistics debugfs support - avoid ext_rx_stats filter overwrite in default filter setting v2: wifi: ath12k: Add HAL_PHYRX_GENERIC_U_SIG TLV parsing support wifi: ath12k: Add HAL_PHYRX_GENERIC_EHT_SIG TLV parsing support - fixed the length calculation in the EHT radiotap procedure Balamurugan Mahalingam (2): wifi: ath12k: Add EHT MCS support in Extended Rx statistics wifi: ath12k: Refactor the format of peer rate table information Karthikeyan Periyasamy (6): wifi: ath12k: Add HAL_PHYRX_GENERIC_U_SIG TLV parsing support wifi: ath12k: Add HAL_PHYRX_GENERIC_EHT_SIG TLV parsing support wifi: ath12k: Add HAL_RX_PPDU_START_USER_INFO TLV parsing support wifi: ath12k: Add HAL_PHYRX_OTHER_RECEIVE_INFO TLV parsing support wifi: ath12k: Update the peer id in PPDU end user stats TLV wifi: ath12k: Add peer extended Rx statistics debugfs support P Praneesh (1): wifi: ath12k: fix the ampdu id fetch in the HAL_RX_MPDU_START TLV drivers/net/wireless/ath/ath12k/Makefile | 2 +- drivers/net/wireless/ath/ath12k/core.h | 10 +- drivers/net/wireless/ath/ath12k/debugfs.c | 97 ++ drivers/net/wireless/ath/ath12k/debugfs.h | 21 +- drivers/net/wireless/ath/ath12k/debugfs_sta.c | 337 ++++++ drivers/net/wireless/ath/ath12k/debugfs_sta.h | 24 + drivers/net/wireless/ath/ath12k/dp_mon.c | 1033 ++++++++++++++++- drivers/net/wireless/ath/ath12k/hal_rx.h | 433 ++++++- drivers/net/wireless/ath/ath12k/mac.c | 18 +- drivers/net/wireless/ath/ath12k/mac.h | 4 +- drivers/net/wireless/ath/ath12k/rx_desc.h | 9 - 11 files changed, 1924 insertions(+), 64 deletions(-) create mode 100644 drivers/net/wireless/ath/ath12k/debugfs_sta.c create mode 100644 drivers/net/wireless/ath/ath12k/debugfs_sta.h base-commit: d132a72d768bae74d10e6539fcf6522dfdbd1115