All of lore.kernel.org
 help / color / mirror / Atom feed
From: jgchunter@gmail.com (Jon Hunter)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH] ARM: SOCFPGA: Enable PMU through the CTI
Date: Thu, 13 Jun 2013 17:41:26 +0100	[thread overview]
Message-ID: <51B9F636.5010708@gmail.com> (raw)
In-Reply-To: <20130515091205.GB12907@mudshark.cambridge.arm.com>


On 15/05/13 10:12, Will Deacon wrote:
> Hello,
> 
> [adding Jon Hunter]
> 
> On Wed, May 15, 2013 at 03:58:02AM +0100, dinguyen at altera.com wrote:
>> From: Dinh Nguyen <dinguyen@altera.com>
>>
>> SOCFPGA has a PMU(Performance Measurement Unit) that has its
>> IRQs routed through Coresight using the CTI(Cross-Trigger Interface).
>>
>> This patch enables the PMU and initializes the CTI for usage by
>> oprofile/perfmon.
>>
>> A lot of the code/idea was taken from this:
>> https://patchwork.kernel.org/patch/1432541/
>>
>> Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
>> CC: Ming Lei <ming.lei@canonical.com>
>> CC: Will Deacon <will.deacon@arm.com>
>> Cc: Paul Walmsley <paul@pwsan.com>
>> Cc: Russell King <linux@arm.linux.org.uk>
>> CC: Arnd Bergmann <arnd@arndb.de>
>> CC: Olof Johansson <olof@lixom.net>
>> Cc: Pavel Machek <pavel@denx.de>
>> ---
>>  arch/arm/boot/dts/socfpga.dtsi      |   18 +++++
>>  arch/arm/include/asm/pmu.h          |    3 +
>>  arch/arm/kernel/perf_event.c        |   16 +++++
>>  arch/arm/mach-socfpga/Makefile      |    1 +
>>  arch/arm/mach-socfpga/socfpga.c     |   21 +++++-
>>  arch/arm/mach-socfpga/socfpga_cti.c |  125 +++++++++++++++++++++++++++++++++++
>>  arch/arm/mach-socfpga/socfpga_cti.h |   16 +++++
>>  7 files changed, 199 insertions(+), 1 deletion(-)
>>  create mode 100644 arch/arm/mach-socfpga/socfpga_cti.c
>>  create mode 100644 arch/arm/mach-socfpga/socfpga_cti.h
> 
> Whilst it's great to see somebody else making use of CTI, I think this would
> benefit from Jon's separate CTI driver that he posted once:
> 
>   http://lists.infradead.org/pipermail/linux-arm-kernel/2012-December/137156.html
> 
> Jon -- would you be interested in reviving that work so the socfpga guys can
> make use of it?

Sorry the delay I have been moving house!

Anyway, although I would be interesting in reviving and completing the
work on cti, realistically, I am not sure when I would get to it now. I
do have the latest code on my github account [1]. However, probably
still needs more work before it is ready for the mainline in sorting out
the DT bindings, etc. I was also thinking about making the cti look like
a interrupt controller in DT as that is the way it is currently being
used. However, I am not implemented that but should not be much work.

Cheers
Jon

[1] https://github.com/jonhunter/linux/commits/dev-cti

  reply	other threads:[~2013-06-13 16:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-15  2:58 [RFC PATCH] ARM: SOCFPGA: Enable PMU through the CTI dinguyen at altera.com
2013-05-15  9:12 ` Will Deacon
2013-06-13 16:41   ` Jon Hunter [this message]
2013-05-15  9:46 ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51B9F636.5010708@gmail.com \
    --to=jgchunter@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.