From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E518018C180; Mon, 15 Jul 2024 13:38:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721050682; cv=none; b=YKmrCxaNVcFL6sUSkrX1K+8iOVs32Vr1hsFpJK5e9D6Oq6dG3Ioy76tk0RsaWnKYvtPMSDUbIof0VjpnpNd9eVvOWQi1UNdu0oqsh9t2sU2xbKvzt0/wpbm4VbvVg8HfXJqqehMkYpMdUWdX3slL55WQ1AyIzZ5/BaO8aIc/RT4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721050682; c=relaxed/simple; bh=Pyx1jKgT3O9zAB7pzzZnpQOB7thk7+IkDUDOcylBjH8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Dc2/Xqa7G15HeKr8zaBReyVdu0bkiZwMFN8+ISZzDSxHMUCabsznvSc0/n6usxduHZXNL+sHiAYkHK+PqkpvPONKomBSlEdLOmeUpNfOCvVTVSo9fDMsWhV+whPK5WsGUrh6H6JCDCN33qrWmQLdLvikoa3fMn8hO+PkYq1PqD0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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