Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp8811lqj; Wed, 10 Apr 2024 02:02:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXBNztK5buyIBM8myYyLnKXBs90fDt3Iw+xXYEk6RsgNZbOT3yeStWWsNx0RnpV6PFrXSiu8AnObCTQqsMaFNwGwcQMPpLKwmo9TYpPbQ== X-Google-Smtp-Source: AGHT+IGmNpoCQ+FEVL31tTA/+skHWce8+NeuCO3meff+z0LoZX2vPWNWkrj4qxyZxNwOo2y7PaxO X-Received: by 2002:a05:6870:d8cb:b0:22e:dfc7:6cdc with SMTP id of11-20020a056870d8cb00b0022edfc76cdcmr2285558oac.23.1712739749499; Wed, 10 Apr 2024 02:02:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712739749; cv=pass; d=google.com; s=arc-20160816; b=hCyp7UAgicbvsqsw4LaWwKCOz1N7sPqLeLmZ9eBypTrUkzwX6/X694P0jncMSM1aos Tx/JVnUJnBGt/N+l9pws/MHwt/uHQeb/55enJZrvV2oAQHRvd0Uer3AV3e9iZEilkb4Z vCed6d1iKJQIrSYYVH13VoM07/jNJKkKMSuMnWsFZk+bi1TW1YVEvmryzLaj1bjE5inn vx3szQIlZw9F7nS7cf9MtOh2F3imOu7f7P6j8WJ4w2s/KeoJxRu1Yq0fXuaB0D/hKshd ZejCDdvujbNXOq9vKPnQrel/hcS5FcuX3I+ollQv/NOA5kV36g5+F+InAYmfE6xbtV2S Auig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=d1wgevTtpRkvnYP3BfURK3i5RvAhyV4fidKjgBcb4rM=; fh=s2HqIuHFfhKvWnSgf6EF0ya8WLQWdUZSqOPI+gAs4gA=; b=KOuuqRwrdl0fJBOEqO94Wn5G8IHYUnriZDZFhl3DquFpxNPSGRz6tMvlInJ6w+wukd e80AM8ew8V7FyJPVez6OuXkJnSJ1eCda2O8mr1xISAdxrTXzyHtFcvCKDsxQ6vpPCOpt tcAz3ej6KKwltqr8yEuBuB93SWmG/5J5dz2L+mz4+2FMSmtPxLKa/Gt47m7c+WIJsrXt v49X/86iSgOh3KDfjjWR51opEi05woJ2uxku+ylJ6UynnzOSYQ7atOdUqTvEqtuxUncy tH/cn9FfuXSu7CMKVoisON7BJ3Ajymw/tnt2pTISYER9JDXIG2oHo0fzZlNwZNxtopH9 vKbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OgVp91lN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-6079-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6079-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g20-20020a63f414000000b005e842a592c7si10277274pgi.796.2024.04.10.02.02.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 02:02:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6079-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=@kernel.org header.s=k20201202 header.b=OgVp91lN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-6079-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6079-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 B3A63284004 for ; Wed, 10 Apr 2024 09:02:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C31513D8A6; Wed, 10 Apr 2024 09:02:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OgVp91lN" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DC46338393 for ; Wed, 10 Apr 2024 09:02:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712739745; cv=none; b=OyFA+0P3Ow+eB8ecANXLYjtqwFnsOf0rzzI7sPHt7UI78isFz309mc4cXMzfpTdkAIWwWqtRKtHqj0r0V0zzKA1t77ffbmzFKCFRm4eDhCR02Cev5Ps2SnACqfgeySFsxCBqMiQz9Rt9AHKxqhpgtSsFED4y0APtGEPf4d4rHdc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712739745; c=relaxed/simple; bh=BWIGtv/jtFuN/kcD1raMWNa1Vg9PxMfieRzFlD0RgUA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=E4CyYAV8iMGRjpORjDJRg5ovI7x3ZWDxBJ4UOVtZU1cXGY6K7lvRPle9GL+LJ38AQwoW1262VAPQ2mq162HhxsGAbSApudl5CRvIthn9zefz1rMm0bTzYW9ChRtx9VmaesZrarlfGlxZqVMkvmAT8sgGd1IEmcAGQfAZrx+lPb8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OgVp91lN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37ABAC433F1; Wed, 10 Apr 2024 09:02:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712739745; bh=BWIGtv/jtFuN/kcD1raMWNa1Vg9PxMfieRzFlD0RgUA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=OgVp91lNYOWiLWekLEVfZ/V9In9eR7l4BiUAWXZzPkx8gbKadvHzD4rdY8+DGQA27 6WxqDDpVjX5hWXd3yJU1ibAUAbHUh5dpuqQhHgyriatDhi5f+vSFXC9Dwb+DajjOsK KHmbhcGZE3AcvDTiNYA16a/wE3nf/r2f8VnPgvhw7d3snZ+lZV9g9zg1+lN+L0+umb OcgoqNTKVkoUd0QEfnR/SkYtSriNzjvU8Lhe7tElnDnBdJvEHu96YrlEPRyU7n+Cgk i8nU04Gi7XOvJfJwv3sVcNSHcWfRLe7xvr9kb9PHbiyGp9XgeiBpHWbgySHkbxauK6 4HDa6A5PPmnqg== From: Kalle Valo To: Karthikeyan Kathirvel Cc: Jeff Johnson , , , Thiraviyam Mariyappan Subject: Re: [PATCH] wifi: ath12k: enable service flag for survey dump stats References: <20240409175604.3299752-1-quic_kathirve@quicinc.com> <1e515bbc-0119-4114-b44e-d7a449b031f7@quicinc.com> Date: Wed, 10 Apr 2024 12:02:22 +0300 In-Reply-To: (Karthikeyan Kathirvel's message of "Wed, 10 Apr 2024 14:20:05 +0530") Message-ID: <87seztzj35.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Karthikeyan Kathirvel writes: > 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 BTW ath12k-check should catch these kind of errors. Didn't it warn about it or did you just skip running ath12k-check? -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches