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)
committerSudeep Holla <sudeep.holla@arm.com>
Fri, 9 Aug 2024 13:21:26 +0000 (14:21 +0100)
commit0b3d48c4726e1b20dffd2ff81a9d94d5d930220b
treef28d1170b9a4c9df99c64671307e7bf2979581eb
parent1b18d4295f9d1125bc7a799fc12924cd45fc04b1
firmware: arm_scmi: Track basic SCMI communication debug metrics

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