From: thomas.petazzoni@free-electrons.com (Thomas Petazzoni)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/6] irqchip: irq-mvebu-gicp: new driver for Marvell GICP
Date: Tue, 30 May 2017 17:25:00 +0200 [thread overview]
Message-ID: <20170530172500.7bf522e1@free-electrons.com> (raw)
In-Reply-To: <5b882159-4de1-5a8e-5737-56542f2aee3a@arm.com>
Hello,
On Tue, 30 May 2017 16:17:41 +0100, Marc Zyngier wrote:
> > Indeed. But do we care? Can an edge interrupt be left pending from the
> > firmware?
>
> I cannot see why not. It is just as likely as a level interrupt.
OK.
> > I'm not sure how to use this irq_set_irqchip_state() API. I guess it
> > needs a virq that corresponds to the GIC SPI interrupt, and I'm not
> > sure how to get that.
>
> You do have the virtual interrupt when doing the allocation (it is
> passed as a parameter). So you could perform the mapping (call into the
> lower layers), and clear the pending bit using the above API.
So in mvebu_icu_irq_domain_alloc(), if I do:
irq_set_irqchip_state(virq, IRQCHIP_STATE_MASKED, true);
this will go all the way to the ->irq_set_irqchip_state() in the GIC? I
thought the virq we had was referring to an irq from the ICU domain,
not from the GIC one. But maybe I'm still getting confused by all these
irq domains.
> But maybe you don't have any edge interrupt on this SoC, and it doesn't
> matter.
We currently don't have any in the devices we support in the SoC, but
since the ICU does support edge interrupts explicitly, it's nicer if we
can get this right. Plus if this actually works, we don't need the
marvell,gicp "driver" anymore.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
WARNING: multiple messages have this Message-ID (diff)
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: Marc Zyngier <marc.zyngier@arm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Jason Cooper <jason@lakedaemon.net>,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
Rob Herring <robh+dt@kernel.org>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Kumar Gala <galak@codeaurora.org>, Andrew Lunn <andrew@lunn.ch>,
Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>,
Gregory Clement <gregory.clement@free-electrons.com>,
linux-arm-kernel@lists.infradead.org,
Nadav Haklai <nadavh@marvell.com>,
Hanna Hawa <hannah@marvell.com>,
Yehuda Yitschak <yehuday@marvell.com>,
Antoine Tenart <antoine.tenart@free-electrons.com>
Subject: Re: [PATCH 3/6] irqchip: irq-mvebu-gicp: new driver for Marvell GICP
Date: Tue, 30 May 2017 17:25:00 +0200 [thread overview]
Message-ID: <20170530172500.7bf522e1@free-electrons.com> (raw)
In-Reply-To: <5b882159-4de1-5a8e-5737-56542f2aee3a@arm.com>
Hello,
On Tue, 30 May 2017 16:17:41 +0100, Marc Zyngier wrote:
> > Indeed. But do we care? Can an edge interrupt be left pending from the
> > firmware?
>
> I cannot see why not. It is just as likely as a level interrupt.
OK.
> > I'm not sure how to use this irq_set_irqchip_state() API. I guess it
> > needs a virq that corresponds to the GIC SPI interrupt, and I'm not
> > sure how to get that.
>
> You do have the virtual interrupt when doing the allocation (it is
> passed as a parameter). So you could perform the mapping (call into the
> lower layers), and clear the pending bit using the above API.
So in mvebu_icu_irq_domain_alloc(), if I do:
irq_set_irqchip_state(virq, IRQCHIP_STATE_MASKED, true);
this will go all the way to the ->irq_set_irqchip_state() in the GIC? I
thought the virq we had was referring to an irq from the ICU domain,
not from the GIC one. But maybe I'm still getting confused by all these
irq domains.
> But maybe you don't have any edge interrupt on this SoC, and it doesn't
> matter.
We currently don't have any in the devices we support in the SoC, but
since the ICU does support edge interrupts explicitly, it's nicer if we
can get this right. Plus if this actually works, we don't need the
marvell,gicp "driver" anymore.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2017-05-30 15:25 UTC|newest]
Thread overview: 106+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-30 9:16 [PATCH 0/6] Add support for the ICU unit in Marvell Armada 7K/8K Thomas Petazzoni
2017-05-30 9:16 ` Thomas Petazzoni
2017-05-30 9:16 ` Thomas Petazzoni
2017-05-30 9:16 ` [PATCH 1/6] dt-bindings: interrupt-controller: add DT binding for the Marvell GICP Thomas Petazzoni
2017-05-30 9:16 ` Thomas Petazzoni
2017-05-30 9:16 ` [PATCH 2/6] dt-bindings: interrupt-controller: add DT binding for the Marvell ICU Thomas Petazzoni
2017-05-30 9:16 ` Thomas Petazzoni
2017-05-30 10:37 ` Marc Zyngier
2017-05-30 10:37 ` Marc Zyngier
2017-05-30 10:37 ` Marc Zyngier
2017-05-30 11:41 ` Thomas Petazzoni
2017-05-30 11:41 ` Thomas Petazzoni
2017-05-30 11:41 ` Thomas Petazzoni
2017-05-30 9:16 ` [PATCH 3/6] irqchip: irq-mvebu-gicp: new driver for Marvell GICP Thomas Petazzoni
2017-05-30 9:16 ` Thomas Petazzoni
2017-05-30 13:55 ` Marc Zyngier
2017-05-30 13:55 ` Marc Zyngier
2017-05-30 13:55 ` Marc Zyngier
2017-05-30 14:54 ` Thomas Petazzoni
2017-05-30 14:54 ` Thomas Petazzoni
2017-05-30 14:54 ` Thomas Petazzoni
2017-05-30 15:17 ` Marc Zyngier
2017-05-30 15:17 ` Marc Zyngier
2017-05-30 15:17 ` Marc Zyngier
2017-05-30 15:25 ` Thomas Petazzoni [this message]
2017-05-30 15:25 ` Thomas Petazzoni
2017-05-30 15:33 ` Marc Zyngier
2017-05-30 15:33 ` Marc Zyngier
2017-05-30 15:33 ` Marc Zyngier
2017-05-30 9:16 ` [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Thomas Petazzoni
2017-05-30 9:16 ` Thomas Petazzoni
2017-05-30 11:10 ` Marc Zyngier
2017-05-30 11:10 ` Marc Zyngier
2017-05-30 12:05 ` Thomas Petazzoni
2017-05-30 12:05 ` Thomas Petazzoni
2017-05-30 12:05 ` Thomas Petazzoni
2017-05-30 13:06 ` Marc Zyngier
2017-05-30 13:06 ` Marc Zyngier
2017-05-30 13:06 ` Marc Zyngier
2017-05-30 13:17 ` Thomas Petazzoni
2017-05-30 13:17 ` Thomas Petazzoni
2017-05-30 13:17 ` Thomas Petazzoni
2017-05-30 13:40 ` Marc Zyngier
2017-05-30 13:40 ` Marc Zyngier
2017-06-25 6:47 ` [EXT] " Yehuda Yitschak
2017-06-25 6:47 ` Yehuda Yitschak
2017-05-30 12:04 ` Antoine Tenart
2017-05-30 12:04 ` Antoine Tenart
2017-05-30 12:04 ` Antoine Tenart
2017-05-30 12:19 ` Russell King - ARM Linux
2017-05-30 12:19 ` Russell King - ARM Linux
2017-05-30 12:19 ` Russell King - ARM Linux
2017-05-30 12:33 ` Thomas Petazzoni
2017-05-30 12:33 ` Thomas Petazzoni
2017-05-30 12:33 ` Thomas Petazzoni
2017-05-30 12:56 ` Russell King - ARM Linux
2017-05-30 12:56 ` Russell King - ARM Linux
2017-05-30 12:56 ` Russell King - ARM Linux
2017-05-30 13:27 ` Andrew Lunn
2017-05-30 13:27 ` Andrew Lunn
2017-05-30 13:27 ` Andrew Lunn
2017-05-30 13:34 ` Thomas Petazzoni
2017-05-30 13:34 ` Thomas Petazzoni
2017-05-30 13:34 ` Thomas Petazzoni
2017-05-30 13:42 ` Russell King - ARM Linux
2017-05-30 13:42 ` Russell King - ARM Linux
2017-05-30 13:42 ` Russell King - ARM Linux
2017-05-30 14:03 ` Andrew Lunn
2017-05-30 14:03 ` Andrew Lunn
2017-05-30 14:03 ` Andrew Lunn
2017-05-30 14:36 ` Russell King - ARM Linux
2017-05-30 14:36 ` Russell King - ARM Linux
2017-05-30 14:36 ` Russell King - ARM Linux
2017-05-30 14:26 ` Thomas Petazzoni
2017-05-30 14:26 ` Thomas Petazzoni
2017-05-30 14:26 ` Thomas Petazzoni
2017-05-30 14:39 ` Russell King - ARM Linux
2017-05-30 14:39 ` Russell King - ARM Linux
2017-05-30 14:39 ` Russell King - ARM Linux
2017-05-30 14:49 ` Andrew Lunn
2017-05-30 14:49 ` Andrew Lunn
2017-05-30 14:49 ` Andrew Lunn
2017-05-30 15:08 ` Russell King - ARM Linux
2017-05-30 15:08 ` Russell King - ARM Linux
2017-05-30 13:28 ` Thomas Petazzoni
2017-05-30 13:28 ` Thomas Petazzoni
2017-05-30 13:28 ` Thomas Petazzoni
2017-05-30 9:16 ` [PATCH 5/6] arm64: marvell: enable ICU and GICP drivers Thomas Petazzoni
2017-05-30 9:16 ` Thomas Petazzoni
2017-05-30 9:16 ` Thomas Petazzoni
2017-05-30 9:16 ` [PATCH 6/6] arm64: dts: marvell: enable GICP and ICU on Armada 7K/8K Thomas Petazzoni
2017-05-30 9:16 ` Thomas Petazzoni
2017-05-30 14:02 ` Marc Zyngier
2017-05-30 14:02 ` Marc Zyngier
2017-05-30 14:02 ` Marc Zyngier
2017-05-30 14:28 ` Thomas Petazzoni
2017-05-30 14:28 ` Thomas Petazzoni
2017-05-30 14:28 ` Thomas Petazzoni
2017-05-30 9:16 ` [PATCH 6/6] arm64: dts: marvell: enable GICP and ICU Thomas Petazzoni
2017-05-30 9:16 ` Thomas Petazzoni
2017-05-30 9:22 ` Thomas Petazzoni
2017-05-30 9:22 ` Thomas Petazzoni
2017-05-30 9:22 ` Thomas Petazzoni
2017-05-30 14:15 ` [PATCH 0/6] Add support for the ICU unit in Marvell Armada 7K/8K Marc Zyngier
2017-05-30 14:15 ` Marc Zyngier
2017-05-30 14:15 ` 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=20170530172500.7bf522e1@free-electrons.com \
--to=thomas.petazzoni@free-electrons.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.