]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
x86/pci: Create PCI/MSI irqdomain after x86_init.pci.arch_init()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 10 Feb 2021 15:27:41 +0000 (16:27 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 10 Feb 2021 21:06:47 +0000 (22:06 +0100)
commit70245f86c109e0eafb92ea9653184c0e44b4b35c
tree3342f2a2b3165f132b2ca0c7e71fd06fa7137101
parent256b92af784d5043eeb7d559b6d5963dcc2ecb10
x86/pci: Create PCI/MSI irqdomain after x86_init.pci.arch_init()

Invoking x86_init.irqs.create_pci_msi_domain() before
x86_init.pci.arch_init() breaks XEN PV.

The XEN_PV specific pci.arch_init() function overrides the default
create_pci_msi_domain() which is obviously too late.

As a consequence the XEN PV PCI/MSI allocation goes through the native
path which runs out of vectors and causes malfunction.

Invoke it after x86_init.pci.arch_init().

Fixes: 6b15ffa07dc3 ("x86/irq: Initialize PCI/MSI domain at PCI init time")
Reported-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Juergen Gross <jgross@suse.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/87pn18djte.fsf@nanos.tec.linutronix.de
arch/x86/pci/init.c