Thread (5 messages) 5 messages, 3 authors, 2016-08-19

[PATCH] arm: l2x0: add PMU support

flat view
STALE3707d

From: Kim Phillips <hidden>
Date: 2016-08-19 00:05:46

On Wed, 17 Aug 2016 17:26:31 +0100
Mark Rutland [off-list ref] wrote:
The L2C-220 (AKA L220) and L2C-310 (AKA PL310) cache controllers feature
a Performance Monitoring Unit (PMU), which can be useful for tuning
and/or debugging. This hardware is always present and the relevant
registers are accessible to non-secure accesses. Thus, no special
firmware interface is necessary.

This patch adds support for the PMU, plugging into the usual perf
infrastructure. The overflow interrupt is not always available (e.g. on
RealView PBX A9 it is not wired up at all), and the hardware counters
saturate, so the driver does not make use of this. Instead, the driver
periodically polls and reset counters as required to avoid losing
events due to saturation.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Kim Phillips <redacted>
Cc: Pawel Moll <redacted>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Will Deacon <redacted>
---
FWIW, I was able to test this successfully on a pandaboard.

Thanks,

Kim
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help