Skip to content

PCI/MSI: Allocate as many multiple-MSIs as requested

Alexander Gordeev linux-pci lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 7 repliesIn review
  2. v21 of 2 patches 1 replySuperseded
  3. v12 patches 1 replySuperseded

Changes in v3 from the cover letter

- patch 2/2 changelog message elaborated

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PCI/MSI: Allocate as many multiple-MSIs as requesteddrivers/pci/msi.c include/linux/msi.h+9 -26 replies
2/2x86/MSI: Conserve interrupt resources when using multiple-MSIsdrivers/iommu/irq_remapping.c+7 -51 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 -tip x86/apic 0/2] PCI/MSI: Allocate as many multiple-MSIs as requested

This series is against tip's x86/apic branch.

Allow conserving interrupt resources when PCI devices in multiple-MSI mode send a number of MSIs which is not a power-of-two. This update will prevent wasting of any resources associated with unused MSIs in general (i.e. IRQ descriptors) and x86 interrupt vectors in particular (the latter are notoriously scarce).

Recently PLX Technology confirmed they do have a relevant hardware, i.e. their new PEX8796 chip can send 18 MSIs.

Changes from v2:
- patch 2/2 changelog message elaborated

Changes from v1:
- do not conserve on IRTEs to prevent possible security hole when one device accesses other device's IRTEs

Patch 1 is a change to the generic MSI code
Patch 2 is the x86 enablement

Alexander Gordeev (2):
PCI/MSI: Allocate as many multiple-MSIs as requested x86/MSI: Conserve interrupt resources when using multiple-MSIs

 drivers/iommu/irq_remapping.c |   12 +++++++-----
 drivers/pci/msi.c             |   10 ++++++++--
 include/linux/msi.h           |    1 +
 3 files changed, 16 insertions(+), 7 deletions(-)
Signature · 7 lines
1.7.7.6


-- 
Regards,
Alexander Gordeev
[email protected]