MSI number limit for PCI hotplug under PCI bridge on ARM platform

From: Heyi Guo
Date: Mon Apr 01 2019 - 10:28:25 EST


Hi folks,

In current kernel implementation for ARM platform, all devices under one PCI bridge share a same device ID and the total number of MSI interrupts is fixed at the first time any child device is allocating MSI. However, this may cause failure of allocating MSI if the system supports device hot-plug under the PCI bridge, which is possible for ARM virtual machine with generic pcie-to-pci-bridge and kernel config HOTPLUG_PCI_SHPC enabled.

Does it make sense to add support for the above scenario? If it does, any suggestion for how to do that?

Thanks,

Heyi