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 D6008C3DA59 for ; Mon, 15 Jul 2024 13:38:33 +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=Pkys+RjqfLp4KFfYvf9CQDVv7Kwo3BtMLKdiNzlJNBA=; b=zugLCfFaJOjLEFVFjrM9Xhvh59 eLyfWssy6UEo+9dpSHGDXq/U3jVSNZPBKEpQ8gP8o34tPSa23fruaHWvPd6n/KIQq6K9W+c/yvL7H 98PiW9QVe0ii5uQKpCvpBV/DprTdDuEmACpVrWUILtWvKgBq9nmJwAZ3GJRYsZX5jwAsUshpyBaWp jnEEK6SRPw64QH4wfHVAtDCctrTdhkFbNFutklJyrnBPcmFbS3R7KDib0biq2M1zILqaRNuawimqV yQXVwFwD2Yc527C8rYnhvUUiv//qX9eoXYP+3wCa/IlQXvDzT15BcX9clxroGT0FmAUWstADDmOrt EdMB+kUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTLuI-00000007Eeo-0nCJ; Mon, 15 Jul 2024 13:38:22 +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 1sTLty-00000007EYG-2DV7 for linux-arm-kernel@lists.infradead.org; Mon, 15 Jul 2024 13:38:04 +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 83998DA7; Mon, 15 Jul 2024 06:38:25 -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 63A6F3F73F; Mon, 15 Jul 2024 06:37:59 -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 v3 0/5] Add Per-transport SCMI debug statistics Date: Mon, 15 Jul 2024 14:37:46 +0100 Message-Id: <20240715133751.2877197-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-20240715_063802_640366_725668A0 X-CRM114-Status: UNSURE ( 8.63 ) 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 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] In [Patch 4] a selection of new debugfs entries to present these statistics Then finally in [Patch 5] enabled writing on the debugfs entries to reset stats 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 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 statistics firmware: arm_scmi: Track basic SCMI statistics firmware: arm_scmi: Create debugfs files for statistics firmware: arm_scmi: Reset statistics drivers/firmware/arm_scmi/Kconfig | 11 +++ drivers/firmware/arm_scmi/common.h | 9 ++ drivers/firmware/arm_scmi/driver.c | 138 +++++++++++++++++++++++++++-- 3 files changed, 150 insertions(+), 8 deletions(-) -- 2.34.1