kernel_samsung_a53x/kernel/irq
Shay Drory 0f676e36f7 genirq/irqdesc: Honor caller provided affinity in alloc_desc()
commit edbbaae42a56f9a2b39c52ef2504dfb3fb0a7858 upstream.

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: 45ddcecbfa94 ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-23 23:20:29 +01:00
..
affinity.c
autoprobe.c
chip.c genirq: Allow irq_chip registration functions to take a const irq_chip 2024-11-23 23:20:21 +01:00
cpuhotplug.c genirq/cpuhotplug, x86/vector: Prevent vector leak during CPU offline 2024-11-19 12:27:11 +01:00
debug.h
debugfs.c
devres.c
dummychip.c
generic-chip.c genirq/generic_chip: Make irq_remove_generic_chip() irqdomain aware 2024-11-18 11:43:25 +01:00
handle.c
internals.h
ipi.c
irq_sim.c
irqdesc.c genirq/irqdesc: Honor caller provided affinity in alloc_desc() 2024-11-23 23:20:29 +01:00
irqdomain.c
Kconfig arm64: Disable GENERIC_IRQ_EFFECTIVE_AFF_MASK 2024-11-19 17:54:22 +01:00
Makefile
manage.c task_work: s/task_work_cancel()/task_work_cancel_func()/ 2024-11-23 23:20:13 +01:00
matrix.c
migration.c
msi.c
pm.c
proc.c
resend.c
sbalance.c
settings.h
spurious.c irq: spurious: Disable IRQ debugging by default 2024-11-19 18:05:57 +01:00
timings.c