PCI: Fix IRQ swizzling for ARI-enabled devices
authorMatthew Wilcox <matthew@wil.cx>
Wed, 1 Jul 2009 21:24:30 +0000 (14:24 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 1 Jul 2009 21:24:30 +0000 (14:24 -0700)
commit46b952a3c3a94afa339bd4961a4f3d1482436599
treef531c057dd8bf6b7ab552774e41a907c99a6577f
parent944c54e7fc5ccf961bef2b5449958436b85de459
PCI: Fix IRQ swizzling for ARI-enabled devices

For many purposes, including interrupt-swizzling, devices with ARI
enabled behave as if they have one device (number 0) and 256 functions.
This probably hasn't bitten us in practice because all ARI devices I've
seen are also IOV devices, and IOV devices are required to use MSI.
This isn't guaranteed, and there are legitimate reasons to use ARI
without IOV, and hence potentially use pin-based interrupts.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci.c