From: scaudle@codeaurora.org (Stephen Caudle)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] [ARM] gic: Unmask private interrupts on all cores during IRQ enable
Date: Thu, 09 Dec 2010 11:24:19 -0500 [thread overview]
Message-ID: <4D0102B3.8010302@codeaurora.org> (raw)
In-Reply-To: <20101201171425.GA29347@n2100.arm.linux.org.uk>
On 12/01/2010 12:14 PM, Russell King - ARM Linux wrote:
> On Wed, Dec 01, 2010 at 11:36:10AM -0500, Stephen Caudle wrote:
>> On 11/30/2010 01:07 PM, Russell King - ARM Linux wrote:
>>> Sorry, missed this.
>>>
>>> If it's a private peripheral, it can only be accessed from its associated
>>> CPU. What that means is you don't want to enable the interrupt on other
>>> CPUs as the peripheral may not be present or initialized on that CPU.
>>
>> Understood. But the alternative is to require all code that requests a
>> PPI to have to enable the IRQ on the other cores. This seems
>> unreasonable to me.
>
> It is also unreasonable to have one core enabling the PPI on other
> cores where the hardware behind the interrupt may not have been
> initialized yet. If it is a private interrupt for a private peripheral,
> then only the associated CPU should be enabling that interrupt.
>
> I guess this is something which genirq can't cope with, in which case
> either genirq needs to be modified to cope with private CPU interrupts,
> which are controlled individually by their associated CPU, or we need a
> private interface to support this.
I see your point. Our immediate need for this is to support a
performance monitor interrupt that happens to be a PPI. It is used by
perf events (and subsequently, oprofile).
Since PPIs are so machine-specific, I started looking into patching
perf_events.c by adding a machine specific function to handle the PMU
IRQ request. For mach-msm, we would call request_irq like normal, but
also unmask the performance monitor interrupt on the other cores. The
downside to this is that a machine specific implementation would be
needed anytime a PPI is requested, not just in perf_events.c.
Then, I saw Thomas' email regarding our local timer PPI:
http://lists.infradead.org/pipermail/linux-arm-kernel/2010-December/033840.html.
Russell, before I submit another patch, I would like to know if you
prefer a more generic approach like Thomas suggests, or a
machine-specific approach like I have described?
Thanks,
Stephen
--
Sent by a consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
next prev parent reply other threads:[~2010-12-09 16:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-03 21:46 [PATCH v2] [ARM] gic: Unmask private interrupts on all cores during IRQ enable Stephen Caudle
2010-11-30 15:42 ` Stephen Caudle
2010-11-30 18:07 ` Russell King - ARM Linux
2010-12-01 16:36 ` Stephen Caudle
2010-12-01 17:14 ` Russell King - ARM Linux
2010-12-09 16:24 ` Stephen Caudle [this message]
2010-12-16 14:54 ` Stephen Caudle
2010-12-16 15:03 ` Russell King - ARM Linux
2010-12-16 15:08 ` Stephen Caudle
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=4D0102B3.8010302@codeaurora.org \
--to=scaudle@codeaurora.org \
--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 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).