devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] coresight: Add remote etm support
@ 2024-08-07  7:10 Mao Jinlong
  2024-08-07  7:10 ` [PATCH v2 1/2] dt-bindings: arm: Add qcom,inst-id for remote etm Mao Jinlong
  2024-08-07  7:10 ` [PATCH v2 2/2] coresight: Add remote etm support Mao Jinlong
  0 siblings, 2 replies; 9+ messages in thread
From: Mao Jinlong @ 2024-08-07  7:10 UTC (permalink / raw)
  To: Suzuki K Poulose, Mike Leach, James Clark, Alexander Shishkin,
	Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Mao Jinlong, linux-kernel, coresight, linux-arm-kernel,
	linux-arm-msm, devicetree

The system on chip (SoC) consists of main APSS(Applications processor
subsytem) and additional processors like modem, lpass. There is
coresight-etm driver for etm trace of APSS. Coresight remote etm driver
is for enabling and disabling the etm trace of remote processors.
It uses QMI interface to communicate with remote processors' software
and uses coresight framework to configure the connection from remote
etm source to TMC sinks.

Example to capture the remote etm trace:

Enable source:
echo 1 > /sys/bus/coresight/devices/tmc_etf0/enable_sink
echo 1 > /sys/bus/coresight/devices/remote_etm0/enable_source

Capture the trace:
cat /dev/tmc_etf0 > /data/remote_etm.bin

Disable source:
echo 0 > /sys/bus/coresight/devices/remote_etm0/enable_source

Changes since V1:
1. Remove unused content
2. Use CORESIGHT_DEV_SUBTYPE_SOURCE_OTHERS as remote etm source type.
3. Use enabled instead of enable in driver data.
4. Validate instance id value where it's read from the DT.

Mao Jinlong (2):
  dt-bindings: arm: Add qcom,inst-id for remote etm
  coresight: Add remote etm support

 .../arm/qcom,coresight-remote-etm.yaml        |  10 +
 drivers/hwtracing/coresight/Kconfig           |  13 +
 drivers/hwtracing/coresight/Makefile          |   1 +
 drivers/hwtracing/coresight/coresight-qmi.h   |  89 +++++
 .../coresight/coresight-remote-etm.c          | 308 ++++++++++++++++++
 5 files changed, 421 insertions(+)
 create mode 100644 drivers/hwtracing/coresight/coresight-qmi.h
 create mode 100644 drivers/hwtracing/coresight/coresight-remote-etm.c

-- 
2.41.0


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

end of thread, other threads:[~2024-08-13 17:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-07  7:10 [PATCH v2 0/2] coresight: Add remote etm support Mao Jinlong
2024-08-07  7:10 ` [PATCH v2 1/2] dt-bindings: arm: Add qcom,inst-id for remote etm Mao Jinlong
2024-08-08 10:25   ` Suzuki K Poulose
2024-08-13  7:30     ` Jinlong Mao
2024-08-13 17:41   ` Rob Herring
2024-08-07  7:10 ` [PATCH v2 2/2] coresight: Add remote etm support Mao Jinlong
2024-08-07 21:27   ` kernel test robot
2024-08-07 23:00   ` kernel test robot
2024-08-08  2:03   ` kernel test robot

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