Skip to contentSkip to conversation

need clarity on irq domain in pci_msi_create_irq_domain

DISCUSSION bharat kumar gogada 1 participant 1 message Oct 27, 2015

lore
Share & tools
lore
#0 lore raw

For MSI when we have IRQ domain, we use following API's irq_domain_add_linear (parent domain), pci_msi_create_irq_domain (child domain).

The domain_ops in irq_domain_add_linear is used to map hwirq and virq through alloc function of domain_ops.

Another irq domain is being created in pci_msi_create_irq_domain, so what is the purpose of this irq domain being created here, i see that here domain is created with following API, __irq_domain_add(of_node, 0, ~0, 0, ops, host_data); which means hwirq_max is maximum number, so what is the purpose having hwirq_max as maximum.

Regards,
Bharat