Skip to content

irqchip/gic-v3-its: Balance LPI affinity across CPUs

Marc Zyngier linux-arm-kernel lkml 4 versions – Applied

Status from this message: The following commit has been merged into the irq/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 1 replyApplied
  2. v32 patches 19 repliesSuperseded
  3. v21 patch 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch8 repliesSuperseded

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2irqchip/gic-v3-its: Track LPI distribution on a per CPU basisdrivers/irqchip/irq-gic-v3-its.c+46 -30 replies
2/2irqchip/gic-v3-its: Balance initial LPI affinity across CPUsdrivers/irqchip/irq-gic-v3-its.c+100 -270 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchJohn Garry
SeriesT-b
1/2
2/2

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

Read the v4 thread

Cover letter [PATCH v4 0/2] irqchip/gic-v3-its: Balance LPI affinity across CPUs

When mapping a LPI, the ITS driver picks the first possible affinity, which is in most cases CPU0, assuming that if that's not suitable, someone will come and set the affinity to something more interesting.

It apparently isn't the case, and people complain of poor performance when many interrupts are glued to the same CPU. So let's place the interrupts by finding the "least loaded" CPU (that is, the one that has the fewer LPIs mapped to it). So called 'managed' interrupts are an interesting case where the affinity is actually dictated by the kernel itself, and we should honor this.

* From v3:
- Always pre-decrement/post-increment affinity to avoid useless changes of affinity (John)
- Don't use the node mask as a superset of the proposed affinity as the ACPI tables can't really describe this (John)
- Rebased on v5.7-rc5

* From v2:
- Split accounting from CPU selection
- Track managed and unmanaged interrupts separately

Marc Zyngier (2):
irqchip/gic-v3-its: Track LPI distribution on a per CPU basis irqchip/gic-v3-its: Balance initial LPI affinity across CPUs

 drivers/irqchip/irq-gic-v3-its.c | 170 ++++++++++++++++++++++++++-----
 1 file changed, 143 insertions(+), 27 deletions(-)
Signature · 1 line
2.26.2