]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
firmware: arm_scmi: Track basic SCMI communication debug metrics
authorLuke Parkin <luke.parkin@arm.com>
Mon, 5 Aug 2024 13:10:10 +0000 (14:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 May 2025 12:12:13 +0000 (14:12 +0200)
commitb38812942556819263256cb77fbdc9eae7aa5b1b
tree4ea75098b23f56558bd70f03d249d2ef4fcf4047
parent0b175f7c4fe9dee65e1b5164bc87bb6c729064ae
firmware: arm_scmi: Track basic SCMI communication debug metrics

[ Upstream commit 0b3d48c4726e1b20dffd2ff81a9d94d5d930220b ]

Add the support for counting some of the SCMI communication debug metrics
like how many were sent successfully or with some errors, responses
received, notifications and delayed responses, transfer timeouts and
errors from the firmware/platform.

In many cases, the traces exists. But the traces are not always necessarily
enabled and getting such cumulative SCMI communication debug metrics helps
in understanding if there are any possible improvements that can be made
on either side of SCMI communication.

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-4-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/common.h
drivers/firmware/arm_scmi/driver.c