devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] coresight: Add preferred trace id support
@ 2024-06-26  6:07 Mao Jinlong
  2024-06-26  6:07 ` [PATCH v3 1/3] dt-bindings: arm: Add arm,trace-id for coresight dummy source Mao Jinlong
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Mao Jinlong @ 2024-06-26  6:07 UTC (permalink / raw)
  To: Suzuki K Poulose, Mike Leach, James Clark, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Mao Jinlong,
	Alexander Shishkin
  Cc: coresight, linux-arm-kernel, devicetree, linux-kernel,
	linux-arm-msm, Tingwei Zhang, Yuanfang Zhang, Tao Zhang, songchai

Some HW has static trace id which cannot be changed via
software programming. For this case, configure the trace id
in device tree with "arm,trace-id = <xxx>", and
call coresight_trace_id_get_system_id with the trace id value
in device probe function. The id will be reserved for the HW
all the time if the device is probed.

Changes since V2:
1. Change "trace-id" to "arm,trace-id".
2. Add trace id flag for getting preferred id or ODD id.

Changes since V1:
1. Add argument to coresight_trace_id_get_system_id for preferred id
instead of adding new function coresight_trace_id_reserve_system_id.
2. Add constraint to trace-id in dt-binding file.

Mao Jinlong (3):
  dt-bindings: arm: Add arm,trace-id for coresight dummy source
  coresight: Add support to get preferred id for system trace sources
  coresight: dummy: Add reserve atid support for dummy source

 .../sysfs-bus-coresight-devices-dummy-source  | 15 +++++
 .../arm/arm,coresight-dummy-source.yaml       |  6 ++
 drivers/hwtracing/coresight/coresight-dummy.c | 59 +++++++++++++++++--
 .../hwtracing/coresight/coresight-platform.c  | 25 ++++++++
 drivers/hwtracing/coresight/coresight-stm.c   |  2 +-
 drivers/hwtracing/coresight/coresight-tpda.c  |  2 +-
 .../hwtracing/coresight/coresight-trace-id.c  | 35 +++++++----
 .../hwtracing/coresight/coresight-trace-id.h  | 11 +++-
 include/linux/coresight.h                     |  1 +
 9 files changed, 137 insertions(+), 19 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-coresight-devices-dummy-source

-- 
2.41.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-07-22 10:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-26  6:07 [PATCH v3 0/3] coresight: Add preferred trace id support Mao Jinlong
2024-06-26  6:07 ` [PATCH v3 1/3] dt-bindings: arm: Add arm,trace-id for coresight dummy source Mao Jinlong
2024-06-28 21:47   ` Rob Herring (Arm)
2024-07-18 15:57   ` Mike Leach
2024-06-26  6:07 ` [PATCH v3 2/3] coresight: Add support to get preferred id for system trace sources Mao Jinlong
2024-07-18 15:57   ` Mike Leach
2024-06-26  6:07 ` [PATCH v3 3/3] coresight: dummy: Add reserve atid support for dummy source Mao Jinlong
2024-07-18 15:57 ` [PATCH v3 0/3] coresight: Add preferred trace id support Mike Leach
2024-07-22 10:34   ` Jinlong Mao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).