linux/kernel/irq
Shay Drory edbbaae42a genirq/irqdesc: Honor caller provided affinity in alloc_desc()
Currently, whenever a caller is providing an affinity hint for an
interrupt, the allocation code uses it to calculate the node and copies the
cpumask into irq_desc::affinity.

If the affinity for the interrupt is not marked 'managed' then the startup
of the interrupt ignores irq_desc::affinity and uses the system default
affinity mask.

Prevent this by setting the IRQD_AFFINITY_SET flag for the interrupt in the
allocator, which causes irq_setup_affinity() to use irq_desc::affinity on
interrupt startup if the mask contains an online CPU.

[ tglx: Massaged changelog ]

Fixes: 45ddcecbfa ("genirq: Use affinity hint in irqdesc allocation")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/all/20240806072044.837827-1-shayd@nvidia.com
2024-08-07 17:27:00 +02:00
..
affinity.c
autoprobe.c
chip.c
cpuhotplug.c genirq/cpuhotplug, x86/vector: Prevent vector leak during CPU offline 2024-05-23 21:51:50 +02:00
debug.h
debugfs.c genirq/debugfs: Print irqdomain flags as human-readable strings 2024-06-03 12:24:51 +02:00
devres.c irqdomain: Add a resource managed version of irq_domain_instantiate() 2024-06-17 15:48:14 +02:00
dummychip.c
generic-chip.c genirq/generic_chip: Introduce init() and exit() hooks 2024-06-17 15:48:14 +02:00
handle.c
internals.h genirq/debugfs: Print irqdomain flags as human-readable strings 2024-06-03 12:24:51 +02:00
ipi-mux.c
ipi.c
irq_sim.c genirq/irq_sim: add an extended irq_sim initializer 2024-07-04 09:25:59 +02:00
irqdesc.c genirq/irqdesc: Honor caller provided affinity in alloc_desc() 2024-08-07 17:27:00 +02:00
irqdomain.c Switch ARM/ARM64 over to the modern per device MSI domains: 2024-07-22 14:02:19 -07:00
Kconfig genirq: Provide a snapshot mechanism for interrupt statistics 2024-04-12 17:08:05 +02:00
Makefile
manage.c task_work: s/task_work_cancel()/task_work_cancel_func()/ 2024-07-09 13:26:31 +02:00
matrix.c
migration.c
msi.c genirq/msi: Move msi_device_data to core 2024-07-18 20:31:21 +02:00
pm.c
proc.c genirq/proc: Simplify irqdesc::kstat_irqs handling further 2024-06-03 11:48:29 +02:00
resend.c genirq: Reuse irq_is_nmi() 2024-04-24 20:42:57 +02:00
settings.h
spurious.c
timings.c