]> git.baikalelectronics.ru Git - kernel.git/commit
PCI MSI: let drivers retry when not enough vectors
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 7 May 2009 08:28:41 +0000 (11:28 +0300)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 11 Jun 2009 19:04:18 +0000 (12:04 -0700)
commit057972c733f765dbc500281192197a2175e4b2fe
treece8c13b78e34c287ed9cdf3062dad38f64572b9e
parent669f9d7877b8f201f51c54085fe998f0c4fd3cc5
PCI MSI: let drivers retry when not enough vectors

pci_enable_msix currently returns -EINVAL if you ask
for more vectors than supported by the device, which would
typically cause fallback to regular interrupts.

It's better to return the table size, making the driver retry
MSI-X with less vectors.

Reviewed-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/msi.c