linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] coresight: Add remote etm support
@ 2023-11-07  6:09 Mao Jinlong
  2023-11-07  6:09 ` [PATCH v1 1/2] " Mao Jinlong
  2023-11-07  6:09 ` [PATCH v1 2/2] dt-bindings: arm: Add remote etm driver Mao Jinlong
  0 siblings, 2 replies; 12+ messages in thread
From: Mao Jinlong @ 2023-11-07  6:09 UTC (permalink / raw)
  To: Suzuki K Poulose, Mike Leach, James Clark, Alexander Shishkin,
	Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: Mao Jinlong, linux-kernel, coresight, linux-arm-kernel,
	linux-arm-msm, devicetree, Yuanfang Zhang, Tao Zhang

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

Mao Jinlong (2):
  coresight: Add remote etm support
  dt-bindings: arm: Add remote etm driver

 .../arm/qcom,coresight-remote-etm.yaml        |  59 ++++
 drivers/hwtracing/coresight/Kconfig           |   9 +
 drivers/hwtracing/coresight/Makefile          |   1 +
 drivers/hwtracing/coresight/coresight-core.c  |   3 +
 drivers/hwtracing/coresight/coresight-qmi.h   | 109 ++++++
 .../coresight/coresight-remote-etm.c          | 325 ++++++++++++++++++
 include/linux/coresight.h                     |   1 +
 7 files changed, 507 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/qcom,coresight-remote-etm.yaml
 create mode 100644 drivers/hwtracing/coresight/coresight-qmi.h
 create mode 100644 drivers/hwtracing/coresight/coresight-remote-etm.c

-- 
2.41.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2023-11-20 22:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-07  6:09 [PATCH v1 0/2] coresight: Add remote etm support Mao Jinlong
2023-11-07  6:09 ` [PATCH v1 1/2] " Mao Jinlong
2023-11-07 15:26   ` Krzysztof Kozlowski
2023-11-09  6:17     ` Jinlong Mao
2023-11-08  2:34   ` kernel test robot
2023-11-08 11:19   ` James Clark
2023-11-09  6:19     ` Jinlong Mao
2023-11-07  6:09 ` [PATCH v1 2/2] dt-bindings: arm: Add remote etm driver Mao Jinlong
2023-11-07 15:30   ` Krzysztof Kozlowski
2023-11-07 15:31   ` Krzysztof Kozlowski
2023-11-16 17:22   ` Krzysztof Kozlowski
2023-11-20 22:39     ` Trilok Soni

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