]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/MSI: Export all remapped MSIs to sysfs attributes
authorRomain Bezut <rbezut@gmail.com>
Wed, 23 Sep 2015 23:31:16 +0000 (01:31 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 15 Oct 2015 17:17:19 +0000 (12:17 -0500)
commit588d52f9486a066b9cf166f95f5cc6decb702cfe
tree0f9405b37799242b53bed99441e03286bbf873c2
parentbb1d4217e35df43e05176ebce234c4435d9b94f8
PCI/MSI: Export all remapped MSIs to sysfs attributes

irqbalance uses sysfs attributes to populate its internal database, which
is then used to bind the IRQ to the appropriate NUMA node.

On a device accepting multiple MSIs and with interrupt remapping enabled,
only the first IRQ entry is exported in the "msi_irqs" directory.  This
results in irqbalance having no clue of the NUMA affinity for the extra
IRQs, so it can't bind them to the correct node.

Export all MSI interrupts as sysfs attributes when relevant.

[bhelgaas: changelog]
Signed-off-by: Romain Bezut <rbezut@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
drivers/pci/msi.c