diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2020-08-26 13:17:01 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-09-16 16:52:37 +0200 |
commit | 2c681e6b37674dc3941869cb262e26c8a6b34047 (patch) | |
tree | b1079a2a6c208b8261e0f68d4d2d4334120b48df /arch/x86/include/asm/irqdomain.h | |
parent | 2b2c6aa63824c69c112bbe4f937f034c5e606a6c (diff) | |
download | linux-2c681e6b37674dc3941869cb262e26c8a6b34047.tar.gz linux-2c681e6b37674dc3941869cb262e26c8a6b34047.tar.bz2 linux-2c681e6b37674dc3941869cb262e26c8a6b34047.zip |
x86/pci: Set default irq domain in pcibios_add_device()
Now that interrupt remapping sets the irqdomain pointer when a PCI device
is added it's possible to store the default irq domain in the device struct
in pcibios_add_device().
If the bus to which a device is connected has an irq domain associated then
this domain is used otherwise the default domain (PCI/MSI native or XEN
PCI/MSI) is used. Using the bus domain ensures that special MSI bus domains
like VMD work.
This makes XEN and the non-remapped native case work solely based on the
irq domain pointer in struct device for PCI/MSI and allows to remove the
arch fallback and make most of the x86_msi ops private to XEN in the next
steps.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20200826112333.900423047@linutronix.de
Diffstat (limited to 'arch/x86/include/asm/irqdomain.h')
-rw-r--r-- | arch/x86/include/asm/irqdomain.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/irqdomain.h b/arch/x86/include/asm/irqdomain.h index 430486f65a9b..cd684d45cb5f 100644 --- a/arch/x86/include/asm/irqdomain.h +++ b/arch/x86/include/asm/irqdomain.h @@ -53,9 +53,11 @@ extern int mp_irqdomain_ioapic_idx(struct irq_domain *domain); #ifdef CONFIG_PCI_MSI void x86_create_pci_msi_domain(void); struct irq_domain *native_create_pci_msi_domain(void); +extern struct irq_domain *x86_pci_msi_default_domain; #else static inline void x86_create_pci_msi_domain(void) { } #define native_create_pci_msi_domain NULL +#define x86_pci_msi_default_domain NULL #endif #endif |