From patchwork Wed Jul 3 14:37:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luke Parkin X-Patchwork-Id: 13722491 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 4EBFBC2BD09 for ; Wed, 3 Jul 2024 15:45:59 +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=Jcn1KbD2J68y4W5s7jkmRns/UHfn5uNEGKrU0fUJvTo=; b=jnIDHK+9fBBgoYP/14rYcWEt0m D+YCCmiOIWZxpsjJWs76JSum5tadH/H1OmPplpdE9tanx95lE/OGpH4iol+0euPvlKB9LZh+L/dJE 2vfQZa36VL5cF/6Hq/kLHN8Ias0f4GmSuKWo/hmzkqnyMMAFaLrOs8khzt3b2nt3UJultog3rvNtS MYwLv9JUGSGH7u8cxaZOBXSodKdT4aNPEWr3PXDab5EixvLLmZpOwqnvEFq+MMIUaC2UaOW+f0ogT aBOoSiKdTSHLpzln3Cam1yFyxNeYmxySd293DrcL8/3tgczhbE02CAoSII/r6d5ui/YkKv9QeqcQi G0GHM69Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sP2B4-0000000Aju6-16AT; Wed, 03 Jul 2024 15:45:50 +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 1sP17d-0000000AV3t-1BC0 for linux-arm-kernel@lists.infradead.org; Wed, 03 Jul 2024 14:38:15 +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 45579367; Wed, 3 Jul 2024 07:38:34 -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 63F503F766; Wed, 3 Jul 2024 07:38:08 -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 v2 0/4] Add Per-transport SCMI debug statistics Date: Wed, 3 Jul 2024 15:37:34 +0100 Message-Id: <20240703143738.2007457-1-luke.parkin@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_073813_427719_4E131D1D X-CRM114-Status: UNSURE ( 8.17 ) 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 Hi, This series adds support for tracking Arm SCMI statistics [Patch 2/3] A config option to enable this [Patch 2] Cleans up a unneeded call to handle_scmi_info [Patch 1] And in [Patch 4] a selection of new debugfs entries to present these statistics 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 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 (4): firmware: arm_scmi: Remove superfluous handle_to_scmi_info firmware: arm_scmi: Add support for tracking statistics firmware: arm_scmi: Track basic SCMI statistics firmware: arm_scmi: Create debugfs files for statistics drivers/firmware/arm_scmi/Kconfig | 11 ++++++ drivers/firmware/arm_scmi/common.h | 9 +++++ drivers/firmware/arm_scmi/driver.c | 62 ++++++++++++++++++++++++++---- 3 files changed, 74 insertions(+), 8 deletions(-)