Skip to contentSkip to conversation

Irq domain for legacy interrupts

DISCUSSION bharat kumar gogada 3 participants 4 messages Oct 7, 2015

lore
Share & tools
lore
#0 lore raw

why do we need a irq domain for legacy interrupts ? Do we need any specific parameter in device tree other that interrupt-map, interrupt-map-mask, for handling with irq domain ? when will the .map method in struct irq_domain_ops get invoked for legacy interrupts ?

#1 lore raw
Quoted 1 line · On Wednesday 07 October 2015 14:53:03 bharat kumar gogada wrote:

why do we need a irq domain for legacy interrupts ?

You need an irq domain if you want to refer to the interrupts from DT, otherwise you have no way to describe them.

Quoted 3 lines

Do we need any specific
parameter in device tree other that interrupt-map, interrupt-map-mask, for handling with irq domain ?

no.

Quoted 2 lines

when will the .map method in struct irq_domain_ops get invoked for legacy interrupts ?

when the interrupt gets mapped ;-)

This should happen whenever the first PCIe device starts using non-MSI interrupts.

Arnd

#2 lore raw

In arch/arm64/kernel/pci.c, pcibios_add_device(struct pci_dev *dev) does the irq mapping so, at this point of time the registered irq domain mapping will be invoked at this time ?

-----Original Message-----
From: Arnd Bergmann [mailto:arnd at arndb.de]
Sent: Wednesday, October 07, 2015 8:33 PM
To: linux-arm-kernel at lists.infradead.org
Cc: Bharat Kumar Gogada
Subject: Re: Irq domain for legacy interrupts

Quoted 1 line · On Wednesday 07 October 2015 14:53:03 bharat kumar gogada wrote:

why do we need a irq domain for legacy interrupts ?

You need an irq domain if you want to refer to the interrupts from DT, otherwise you have no way to describe them.

Quoted 3 lines

Do we need any specific
parameter in device tree other that interrupt-map, interrupt-map-mask, for handling with irq domain ?

no.

Quoted 2 lines

when will the .map method in struct irq_domain_ops get invoked for legacy interrupts ?

when the interrupt gets mapped ;-)

This should happen whenever the first PCIe device starts using non-MSI interrupts.

Arnd

#3 lore raw
In reply to Arnd Bergmann

Sorry for not being clear,in arch/arm64/kernel/pci.c, pcibios_add_device(struct pci_dev *dev) does the irq mapping so, at this point of time the registered .map will be invoked?

In arch/arm64/kernel/pci.c, pcibios_add_device(struct pci_dev *dev) does the irq mapping so, at this point of time the registered irq domain mapping will be invoked at this time ?

-----Original Message-----
From: Arnd Bergmann [mailto:arnd at arndb.de]
Sent: Wednesday, October 07, 2015 8:33 PM
To: linux-arm-kernel at lists.infradead.org
Cc: Bharat Kumar Gogada
Subject: Re: Irq domain for legacy interrupts

Quoted 1 line · On Wednesday 07 October 2015 14:53:03 bharat kumar gogada wrote:

why do we need a irq domain for legacy interrupts ?

You need an irq domain if you want to refer to the interrupts from DT, otherwise you have no way to describe them.

Quoted 3 lines

Do we need any specific
parameter in device tree other that interrupt-map, interrupt-map-mask, for handling with irq domain ?

no.

Quoted 2 lines

when will the .map method in struct irq_domain_ops get invoked for legacy interrupts ?

when the interrupt gets mapped ;-)

This should happen whenever the first PCIe device starts using non-MSI interrupts.

Arnd