devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] perf: Add xilinx APM support
@ 2022-12-22  8:42 Shubhrajyoti Datta
  2022-12-22  8:42 ` [PATCH v2 1/2] dt-bindings: Add the binding doc for xilinx APM Shubhrajyoti Datta
  2022-12-22  8:42 ` [PATCH v2 2/2] perf: Add xilinx APM support Shubhrajyoti Datta
  0 siblings, 2 replies; 8+ messages in thread
From: Shubhrajyoti Datta @ 2022-12-22  8:42 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: git, devicetree, michal.simek, krzysztof.kozlowski+dt, robh+dt


The programmable AXI performance monitors (APM) collect real-time
transaction metrics at multiple points on the PS AXI interconnect
to help system software profile real-time activity.
In our platform we have it in PL and also some of the hardened
instances in PS.

Perf is a profiler tool for Linux 2.6+ based systems that abstracts
away CPU hardware differences in Linux performance measurements and
presents a simple commandline interface.

Perf is based on the perf_events interface exported by recent versions of
the Linux kernel. Therefore we register to the framework for the APM.

The IP has support for multiple slots and ranges that we are supporting
by extending the sysfs interface.

Datasheet:
https://docs.xilinx.com/v/u/en-US/pg037_axi_perf_mon
Also the Hardened instances described in
AXI Performance Monitor of ug1085.


Changes in v2:
 - Use boolean for the values xlnx,enable-profile , xlnx,enable-trace
and xlnx,enable-event-count
- Update the file name
- use generic node name pmu
    - Fix a warn

Shubhrajyoti Datta (2):
  dt-bindings: Add the binding doc for xilinx APM
  perf: Add xilinx APM support

 .../bindings/perf/xlnx,axi-perf-monitor.yaml  | 133 ++++
 drivers/perf/Kconfig                          |  11 +
 drivers/perf/Makefile                         |   1 +
 drivers/perf/xilinx_apm.c                     | 666 ++++++++++++++++++
 4 files changed, 811 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/perf/xlnx,axi-perf-monitor.yaml
 create mode 100644 drivers/perf/xilinx_apm.c

-- 
2.17.1


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

end of thread, other threads:[~2023-05-10  6:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-22  8:42 [PATCH v2 0/2] perf: Add xilinx APM support Shubhrajyoti Datta
2022-12-22  8:42 ` [PATCH v2 1/2] dt-bindings: Add the binding doc for xilinx APM Shubhrajyoti Datta
2022-12-22  9:52   ` Krzysztof Kozlowski
2022-12-23  4:55     ` Datta, Shubhrajyoti
2022-12-23  7:54       ` Krzysztof Kozlowski
2022-12-22  8:42 ` [PATCH v2 2/2] perf: Add xilinx APM support Shubhrajyoti Datta
2023-01-13 20:10   ` Robin Murphy
2023-05-10  6:16     ` Datta, Shubhrajyoti

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