diff options
author | Cristian Marussi <cristian.marussi@arm.com> | 2021-11-29 19:11:45 +0000 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2021-12-13 17:45:36 +0000 |
commit | f872af09094c042ac46e64d030f223b63ead5967 (patch) | |
tree | c6ab0f82f69b0e764212ccdebd1ef5441cf6f386 | |
parent | 8b276b59ccf983517a0d40f8a3ac243a104d4c16 (diff) | |
download | linux-f872af09094c042ac46e64d030f223b63ead5967.tar.bz2 |
firmware: arm_scmi: Use new trace event scmi_xfer_response_wait
Use new trace event to mark start of waiting for response section.
Link: https://lore.kernel.org/r/20211129191156.29322-6-cristian.marussi@arm.com
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
-rw-r--r-- | drivers/firmware/arm_scmi/driver.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/firmware/arm_scmi/driver.c b/drivers/firmware/arm_scmi/driver.c index 9a8d6bfd4ebb..476b91845e40 100644 --- a/drivers/firmware/arm_scmi/driver.c +++ b/drivers/firmware/arm_scmi/driver.c @@ -757,6 +757,11 @@ static int scmi_wait_for_message_response(struct scmi_chan_info *cinfo, struct device *dev = info->dev; int ret = 0, timeout_ms = info->desc->max_rx_timeout_ms; + trace_scmi_xfer_response_wait(xfer->transfer_id, xfer->hdr.id, + xfer->hdr.protocol_id, xfer->hdr.seq, + timeout_ms, + xfer->hdr.poll_completion); + if (xfer->hdr.poll_completion) { ktime_t stop = ktime_add_ms(ktime_get(), timeout_ms); |