With this patchset we add MSI bank partitioning support. MSI bank partitioning is required for supporting direct device assignment of MSI capable PCI devices. One MSI bank will be allocated for "kernel context". VFIO can allocate one MSI bank per "context". And all devices in the context will share the MSI bank.
We have limited number of MSI banks (2-4). So to support large number of context we need to allow sharing of MSI banks. This patchset does not support sharing of MSI bank but will be done soon once this patchset take a shape. These changes are tested with both kernel owned PCI devices and direct assigned devices using VFIO to guest. Bharat Bhushan (4): fsl/msi: have msiir register address absolute rather than offset fsl/msi: Move fsl,msi mode specific MSI device search out of main loop fsl/msi: Add MSI bank allocation for kernel owned devices fsl/msi: Add interface to reserve/free msi bank arch/powerpc/include/asm/device.h | 2 + arch/powerpc/include/asm/fsl_msi.h | 26 ++++ arch/powerpc/sysdev/fsl_msi.c | 249 +++++++++++++++++++++++++++++++++---- arch/powerpc/sysdev/fsl_msi.h | 7 +- 4 files changed, 261 insertions(+), 23 deletions(-) create mode 100644 arch/powerpc/include/asm/fsl_msi.h -- 1.9.3 _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev