Skip to content

genirq: Managed affinity fixes

Marc Zyngier linux-samsung-soc lkml 3 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. v3 Latest3 patches 13 repliesApplied
  2. v23 patches 4 repliesSuperseded
  3. v11 patch 8 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3genirq/msi: Shutdown managed interrupts with unsatifiable affinitieskernel/irq/msi.c+15 -00 replies
2/3genirq: Always limit the affinity to online CPUskernel/irq/manage.c+17 -811 replies
3/3irqchip/gic-v3: Always trust the managed affinity provided by the core codedrivers/irqchip/irq-gic-v3-its.c+1 -10 replies

Reviews trailers per patch

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

PatchJohn GarryMarek Szyprowski
1/3T-b
2/3T-b
3/3

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

Read the v3 thread

Cover letter [PATCH v3 0/3] genirq: Managed affinity fixes

John (and later on David) reported[1] a while ago that booting with maxcpus=1, managed affinity devices would fail to get the interrupts that were associated with offlined CPUs.

Similarly, Xiongfeng reported[2] that the GICv3 ITS would sometime use non-housekeeping CPUs instead of the affinity that was passed down as a parameter.

[1] can be fixed by not trying to activate these interrupts if no CPU that can satisfy the affinity is present (a patch addressing this was already posted[3])

[2] is a consequence of affinities containing non-online CPUs being passed down to the interrupt controller driver and the ITS driver trying to paper over that by ignoring the affinity parameter and doing its own (stupid) thing. It would be better to (a) get the core code to remove the offline CPUs from the affinity mask at all times, and (b) fix the drivers so that they can trust the core code not to trip them.

This small series, based on 5.18-rc1, addresses the above.

Thanks,

	M.

From v2 [4]:
- Rebased on 5.18-rc1

[1] https://lore.kernel.org/r/[email protected]
[2] https://lore.kernel.org/r/[email protected]
[3] https://lore.kernel.org/r/[email protected]
[4] https://lore.kernel.org/r/[email protected]

Marc Zyngier (3):
genirq/msi: Shutdown managed interrupts with unsatifiable affinities
genirq: Always limit the affinity to online CPUs irqchip/gic-v3: Always trust the managed affinity provided by the core
code

 drivers/irqchip/irq-gic-v3-its.c |  2 +-
 kernel/irq/manage.c              | 25 +++++++++++++++++--------
 kernel/irq/msi.c                 | 15 +++++++++++++++
 3 files changed, 33 insertions(+), 9 deletions(-)
Signature · 1 line
2.34.1