Skip to content

Add per-transport SCMI communication debug statistics

Sudeep Holla arm-scmi linux-arm-kernel lkml 1 version Applied

Status from this message: Applied to sudeep.holla/linux (for-next/scmi/updates), thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v5 Latest5 patches 3 repliesApplied

Changes in v5 from the cover letter

- Updated/improved some patch titles and commit messages
- Moved all debugs strings to an array and changed the creations of the same into a for loop
- Minor changes to the debugfs file names itself to improve readability V3->V4
- Rename to counters rather than statistics to reflect the scmi protocol better
- Use basic writing rather than custom function on debugfs in patch 5 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

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/5firmware: arm_scmi: Remove superfluous handle_to_scmi_infodrivers/firmware/arm_scmi/driver.c+0 -30 replies
2/5firmware: arm_scmi: Add support for debug metrics at the interfacedrivers/firmware/arm_scmi/Kconfig drivers/firmware/arm_scmi/common.h drivers/firmware/arm_scmi/driver.c+26 -00 replies
3/5firmware: arm_scmi: Track basic SCMI communication debug metricsdrivers/firmware/arm_scmi/common.h drivers/firmware/arm_scmi/driver.c+34 -50 replies
4/5firmware: arm_scmi: Create debugfs files for SCMI communication debug metricsdrivers/firmware/arm_scmi/driver.c+33 -00 replies
5/5firmware: arm_scmi: Add support to reset the debug metricsdrivers/firmware/arm_scmi/driver.c+21 -10 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchCristian Marussi
SeriesT-b
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/5] Add per-transport SCMI communication debug statistics

This series adds support for SCMI communication debug metrict tracking. I am just sending on behalf of Luke with minor reworks in his absense.

Cristian,

I have retained your review tags, please shout if you disagree.

Regards,
Sudeep

V4->V5
- Updated/improved some patch titles and commit messages
- Moved all debugs strings to an array and changed the creations of the same into a for loop
- Minor changes to the debugfs file names itself to improve readability V3->V4
- Rename to counters rather than statistics to reflect the scmi protocol better
- Use basic writing rather than custom function on debugfs in patch 5 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 debug metrics at the interface
firmware: arm_scmi: Track basic SCMI communication debug metrics
firmware: arm_scmi: Create debugfs files for SCMI communication debug
metrics
firmware: arm_scmi: Add support to reset the debug metrics

 drivers/firmware/arm_scmi/Kconfig  | 14 +++++
 drivers/firmware/arm_scmi/common.h | 24 +++++++++
 drivers/firmware/arm_scmi/driver.c | 83 +++++++++++++++++++++++++++---
 3 files changed, 113 insertions(+), 8 deletions(-)
Signature · 1 line
2.46.0