Skip to content

genirq/affinity: introduce .setup_affinity to support allocating interrupt sets

Ming Lei linux-block linux-nvme linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5genirq/affinity: move allocation of 'node_to_cpumask' to irq_build_affinity_maskskernel/irq/affinity.c+13 -141 reply
2/5genirq/affinity: allow driver to setup managed IRQ's affinityinclude/linux/interrupt.h kernel/irq/affinity.c+23 -97 replies
3/5genirq/affinity: introduce irq_build_affinity()include/linux/interrupt.h kernel/irq/affinity.c+39 -00 replies
4/5nvme-pci: simplify nvme_setup_irqs() via .setup_affinity callbackdrivers/nvme/host/pci.c+48 -494 replies
5/5genirq/affinity: remove support for allocating interrupt setsdrivers/pci/msi.c include/linux/interrupt.h kernel/irq/affinity.c+12 -581 reply

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchBjorn Helgaas
1/5R-b
2/5
3/5
4/5
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] genirq/affinity: introduce .setup_affinity to support allocating interrupt sets

Hi,

The current support for allocating interrupt sets requires that same 'max_vec' and 'min_vec' is passed to pci_alloc_irq_vectors_affinity(), then driver has to try to allocate again and again until it succeeds.

This patch introduces .setup_affinity callback, and we can use it to re-caculate interrupt sets and build affinity for each set after irq vectors are allocated.

Turns out both genirq/affinity and nvme code get simplified a lot.

Please review and comment!

Ming Lei (5):
genirq/affinity: move allocation of 'node_to_cpumask' to
irq_build_affinity_masks
genirq/affinity: allow driver to setup managed IRQ's affinity genirq/affinity: introduce irq_build_affinity()
nvme-pci: simplify nvme_setup_irqs() via .setup_affinity callback genirq/affinity: remove support for allocating interrupt sets

 drivers/nvme/host/pci.c   |  97 +++++++++++++++++++++--------------------
 drivers/pci/msi.c         |  14 ------
 include/linux/interrupt.h |  42 ++++++++++++------
 kernel/irq/affinity.c     | 108 ++++++++++++++++++++++++----------------------
 4 files changed, 133 insertions(+), 128 deletions(-)
Signature · 1 line
2.9.5