]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
firmware: arm_scmi: Add support for debug metrics at the interface
authorLuke Parkin <luke.parkin@arm.com>
Mon, 5 Aug 2024 13:10:09 +0000 (14:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 May 2025 12:12:13 +0000 (14:12 +0200)
commit0b175f7c4fe9dee65e1b5164bc87bb6c729064ae
treeb064d3b209b1efa8eec2cf02a94c70b3d8bc9dd9
parent844b899f78999f6cab83a9ff09cb16b985df64a5
firmware: arm_scmi: Add support for debug metrics at the interface

[ Upstream commit 1b18d4295f9d1125bc7a799fc12924cd45fc04b1 ]

Since SCMI involves interaction with the entity(software, firmware and/or
hardware) providing services or features, it is quite useful to track
certain metrics(for pure debugging purposes) like how many messages were
sent or received, were there any failures, what kind of failures, ..etc.

Add a new optional config option for the above purpose and the initial
support for counting such key debug metrics.

Signed-off-by: Luke Parkin <luke.parkin@arm.com>
Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Tested-by: Cristian Marussi <cristian.marussi@arm.com>
Message-Id: <20240805131013.587016-3-sudeep.holla@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Stable-dep-of: c23c03bf1faa ("firmware: arm_scmi: Fix timeout checks on polling path")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firmware/arm_scmi/Kconfig
drivers/firmware/arm_scmi/common.h
drivers/firmware/arm_scmi/driver.c