From: Marc Zyngier <marc.zyngier@arm.com>
To: Sebastian Frias <sf84@laposte.net>, Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>, Mason <slash.tmp@free.fr>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [RFC PATCH v2] irqchip: add support for SMP irq router
Date: Wed, 20 Jul 2016 14:19:53 +0100 [thread overview]
Message-ID: <578F7A79.7050005@arm.com> (raw)
In-Reply-To: <578F5B52.3080203@laposte.net>
Thomas already commented on some aspects of the code, so I'm not going
to do another review (I'll do the next round).
On 20/07/16 12:06, Sebastian Frias wrote:
> Hi Thomas,
>
> Thanks for your comments.
> I appreciate the time you dedicated to the review.
> I will take your comments into account, in the meanwhile, and since this was
> a RFC, would it be possible to also get some feedback/comments from a
> conceptual point of view?
>
> I'm copy/pasting some of the questions I attached to the RFC email here:
>
> ----
> 2) In order to get a virq mapping for the domains associated with the outputs
> (the outputs connected to the GIC) I request a sort of "Fake HW IRQ"
> See irq-tango_v4.c:1400
>
> /* To request a virq we need a HW IRQ, use a "Fake HW IRQ" */
> hwirq = index + irqrouter->input_count + irqrouter->swirq_count;
Why are you even trying to establish a route from a made up interrupt to
a GIC line as the driver is just creating domains? Haven't you realized
that everything gets created on demand, as DT interrupt specifiers gets
parsed?
So the only time where you create a irq_fwspec out of thin air is when
you actually allocate *one* interrupt. And that's the only time. You
don't pre-populate stuff, you don't pre-allocate stuff.
> This feels a bit like a hack, so suggestions are welcome.
Just look at all the existing drivers in the tree that use stacked
domains. They are all based on the same template. At least try and
follow it.
>
> 3) The file is called 'irq-tango_v4.c' but I think it should match the
> compatible string, so I was thinking of renaming:
> irq-tango_v4.c => irq-sigma_smp_irqrouter.c
> irq-tango_v4.h => irq-sigma_smp_irqrouter.h
>
> What do you think?
And why should it match? Am I going to rename the GIC driver to be
"arm,gic-400_or_arm,arm11mp-gic_or_arm,arm1176jzf-devchip-gic_or_...c"?
No.
>
> 4) Do I have to do something more to handle the affinity stuff?
>
> 6) More of a theoretical question:
> I have to #include <dt-bindings/interrupt-controller/irq-tango_v4.h> from
No you don't. This is for DT people to play with, and I don't care about
it in the irqchip code.
Thanks,
M.
--
Jazz is not dead. It just smells funny...
next prev parent reply other threads:[~2016-07-20 13:20 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-30 16:03 [RFC PATCH v1] irqchip: add support for SMP irq router Sebastian Frias
2016-07-04 12:11 ` Mason
2016-07-05 12:30 ` Sebastian Frias
2016-07-05 14:41 ` Jason Cooper
2016-07-05 15:07 ` Mason
2016-07-05 16:16 ` Jason Cooper
2016-07-06 11:37 ` Sebastian Frias
2016-07-06 16:28 ` Jason Cooper
2016-07-20 11:42 ` Sebastian Frias
2016-07-20 13:56 ` Jason Cooper
2016-07-05 15:18 ` Sebastian Frias
2016-07-05 15:53 ` Jason Cooper
2016-07-05 16:38 ` Sebastian Frias
2016-07-05 16:48 ` Marc Zyngier
2016-07-05 16:59 ` Sebastian Frias
2016-07-05 17:13 ` Marc Zyngier
2016-07-05 19:24 ` Thomas Gleixner
2016-07-06 8:58 ` Marc Zyngier
2016-07-06 9:30 ` Thomas Gleixner
2016-07-06 10:49 ` Sebastian Frias
2016-07-06 13:54 ` Marc Zyngier
2016-07-06 16:49 ` Jason Cooper
2016-07-06 10:47 ` Sebastian Frias
2016-07-06 13:50 ` Marc Zyngier
2016-07-07 12:16 ` Sebastian Frias
2016-07-07 12:42 ` Marc Zyngier
2016-07-19 14:23 ` [RFC PATCH v2] " Sebastian Frias
2016-07-19 16:49 ` Thomas Gleixner
2016-07-20 11:06 ` Sebastian Frias
2016-07-20 13:19 ` Marc Zyngier [this message]
2016-07-20 14:38 ` Thomas Gleixner
2016-07-20 9:35 ` Marc Gonzalez
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=578F7A79.7050005@arm.com \
--to=marc.zyngier@arm.com \
--cc=jason@lakedaemon.net \
--cc=linux-kernel@vger.kernel.org \
--cc=sf84@laposte.net \
--cc=slash.tmp@free.fr \
--cc=tglx@linutronix.de \
/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).