]> git.kernelconcepts.de Git - karo-tx-linux.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)
commita86760664f4cf44c0981ac0c91777eed3a2970e4
tree0f9405b37799242b53bed99441e03286bbf873c2
parent10b4ad1a53e40425122a1a8f21f2d7428fa31e08
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