Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp4352lqj; Wed, 10 Apr 2024 01:50:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXPTB04IpRxhlBqRwmo3juNP1T6+eZmM4w/crtZn7hz3LxXLokHkO4jZ8U/G34w1wyckUpkfjo8Zv9FtrKldAhYsatWS2LJ5BKjA3VOlw== X-Google-Smtp-Source: AGHT+IH98PSIo2WQNoEL7UHxgwN8J0/wtX9zQjLjhyf/l0AmpqnJ76Ufhmck/3B27uVdKEBRBkLV X-Received: by 2002:a17:902:e548:b0:1e0:b9d0:f6b with SMTP id n8-20020a170902e54800b001e0b9d00f6bmr2172312plf.68.1712739023539; Wed, 10 Apr 2024 01:50:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712739023; cv=pass; d=google.com; s=arc-20160816; b=Kh/gUHX6/BzjbbTB0oAmUm8vrNgDnyP2qTWRpS1okNIkZPCZqLRo/6jqI7xJGO2izD wBieRkl1Yp519ocdHRD2bOYguEr1OtdrEiP1GrCbcQYsaL8mbylkOgFz4b4VW+0aV6dG HBrFC5hdZKnGOFhBRFLUAW1JY3rPruYSzjWueoFk8lExz/3w0He0mcjHPLnyCLIB6+7+ Cuy21hMf1VpJIBE9kRWTrjocnXiDE/c7yWfzAd6F4Prin+Q5nWwThvUOSloLmbYSo1HJ f1UzHMMuUn90JWWkcuQw1DhhbNwtK0EtbaFKIqBdplbyOAgWRjSgVJRr9UzFyRujAOxz 02ZQ== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=PGV7WjLYhT2xFvjYvosxufQsQ61p1QLmZahYYx6DGDA=; fh=YxWtQG6onp0Io4stqhVFsMEWLttTtQjzuOFoxoSKpRU=; b=hx5lyfIjxR9y/xPtSLVq7ns+QD3ZuGKKgabRQe0lTG/f3puWKCy8PFXEK2usVjFunL wLMd/OjMRSJGp1uNRql5toi6JVtFkYCbNLAaH9LHqJTtw1WsMLVcUFAo8WSxGHd31ito sJaPLngB8Els3b30JEATT1/S3fVig/tQMCtrdnMZBA20gqs8+9BykOCmuOnCezkPu4Z2 vHut6YlFfQ/l6JxLT2OhSDxTE4Uk6MF6xsk2yUg0UuRSmtx2q82JnYWbSQOJg4j0ubwO zBsxBoNyN47hsLsEiA1Z8k1ueW5cMxBzQt2/o3y+FCVHgOQZgXnHe/ZcDkCeMuv18FfK v0ng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=nVVtTss+; 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-6076-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6076-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e6-20020a17090301c600b001e3f28cc719si7362718plh.238.2024.04.10.01.50.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 01:50:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6076-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=nVVtTss+; 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-6076-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6076-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 359DD2831A7 for ; Wed, 10 Apr 2024 08:50:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D45D213C90D; Wed, 10 Apr 2024 08:50:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="nVVtTss+" 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 0E86B13C9C2 for ; Wed, 10 Apr 2024 08:50:18 +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=1712739020; cv=none; b=E4KxkGbZLp9LS4umREPO7CdIhNjeku0cZ/sBykiOun7noaLbm7NE09mmVNugDW3WOJzP9mZnDfwmGD9s8b1flAgb1QCOSsoNlu5uLaEFtVhhHoIcMSbOts8iczxidPk6+VvjSO8L/AA0fofyiKlyL5eZ4OdOZ+yzWctginnjKLw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712739020; c=relaxed/simple; bh=V38oHlK3cwnDqxKFQEfCF54MJqkAlwdwZfWPODui/5M=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=S6kIa1wmfwu1/Qf+NNDD1CUOLDxfDkBV7rcL7wQ8uXDjlyqDRabizm3RYk6DdXPIVQcI0BjU9g3Hto9QbQhoGfk/Mt+J0D+PztUHCTdAwUOAc8QlrQBazX1wA7XpWsYvrUu+2Dz5rVpw8XDwshy/WT1whorNdVUBvNrPGL7uC1g= 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=nVVtTss+; 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=quicinc.com Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43A4fSWT002543; Wed, 10 Apr 2024 08:50:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=PGV7WjLYhT2xFvjYvosxufQsQ61p1QLmZahYYx6DGDA=; b=nV VtTss+ECw1q1d47ZYMbhQPpk59lo2BMLOhAgngBL3pJMUXnD36YWmMEcxxnVtnIx lXBg2gfNU5PnCiLxpFuwzQI5JnM4RvDfUJgvgA9z1xLL7Qi9hX37PQO5rHRA40B+ yIU9ul6Q0AidpG3Wcejx5Q3t3ayAIJoaOsDEXUIDIz9Ff7V0hwzEdoCfDEWgImGW uJ7lnvxTsh833uUPgE3uagTIx8IfVQxFazSYsFx7kMtPobEQrxoBKAKRXO+W9P6Q zQVIwRetrKJVqXE8n1dmJmEntEf+Hlzv3b0s+MMNFGXSH5H+vCEARwi/nKuyoAzA cqWCtysms5DrabbJLwJg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xdh6xaea9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Apr 2024 08:50:12 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43A8oBB7018852 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Apr 2024 08:50:11 GMT Received: from [10.50.38.146] (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.4; Wed, 10 Apr 2024 01:50:09 -0700 Message-ID: Date: Wed, 10 Apr 2024 14:20:05 +0530 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] wifi: ath12k: enable service flag for survey dump stats To: Jeff Johnson , CC: , Thiraviyam Mariyappan References: <20240409175604.3299752-1-quic_kathirve@quicinc.com> <1e515bbc-0119-4114-b44e-d7a449b031f7@quicinc.com> Content-Language: en-US From: Karthikeyan Kathirvel In-Reply-To: <1e515bbc-0119-4114-b44e-d7a449b031f7@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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: KUQCmLgg8CvLKkl3WoEYBFZkG1mYm9hy X-Proofpoint-ORIG-GUID: KUQCmLgg8CvLKkl3WoEYBFZkG1mYm9hy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-10_03,2024-04-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 adultscore=0 phishscore=0 impostorscore=0 bulkscore=0 suspectscore=0 clxscore=1015 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404100063 On 4/10/2024 5:37 AM, Jeff Johnson wrote: > On 4/9/2024 10:56 AM, Karthikeyan Kathirvel wrote: >> From: Thiraviyam Mariyappan >> >> The survey dump statistics does not display channel RX and TX time >> properly because the survey flag is not enabled in the firmware service >> flag. >> >> If firmware supports enable the service flag "bss_chan_info" in >> wmi_resource_config to fetch and print the stats for specific pdev. >> >> Enabling WMI_RSRC_CFG_FLAG1_BSS_CHANNEL_INFO_64 does not have any impact >> on WCN7850 since this bit is not utilized by the WCN7850 firmware. >> >> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 >> >> Signed-off-by: Thiraviyam Mariyappan >> Signed-off-by: Karthikeyan Kathirvel >> --- >> drivers/net/wireless/ath/ath12k/wmi.c | 3 ++- >> drivers/net/wireless/ath/ath12k/wmi.h | 1 + >> 2 files changed, 3 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/net/wireless/ath/ath12k/wmi.c b/drivers/net/wireless/ath/ath12k/wmi.c >> index a5575ce9eed4..16504786735a 100644 >> --- a/drivers/net/wireless/ath/ath12k/wmi.c >> +++ b/drivers/net/wireless/ath/ath12k/wmi.c >> @@ -3324,7 +3324,8 @@ ath12k_wmi_copy_resource_config(struct ath12k_wmi_resource_config_params *wmi_cf >> wmi_cfg->bpf_instruction_size = cpu_to_le32(tg_cfg->bpf_instruction_size); >> wmi_cfg->max_bssid_rx_filters = cpu_to_le32(tg_cfg->max_bssid_rx_filters); >> wmi_cfg->use_pdev_id = cpu_to_le32(tg_cfg->use_pdev_id); >> - wmi_cfg->flag1 = cpu_to_le32(tg_cfg->atf_config); >> + wmi_cfg->flag1 = cpu_to_le32(tg_cfg->atf_config) | >> + WMI_RSRC_CFG_FLAG1_BSS_CHANNEL_INFO_64; > > shouldn't that | operation be inside the ) ? Yes, will address in next version, thanks for the review Jeff > >> wmi_cfg->peer_map_unmap_version = cpu_to_le32(tg_cfg->peer_map_unmap_version); >> wmi_cfg->sched_params = cpu_to_le32(tg_cfg->sched_params); >> wmi_cfg->twt_ap_pdev_count = cpu_to_le32(tg_cfg->twt_ap_pdev_count); >> diff --git a/drivers/net/wireless/ath/ath12k/wmi.h b/drivers/net/wireless/ath/ath12k/wmi.h >> index 78afc94a815d..1283d25b5cc4 100644 >> --- a/drivers/net/wireless/ath/ath12k/wmi.h >> +++ b/drivers/net/wireless/ath/ath12k/wmi.h >> @@ -2400,6 +2400,7 @@ struct wmi_init_cmd { >> >> #define WMI_RSRC_CFG_HOST_SVC_FLAG_REG_CC_EXT_SUPPORT_BIT 4 >> #define WMI_RSRC_CFG_FLAGS2_RX_PEER_METADATA_VERSION GENMASK(5, 4) >> +#define WMI_RSRC_CFG_FLAG1_BSS_CHANNEL_INFO_64 BIT(5) >> >> struct ath12k_wmi_resource_config_params { >> __le32 tlv_header; >> >> base-commit: b36766befd306a606f287b0c0f0e53d994516acb >