devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/3] coresight: Add reserve trace id support
@ 2024-05-16  2:56 Mao Jinlong
  2024-05-16  2:56 ` [PATCH v1 1/3] dt-bindings: arm: Add trace-id for coresight dummy source Mao Jinlong
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Mao Jinlong @ 2024-05-16  2:56 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
"trace-id = <xxx>", and call coresight_trace_id_reserve_system_id in
device probe function. The id will be reserved for the HW all the time
if the device is probed.

Mao Jinlong (3):
  dt-bindings: arm: Add trace-id for coresight dummy source
  coresight: Add reserve trace id support
  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 | 56 +++++++++++++++++--
 .../hwtracing/coresight/coresight-platform.c  | 26 +++++++++
 .../hwtracing/coresight/coresight-trace-id.c  | 24 ++++++++
 .../hwtracing/coresight/coresight-trace-id.h  | 11 ++++
 include/linux/coresight.h                     |  1 +
 7 files changed, 135 insertions(+), 4 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-05-20  6:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-16  2:56 [PATCH v1 0/3] coresight: Add reserve trace id support Mao Jinlong
2024-05-16  2:56 ` [PATCH v1 1/3] dt-bindings: arm: Add trace-id for coresight dummy source Mao Jinlong
2024-05-16 13:41   ` James Clark
2024-05-19 17:46   ` Krzysztof Kozlowski
2024-05-16  2:56 ` [PATCH v1 2/3] coresight: Add reserve trace id support Mao Jinlong
2024-05-16 13:23   ` James Clark
2024-05-16 13:56     ` James Clark
2024-05-20  6:03     ` Jinlong Mao
2024-05-16  2:56 ` [PATCH v1 3/3] coresight: dummy: Add reserve atid support for dummy source Mao Jinlong

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).