From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7B69EC3DA49 for ; Tue, 30 Jul 2024 09:35:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=iH0LIsxURE0hcgDYMHKX0VTvHDsM3vNbFn+hRTfelAI=; b=eVC9NJB9dkM31YIstwlDQav4tG 4mN+djItE0gtcE9EypIDyXKYc5zybfNveIxy9SXrLMq1WfPXdKSk2YII5RsffbOX2yUyCyQgokBa0 MqlL95josqLEhPxoAFNYKY5tiBxIHBQxclefSO1X6PzVNdZ4iJv7UyyKAzRiKtEO7WXX8ELjR52/A R4/TDgMvZ8Fgd5Aph0Wl5T3hno8k81TCBIhZK7Wk0LjWBJQlymfdbNzmcoOmM1M7s0f2fvfwrmL/S ZPOhCl64jJVGyTK+yZnpJtr497BoLnkp9lrS/epH+Nr93OXwUnoTVLAM9GQNxMfAuf90L6kTSA2Jt XDNL7/Og==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYjFp-0000000EXxa-34SO; Tue, 30 Jul 2024 09:34:49 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYjEx-0000000EXgs-42LC for linux-arm-kernel@lists.infradead.org; Tue, 30 Jul 2024 09:33:59 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BC5BF1007; Tue, 30 Jul 2024 02:34:16 -0700 (PDT) Received: from thinkcentre-m93p.cambridge.arm.com (thinkcentre-m93p.cambridge.arm.com [10.1.197.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 265763F5A1; Tue, 30 Jul 2024 02:33:50 -0700 (PDT) From: Luke Parkin To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, arm-scmi@vger.kernel.org Cc: sudeep.holla@arm.com, cristian.marussi@arm.com, Luke Parkin Subject: [PATCH v4 0/5] Add Per-transport SCMI debug statistics Date: Tue, 30 Jul 2024 10:33:37 +0100 Message-Id: <20240730093342.3558162-1-luke.parkin@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240730_023356_320950_B880A232 X-CRM114-Status: UNSURE ( 9.35 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series adds support for tracking information about the SCMI [Patch 2/3] A config option to enable this [Patch 2] Cleans up a unneeded call to handle_scmi_info [Patch 1] In [Patch 4] a selection of new debugfs entries to present these counters Then finally in [Patch 5] enabled writing on the debugfs entries to reset counts Based on v6.9, Tested on Arm Juno [1] Thanks, Luke [1]: https://www.arm.com/products/development-tools/development-boards/juno-arm-dev-platform V3->V4 Rename to counters rather than statistics to reflect the scmi protocol better. Use basic writing rather than custom function on debugfs in patch 5. V2->V3 Switch statistic counters to an array to store statistics. Add more statistics Add the ability to reset statistics, both individually and all V1->V2 Add a minor fix removing an unneeded call to handle_to_scmi_info Use new scmi_log_stats op/no-op rather than if(IS_ENABLED) Drop unneeded atomic_set's Use a helper function for stats debugfs creation Luke Parkin (5): firmware: arm_scmi: Remove superfluous handle_to_scmi_info firmware: arm_scmi: Add support for tracking metrics firmware: arm_scmi: Track basic SCMI metrics firmware: arm_scmi: Create debugfs files for counts firmware: arm_scmi: Reset counters drivers/firmware/arm_scmi/Kconfig | 11 ++++ drivers/firmware/arm_scmi/common.h | 27 ++++++++++ drivers/firmware/arm_scmi/driver.c | 87 +++++++++++++++++++++++++++--- 3 files changed, 117 insertions(+), 8 deletions(-) -- 2.34.1