From: Thomas Gleixner <tglx@linutronix.de>
To: David Daney <ddaney@caviumnetworks.com>
Cc: David Daney <david.daney@cavium.com>,
Linus Walleij <linus.walleij@linaro.org>,
Alexandre Courbot <gnurou@gmail.com>,
Mark Rutland <mark.rutland@arm.com>,
Marc Zyngier <marc.zyngier@arm.com>,
linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v7 2/5] genirq: Add handle_fasteoi_{level,edge}_irq flow handlers.
Date: Wed, 16 Aug 2017 18:26:06 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.20.1708161824250.1987@nanos> (raw)
In-Reply-To: <5d9b51c1-a2bd-9932-8917-a743854192db@caviumnetworks.com>
On Wed, 16 Aug 2017, David Daney wrote:
> On 08/14/2017 03:25 AM, Thomas Gleixner wrote:
> > On Wed, 9 Aug 2017, David Daney wrote:
> > > #ifdef CONFIG_IRQ_DOMAIN_HIERARCHY
> >
> > Can we please make them conditional in order not to bloat all kernels with
> > it? Like we do for handle_edge_eoi_irq() ?
>
>
> Yes. Because these are initially used by exactly one driver, I could just
> make it conditional on that driver being enabled.
>
> Alternately, I could invent a new Kconfig symbol to gate these and select that
> when the driver is enabled.
>
> Do you have a preference?
The latter.
> > Hmm. That's quite different to the way we handle edge interrupts
> > normally. See handle_edge_irq() and handle_edge_eoi_irq().
>
> Yes, these are not standard edge interrupts. If they were, I wouldn't need
> new handlers.
>
> For this particular irqdomain hierarchy, I need exactly handle_fasteoi_irq()
> semantics with the addition of a call to the chip->irq_ack() function *before*
> the handler is called. I chose to "clone" and enhance handle_fasteoi_irq(),
> rather than adding hooks with runtime checks to the existing
> handle_fasteoi_irq(). There is code bloat this way, but a smaller risk of
> breaking other things.
>
> Any additional "stuff" that is not needed to cover this use case would just be
> adding dead code. In the future, if there is a need to enable more users of
> these functions, I would not object to doing more.
Ok, so we might rename that thing to something else than edge() as all
edge handlers have this processing loop which is required not to lose
edges.
Thanks
tglx
next prev parent reply other threads:[~2017-08-16 16:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-09 22:51 [PATCH v7 0/5] genirq/gpio: Add driver for ThunderX and OCTEON-TX SoCs David Daney
2017-08-09 22:51 ` [PATCH v7 1/5] genirq: Export more irq_chip_*_parent() functions David Daney
2017-08-09 22:51 ` [PATCH v7 2/5] genirq: Add handle_fasteoi_{level,edge}_irq flow handlers David Daney
2017-08-14 10:25 ` Thomas Gleixner
2017-08-16 15:59 ` David Daney
2017-08-16 16:26 ` Thomas Gleixner [this message]
2017-08-09 22:51 ` [PATCH v7 3/5] irqdomain: Add irq_domain_{push,pop}_irq() functions David Daney
2017-08-15 13:50 ` Marc Zyngier
2017-08-15 18:00 ` David Daney
2017-08-15 19:02 ` Marc Zyngier
2017-08-09 22:51 ` [PATCH v7 4/5] gpio: Add gpio driver support for ThunderX and OCTEON-TX David Daney
2017-08-09 22:51 ` [PATCH v7 5/5] MAINTAINERS: Add entry for THUNDERX GPIO Driver David Daney
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=alpine.DEB.2.20.1708161824250.1987@nanos \
--to=tglx@linutronix.de \
--cc=david.daney@cavium.com \
--cc=ddaney@caviumnetworks.com \
--cc=gnurou@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marc.zyngier@arm.com \
--cc=mark.rutland@arm.com \
/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