Skip to content

irq: fix support for allocating sets of IRQs

Ming Lei linux-block lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Revert "irq: add support for allocating (and affinitizing) sets of IRQs"drivers/pci/msi.c include/linux/interrupt.h kernel/irq/affinity.c+9 -490 replies
2/4irq: move 2-stage irq spread into one helperkernel/irq/affinity.c+56 -360 replies
3/4irq: pass first vector to __irq_build_affinity_maskskernel/irq/affinity.c+9 -90 replies
4/4irq: add support for allocating (and affinitizing) sets of IRQsdrivers/pci/msi.c include/linux/interrupt.h kernel/irq/affinity.c+70 -190 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchHannes ReineckeMing LeiKeith BuschSagi Grimberg
SeriesR-b
1/4
2/4
3/4
4/4R-b R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 0/4] irq: fix support for allocating sets of IRQs

Hi Jens,

As I mentioned, there are at least two issues in the patch of '
irq: add support for allocating (and affinitizing) sets of IRQs':

1) it is wrong to pass 'mask + usedvec' to irq_build_affinity_masks()

2) we should spread all possible CPUs in 2-stage way on each set of IRQs

The fix isn't trivial, and I introduce two extra patches as preparation, then the implementation can be more clean.

The patchset is against mq-maps branch of block tree, feel free to integrate into the whole patchset of multiple queue maps.

Thanks,
Ming

Jens Axboe (1):
irq: add support for allocating (and affinitizing) sets of IRQs

Ming Lei (3):
Revert "irq: add support for allocating (and affinitizing) sets of
IRQs"
irq: move 2-stage irq spread into one helper
irq: pass first vector to __irq_build_affinity_masks

 kernel/irq/affinity.c | 119 +++++++++++++++++++++++++++++++-------------------
 1 file changed, 75 insertions(+), 44 deletions(-)
Cc Thomas Gleixner <[email protected]>
Cc Hannes Reinecke <[email protected]>
Cc Ming Lei <[email protected]>
Cc Keith Busch <[email protected]>
Cc Sagi Grimberg <[email protected]>
Signature · 1 line
2.9.5