* IRQ masking hierarchy with GIC as the root
@ 2017-02-06 12:22 Lucas Stach
2017-02-06 13:40 ` Marc Zyngier
0 siblings, 1 reply; 2+ messages in thread
From: Lucas Stach @ 2017-02-06 12:22 UTC (permalink / raw)
To: linux-arm-kernel
Hi Marc and others,
in the conversion of the old GIC arch_extension to proper stacked IRQ
domain chips you added calls to irq_chip_mask_parent() to both the Tegra
LIC (drivers/irqchip/irq-tegra.c) and the i.MX GPC
(arch/arm/mach-imx/gpc.c).
Both IRQ controllers should be able to mask the IRQ on their own,
meaning the IRQ will not reach the GIC if it is masked at this hierarchy
level. Is it safe to remove the the call to mask the IRQ at the GIC
level, or is there something more to it that I don't (yet) see?
Thanks,
Lucas
^ permalink raw reply [flat|nested] 2+ messages in thread
* IRQ masking hierarchy with GIC as the root
2017-02-06 12:22 IRQ masking hierarchy with GIC as the root Lucas Stach
@ 2017-02-06 13:40 ` Marc Zyngier
0 siblings, 0 replies; 2+ messages in thread
From: Marc Zyngier @ 2017-02-06 13:40 UTC (permalink / raw)
To: linux-arm-kernel
On 06/02/17 12:22, Lucas Stach wrote:
> Hi Marc and others,
>
> in the conversion of the old GIC arch_extension to proper stacked IRQ
> domain chips you added calls to irq_chip_mask_parent() to both the Tegra
> LIC (drivers/irqchip/irq-tegra.c) and the i.MX GPC
> (arch/arm/mach-imx/gpc.c).
>
> Both IRQ controllers should be able to mask the IRQ on their own,
> meaning the IRQ will not reach the GIC if it is masked at this hierarchy
> level. Is it safe to remove the the call to mask the IRQ at the GIC
> level, or is there something more to it that I don't (yet) see?
It should be safe, as long as you can guarantee that the LIC (resp. the
GPC) is always active between the device and the GIC (it never goes in
some bypass mode). If that condition holds, you can then cut it short.
Thanks,
M.
--
Jazz is not dead. It just smells funny...
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-06 13:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-06 12:22 IRQ masking hierarchy with GIC as the root Lucas Stach
2017-02-06 13:40 ` Marc Zyngier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox