From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: Some question about GIC v1 setting
Date: Fri, 15 Nov 2013 16:59:39 +0000 [thread overview]
Message-ID: <20131115165939.GO16735@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <CANudz+sg6MiUZaTELF4G=NMfwj--K9j10JrYh1cm2VAjfvq6MA@mail.gmail.com>
On Sat, Nov 16, 2013 at 12:55:11AM +0800, loody wrote:
> hi all:
> I use arm cortex A9 smp with GIC v1 system.
> And my kernel is 3.8.13.
>
> I have some questions:
> 1. From GIc v1 spec, we can modify irq priority.
> (ICDIPRn, Interrupt Priority Rigisters)
> how could we do that in kernel? Did kernel provide any API of Irq
> to reach that goal?
No. It's pointless. The kernel doesn't support interrupting one IRQ
while another is already in progress.
> 2. From Gic V1 spec, we can assign 1 irq to multi-core.
> (ICDIPTRn, Interrupt Processor Targets Registers)
> Is there similar API in kernel to let 1 irq possibility to be
> handled by multi-cores?
No. All that does is lead to cores being woken up and racing on locks,
and then causing IRQs to be spuriously marked as false (because there's
nothing for the handlers to do on the cores which lost out).
If you want to redirect IRQs to different cores, run the userspace
irqbalance daemon.
next prev parent reply other threads:[~2013-11-15 16:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-15 16:55 Some question about GIC v1 setting loody
2013-11-15 16:59 ` Russell King - ARM Linux [this message]
2013-11-16 7:23 ` loody
2013-11-16 8:08 ` Marc Zyngier
2013-11-23 9:12 ` loody
2013-11-25 9:37 ` Marc Zyngier
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=20131115165939.GO16735@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--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).