diff options
author | Piotr Stankiewicz <[email protected]> | 2020-06-16 09:33:16 +0200 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2020-06-30 17:02:39 -0500 |
commit | 30ff3e8c287455e9f7f85162df10d62819ba42a9 (patch) | |
tree | 83111761f10e996363a841e2c0e6e21821abd632 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | b3a9e3b9622ae10064826dccb4f7a52bd88c7407 (diff) |
PCI/MSI: Forward MSI-X error code in pci_alloc_irq_vectors_affinity()
When debugging an issue where I was asking the PCI machinery to enable a
set of MSI-X vectors, without falling back on MSI, I ran across a behaviour
which seems odd. The pci_alloc_irq_vectors_affinity() will always return
-ENOSPC on failure, when allocating MSI-X vectors only, whereas with MSI
fallback it will forward any error returned by __pci_enable_msi_range().
This is a confusing behaviour, so have the pci_alloc_irq_vectors_affinity()
forward the error code from __pci_enable_msix_range() when appropriate.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Piotr Stankiewicz <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Reviewed-by: Logan Gunthorpe <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions