Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp428962rwb; Thu, 22 Sep 2022 01:23:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5i3DW6RFo3+eEe/p2Rnmc82GpehV0772fBO1O0vkaLIxVxYp2uCBOgonDMj0kTkizx/JNG X-Received: by 2002:a05:6402:847:b0:453:943b:bf4 with SMTP id b7-20020a056402084700b00453943b0bf4mr2016770edz.301.1663835014685; Thu, 22 Sep 2022 01:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663835014; cv=none; d=google.com; s=arc-20160816; b=ENa85MnU9AyNVv1npOWAypWXrfOLv5pAKmWMFEwdSizojFw9wumuY3hUoQ5BiMnlJ5 eVui9NkfP4njokbSt7JobrB0Pft6DjUknqvFVayEFnC/VL07ioZvwSAqllUdti8rXhLl U4q0blz7H8Pasa7EMeSwXS/UtgwYPYar6yZLfEidtkFAqlaN1jgukC0BVnhd7eGmBl82 aNYB4vHRrlj5Ssu+hAYI0n5F3Zcl6YPXEGL5nWZyxtOd8gUGjFPoMJmAPt/otlcZK9pu 5FaVsvJezJHR+hqJ7JaVC/tz8EDy58CclqxVDeWf7g5hlbPQ574s06sSlafz9N7FN3xl Saqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=7kTeE1SZPcV7Ttw0xuSWL0cdf8dsxxXKMFSbbqpbGb8=; b=XWTu8DpSM1G1VbFEmdYDfQNkym6MgciOobHRTb2Lvw5uvysQ+LgeMxtibFRDC3Dy2d ytYDm52pyu4JvgbIdqHutTZmOkcQZZE6Gmq9QEVeQ/x3AO6SZuaCbHvlbc8rjUUikWde lGL1UI5B2Ha1IpwNQUAyzgZuRzUiikMRTvmpmxWOPV7GLjx1zBvIVK1BOYkTAy6LQqA5 Iq6BJ3AVtJzSn55TkCsZcmelmwXbOxM6uWT9L7I/RfqTrPvHJQPUaRXVs636lq4qV8U4 UQ7SYcahy6VWBJQzTyZhQ3DMxYwcFEPfSW2+kc2N2/evosIY6eN0Z1fkizL7HrTOEm1a /LwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tvAyBqG1; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go16-20020a1709070d9000b00741a186e53csi7116468ejc.50.2022.09.22.01.23.16; Thu, 22 Sep 2022 01:23:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tvAyBqG1; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229703AbiIVIUZ (ORCPT + 63 others); Thu, 22 Sep 2022 04:20:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbiIVIUX (ORCPT ); Thu, 22 Sep 2022 04:20:23 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E226D89805 for ; Thu, 22 Sep 2022 01:20:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4F7BAB8295E for ; Thu, 22 Sep 2022 08:20:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11109C433D7; Thu, 22 Sep 2022 08:20:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663834817; bh=/7gUoLzauu+dmK9A1PFDAC5/NoEv2CimpEi0k4Q2w10=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=tvAyBqG1BzAru48WoiiWLvw8e5KaSSfW7wA/Sc36ujetVROq+7eEZrpjrmR/F39Fe VPAM1Lk0hAVsdnwQYYAT8rzB+cJl5m4icRVnrw5ae5ek6iulTHJQClslGyV34+Acbo qKlD4ELpiN1eg2ncnuioZElfbBZXLyRhRPOh7e9iF/pfHSR9ir/Nau88oPvGnnjBV3 6ldTwoTwjNG34JBUkir+uQqIwrbwNY6EGhyY7N/HifdhPfpaStQaKw2sWykbWmN5u2 SvZccwvRUu+/En3huK1PcdN97UKqZbgki2xrumnu/ZLSndyhTN0ftaDedvZpvf9GQv zW8ZQjqfzMjzw== From: Kalle Valo To: Thiraviyam Mariyappan Cc: , Subject: Re: [PATCH] ath11k: add wmi ctrl path stats References: <1654176800-29003-1-git-send-email-quic_tmariyap@quicinc.com> <165424060628.24941.10656719779515709897.kvalo@kernel.org> <87czfqnojt.fsf@kernel.org> Date: Thu, 22 Sep 2022 11:20:14 +0300 In-Reply-To: <87czfqnojt.fsf@kernel.org> (Kalle Valo's message of "Fri, 03 Jun 2022 11:23:18 +0300") Message-ID: <87tu4z6csh.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Kalle Valo writes: > Kalle Valo writes: > >> Thiraviyam Mariyappan wrote: >> >>> Currently, ath11k HTT debugfs uses the HTT interface to send stats request >>> to target and response from target. Here HTT interface already overloaded >>> with the data path stats. To reduce the load from HTT, using WMI interface >>> to print the control path stats. This patch come up with framework for >>> control path stats using wmi interface. >>> For now, this framework supports PDEV_STAT and further stats will be >>> added. >>> >>> WMI control path stats command and results are below: >>> echo > >>> sys/kernel/debug/ieee80211/phy3/netdev\:wlan3/wmi_ctrl_stats >>> cat sys/kernel/debug/ieee80211/phy3/netdev\:wlan3/wmi_ctrl_stats >>> stats_id: >>> 1 -> WMI_REQ_CTRL_PATH_PDEV_STATS >>> action: >>> 1 -> stats get >>> 2 -> stats reset >>> >>> WMI_CTRL_PATH_PDEV_STATS: >>> req_id = 26 >>> fw_tx_mgmt_subtype = 0:0, 1:0, 2:0, 3:0, 4:0, 5:109, 6:0, 7:0, 8:344, ... >>> fw_rx_mgmt_subtype = 0:0, 1:0, 2:0, 3:0, 4:0, 5:0, 6:0, 7:0, 8:0, 9:0, ... >>> scan_fail_dfs_violation_time_ms = 0 >>> nol_chk_fail_last_chan_freq = 0 >>> nol_chk_fail_time_stamp_ms = 0 >>> tot_peer_create_cnt = 2 >>> tot_peer_del_cnt = 1 >>> tot_peer_del_resp_cnt = 1 >>> vdev_pause_fail_rt_to_sched_algo_fifo_full_cnt = 0 >>> >>> Tested-on: WLAN.HK.2.5.0.1-00517-QCAHKSWPL_SILICONZ-1 >>> >>> Signed-off-by: Thiraviyam Mariyappan >>> Signed-off-by: Kalle Valo >> >> This added new warnings: >> >> drivers/net/wireless/ath/ath11k/debugfs.c:1600: line length of 92 exceeds 90 columns >> drivers/net/wireless/ath/ath11k/debugfs.c:1666: line length of 93 exceeds 90 columns >> drivers/net/wireless/ath/ath11k/wmi.c:2702: line length of 94 exceeds 90 columns >> drivers/net/wireless/ath/ath11k/wmi.c:2703: line length of 97 exceeds 90 columns >> drivers/net/wireless/ath/ath11k/wmi.c:7037: line length of 97 exceeds 90 columns >> drivers/net/wireless/ath/ath11k/wmi.c:7085: line length of 97 exceeds 90 columns >> >> I fixed them in the pending branch. But in the future please use ath11k-check. >> >> There was one way too long field: >> >> u32 vdev_pause_fail_rt_to_sched_algo_fifo_full_cnt; >> >> I renamed that to: >> >> u32 vdev_pause_fail_rt; >> >> In ath11k_wmi_send_wmi_ctrl_stats_cmd() the error handling was unnecessarily >> using else branch which caused long lines, I fixed that by avoiding else >> branches. >> >> Also I saw some other things, like calling kzalloc() in variable declarations, >> but I will look at them in detail later. >> >> Here's what I did now: >> >> https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=28bc80a6a9c675fdc7003934a9493d9e95570f5f > > And in my regression testing with WCN6855 I see new warnings: > > [ 422.555328] debugfs: File 'wmi_ctrl_stats' in directory > 'netdev:wlan0' already present! For the archives, here's a link to the commit in the pending branch with my changes: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending-deferred&id=4f8f38d0c5b752a7d4bacf4f099915a7b705562b I'll drop this now from my queue. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches