[ofa-general] RE: [PATCH] core/mthca: Distinguish multiple IB cards in /proc/interrupts

Jason Gunthorpe jgunthorpe at obsidianresearch.com
Thu May 21 21:46:53 PDT 2009


On Thu, May 21, 2009 at 06:23:17PM -0500, Arputham Benjamin wrote:

> > I already suggested adding MSI-X vector information to
> > /sys/devices/... to match the existing "irq" file there.  That would
> > allow userspace to figure out which interrupt belonged where.  Jason's
> > idea of adding the PCI device name to the interrupt name seems viable to
> > me as well.

> Don't we need both /sys/devices/... and /proc/interrupts?

You don't need the device name in proc/interrupts, that is just for
easy use of cat..

FWIW, this problem is not really an IB problem, but more a Linux
problem, there should have a better interface for matching MSI vectors
to the PCI device to the counters. Fixing up the MSI vector routines
in PCI core to note the vector numbers in sysfs would help everyone.

Jason



More information about the general mailing list