Re: irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-30 Thread David Daney
On 01/30/2017 05:32 AM, Thomas Gleixner wrote: On Fri, 13 Jan 2017, David Daney wrote: At the point where the handle_*_irq() functions call handle_irq_event(), we need to 9optionally) do something both immediately before and after the call to handle_irq_event(). In irq_chip add a function:

Re: irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-30 Thread David Daney
On 01/30/2017 05:32 AM, Thomas Gleixner wrote: On Fri, 13 Jan 2017, David Daney wrote: At the point where the handle_*_irq() functions call handle_irq_event(), we need to 9optionally) do something both immediately before and after the call to handle_irq_event(). In irq_chip add a function:

Re: irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-30 Thread Thomas Gleixner
On Fri, 13 Jan 2017, David Daney wrote: > At the point where the handle_*_irq() functions call handle_irq_event(), we > need to 9optionally) do something both immediately before and after the call > to handle_irq_event(). > > In irq_chip add a function: > > void (*irq_handle)(struct irq_data

Re: irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-30 Thread Thomas Gleixner
On Fri, 13 Jan 2017, David Daney wrote: > At the point where the handle_*_irq() functions call handle_irq_event(), we > need to 9optionally) do something both immediately before and after the call > to handle_irq_event(). > > In irq_chip add a function: > > void (*irq_handle)(struct irq_data

Re: irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-13 Thread David Daney
On 01/13/2017 10:45 AM, Marc Zyngier wrote: On 13/01/17 17:37, David Daney wrote: On 01/13/2017 08:15 AM, Marc Zyngier wrote: Thanks Linus for looping me in. On 12/01/17 22:35, David Daney wrote: Hi Thomas, I am trying to figure out how to handle this situation:

Re: irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-13 Thread David Daney
On 01/13/2017 10:45 AM, Marc Zyngier wrote: On 13/01/17 17:37, David Daney wrote: On 01/13/2017 08:15 AM, Marc Zyngier wrote: Thanks Linus for looping me in. On 12/01/17 22:35, David Daney wrote: Hi Thomas, I am trying to figure out how to handle this situation:

Re: irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-13 Thread Marc Zyngier
On 13/01/17 17:37, David Daney wrote: > On 01/13/2017 08:15 AM, Marc Zyngier wrote: >> Thanks Linus for looping me in. >> >> On 12/01/17 22:35, David Daney wrote: >>> Hi Thomas, >>> >>> I am trying to figure out how to handle this situation: >>> >>>handle_level_irq() >>>

Re: irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-13 Thread Marc Zyngier
On 13/01/17 17:37, David Daney wrote: > On 01/13/2017 08:15 AM, Marc Zyngier wrote: >> Thanks Linus for looping me in. >> >> On 12/01/17 22:35, David Daney wrote: >>> Hi Thomas, >>> >>> I am trying to figure out how to handle this situation: >>> >>>handle_level_irq() >>>

Re: irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-13 Thread David Daney
On 01/13/2017 08:15 AM, Marc Zyngier wrote: Thanks Linus for looping me in. On 12/01/17 22:35, David Daney wrote: Hi Thomas, I am trying to figure out how to handle this situation: handle_level_irq() +---+ handle_fasteoi_irq()

Re: irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-13 Thread David Daney
On 01/13/2017 08:15 AM, Marc Zyngier wrote: Thanks Linus for looping me in. On 12/01/17 22:35, David Daney wrote: Hi Thomas, I am trying to figure out how to handle this situation: handle_level_irq() +---+ handle_fasteoi_irq()

Re: irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-13 Thread Marc Zyngier
Thanks Linus for looping me in. On 12/01/17 22:35, David Daney wrote: > Hi Thomas, > > I am trying to figure out how to handle this situation: > >handle_level_irq() >+---+ handle_fasteoi_irq() >| PCIe hosted

Re: irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-13 Thread Marc Zyngier
Thanks Linus for looping me in. On 12/01/17 22:35, David Daney wrote: > Hi Thomas, > > I am trying to figure out how to handle this situation: > >handle_level_irq() >+---+ handle_fasteoi_irq() >| PCIe hosted

Re: irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-13 Thread Linus Walleij
Looping in Marc Zyngier, sorry for top posting but he needs a copy of the whole nice mail. Yours, Linus Walleij On Thu, Jan 12, 2017 at 11:35 PM, David Daney wrote: > Hi Thomas, > > I am trying to figure out how to handle this situation: > >

Re: irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-13 Thread Linus Walleij
Looping in Marc Zyngier, sorry for top posting but he needs a copy of the whole nice mail. Yours, Linus Walleij On Thu, Jan 12, 2017 at 11:35 PM, David Daney wrote: > Hi Thomas, > > I am trying to figure out how to handle this situation: > > handle_level_irq() >

irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-12 Thread David Daney
Hi Thomas, I am trying to figure out how to handle this situation: handle_level_irq() +---+ handle_fasteoi_irq() | PCIe hosted | +---+ +-+ --level_gpio>| GPIO to MSI-X

irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-12 Thread David Daney
Hi Thomas, I am trying to figure out how to handle this situation: handle_level_irq() +---+ handle_fasteoi_irq() | PCIe hosted | +---+ +-+ --level_gpio>| GPIO to MSI-X