Message ID | dba9f0f8e9cccd7625d0f3fab94457482e1a2bd7.1402405331.git.agordeev@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
On Tue, Jun 10, 2014 at 03:10:32PM +0200, Alexander Gordeev wrote: > Make use of the new pci_enable_msi_partial() interface and > conserve on othewise wasted interrupt resources for 10 out > of 16 unused MSI vectors on Intel chipsets. > > Cc: x86@kernel.org > Cc: xen-devel@lists.xenproject.org > Cc: iommu@lists.linux-foundation.org > Cc: linux-ide@vger.kernel.org > Cc: linux-pci@vger.kernel.org > Signed-off-by: Alexander Gordeev <agordeev@redhat.com> Acked-by: Tejun Heo <tj@kernel.org> Thanks.
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 6070781..0c7a0f3 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -1194,7 +1194,7 @@ static int ahci_init_interrupts(struct pci_dev *pdev, unsigned int n_ports, if (nvec < n_ports) goto single_msi; - rc = pci_enable_msi_exact(pdev, nvec); + rc = pci_enable_msi_partial(pdev, n_ports, nvec); if (rc == -ENOSPC) goto single_msi; else if (rc < 0) @@ -1207,7 +1207,7 @@ static int ahci_init_interrupts(struct pci_dev *pdev, unsigned int n_ports, goto single_msi; } - return nvec; + return n_ports; single_msi: if (pci_enable_msi(pdev))
Make use of the new pci_enable_msi_partial() interface and conserve on othewise wasted interrupt resources for 10 out of 16 unused MSI vectors on Intel chipsets. Cc: x86@kernel.org Cc: xen-devel@lists.xenproject.org Cc: iommu@lists.linux-foundation.org Cc: linux-ide@vger.kernel.org Cc: linux-pci@vger.kernel.org Signed-off-by: Alexander Gordeev <agordeev@redhat.com> --- drivers/ata/ahci.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)