]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: vmd: Remove IRQ affinity so we can allocate more IRQs
authorKeith Busch <keith.busch@intel.com>
Wed, 30 Aug 2017 16:15:04 +0000 (12:15 -0400)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 30 Aug 2017 21:18:38 +0000 (16:18 -0500)
commitdb533db8e810c222e64011d4e59cbdd2cf3e06db
tree9268cd4ba18a89f5fcf1fbe1b8f594e76a6f2029
parent4c4d49818f253f29f31bada6e4a69afe74b5ada5
PCI: vmd: Remove IRQ affinity so we can allocate more IRQs

VMD hardware has to share its vectors among child devices in its PCI
domain so we should allocate as many as possible rather than just ones
that can be affinitized.

pci_alloc_irq_vectors_affinity() limits the number of affinitized IRQs to
the number of present CPUs (see irq_calc_affinity_vectors()).  But we'd
prefer to have more vectors, even if they aren't distributed across the
CPUs, so use pci_alloc_irq_vectors() instead.

Reported-by: Brad Goodman <Bradley.Goodman@dell.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
[bhelgaas: add irq_calc_affinity_vectors() reference to changelog]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/vmd.c