[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.02.1309122335440.4089@ionos.tec.linutronix.de>
Date: Fri, 13 Sep 2013 00:22:33 +0200 (CEST)
From: Thomas Gleixner <tglx@...utronix.de>
To: Santosh Shilimkar <santosh.shilimkar@...com>
cc: Sricharan R <r.sricharan@...com>, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, linux-doc@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-omap@...r.kernel.org,
linus.walleij@...aro.org, linux@....linux.org.uk, tony@...mide.com,
rnayak@...com
Subject: Re: [RFC PATCH 1/4] DRIVERS: IRQCHIP: Add crossbar irqchip driver
On Thu, 12 Sep 2013, Santosh Shilimkar wrote:
> Specifically for the IRQ case addressed here, the cross-bar IP
> sits between the interrupt controller and peripheral interrupts.
>
> CPU <-- GIC <----- CROSSBAR <----- PERIPHERAL IRQs
>
> Just to expand it better, cross-bar input IRQ lines are more than
> what a GIC IRQ controller can support.
> e.q Total 250 peripheral IRQ lines out of which GIC support
> only 160 IRQ lines.
>
> So the idea here is to dynamically map the IRQ lines at
> cross-bar level to pick based on request_irq() so that one
> can optimize the use of limited IRQ lines at the GIC level.
> Strictly speaking the need is just establish the IRQ
> connection from peripheral to GIC and thats achieved
> at the request_irq() level.
>
> Earlier approach was to statically build this connections
> using the DT information in a separate driver probe but
> it had limitations of fixing the IRQ map and taking away
> flexibility what this IP provide.
>
> Hope this gives better picture to you behind the patch
> series.
Yes. I halfways understand what you are trying to achieve.
So CROSSBAR is a routing block between the peripheral and the GIC in
order to expand the number of possible interrupts.
Now the real question is, how that expansion mechanism is supposed to
work. There are two possible scenarios:
1) Expand the number of handled interrupts beyond the GIC capacity:
That requires a mechanism in CROSSBAR to map several CROSSBAR
interrupts to a particular GIC interrupt and provide a demux
mechanism to invoke the shared handlers.
2) Provide a mapping mechanism between possibly 250 interrupt numbers
and a limitation of a total 160 active interrupts by the underlying
GIC.
What are you trying to achieve?
Thanks,
tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists