[PATCH v2 0/3] firmware: arm_scmi: Add xfer inflight debug and trace

Philip Radford posted 3 patches 3 months, 1 week ago
drivers/firmware/arm_scmi/common.h   |  8 ++++++++
drivers/firmware/arm_scmi/driver.c   | 28 ++++++++++++++++++++++++++--
drivers/firmware/arm_scmi/raw_mode.c |  6 ++++--
include/trace/events/scmi.h          | 24 ++++++++++++++----------
4 files changed, 52 insertions(+), 14 deletions(-)
[PATCH v2 0/3] firmware: arm_scmi: Add xfer inflight debug and trace
Posted by Philip Radford 3 months, 1 week ago
Hi all,

This series adds a new counter to the Arm SCMI firmware driver to track
the number of in-flight message transfers during debug and trace. This
will be useful for examining behaviour under a large load with regards
to concurrent messages being sent and received. As the counter only gives
a live value, printing the value in trace allows logging of the in-flight
xfers.

The series is divided into three small patches:
Patch [1/3]
        - Adds a function to decrement debug counters, similar to the
		  existing counter to increment debug counters.
Patch [2/3]
        - Adds a new xfers_inflight debug counter to track active
		  transfers.
Patch [3/3]
        - Enhances two tracepoints (scmi_xfer_begin and scmi_xfer_end) to
          include the number of in-flight transfers. Also adds a function
		  (scmi_inflight_count) that retrieves the current in-flight count
		  for use in tracing.

This series is based off the branch sudeep/for-next/scmi/updates at commit
397f802d06c4 ("firmware: arm_scmi: quirk: Force perf level get fastchannel").

Regards,
Phil
---
V1->V2
- Amendments to commit messages
- Final commit of V1 squashed into commit three
- Removal of erroneous blank space
- rebased on sudeep/for-next/scmi/updates as previously based on v6.16-rc2


Philip Radford (3):
  firmware: arm_scmi: Add debug decrement counter
  firmware: arm_scmi: Add xfer_inflight counter
  include: trace: Add inflight_xfer counter tracepoint

 drivers/firmware/arm_scmi/common.h   |  8 ++++++++
 drivers/firmware/arm_scmi/driver.c   | 28 ++++++++++++++++++++++++++--
 drivers/firmware/arm_scmi/raw_mode.c |  6 ++++--
 include/trace/events/scmi.h          | 24 ++++++++++++++----------
 4 files changed, 52 insertions(+), 14 deletions(-)

--
2.25.1
Re: [PATCH v2 0/3] firmware: arm_scmi: Add xfer inflight debug and trace
Posted by Sudeep Holla 3 months ago
On Mon, 30 Jun 2025 10:55:40 +0000, Philip Radford wrote:
> This series adds a new counter to the Arm SCMI firmware driver to track
> the number of in-flight message transfers during debug and trace. This
> will be useful for examining behaviour under a large load with regards
> to concurrent messages being sent and received. As the counter only gives
> a live value, printing the value in trace allows logging of the in-flight
> xfers.
> 
> [...]

Applied to sudeep.holla/linux (for-linux-next), thanks!
(with some commit message changes)

[1/3] firmware: arm_scmi: Add debug decrement counter
      https://git.kernel.org/sudeep.holla/c/555e9174ef06
[2/3] firmware: arm_scmi: Add xfer_inflight counter
      https://git.kernel.org/sudeep.holla/c/a9cd861e61ae
[3/3] include: trace: Add inflight_xfer counter tracepoint
      https://git.kernel.org/sudeep.holla/c/f8e656382b4a
--
Regards,
Sudeep