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 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
autoprobe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
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 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
devres.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dummychip.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
generic-chip.c genirq/generic_chip: Make irq_remove_generic_chip() irqdomain aware 2024-11-18 11:43:25 +01:00
handle.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
internals.h kernel: Introduce SBalance IRQ balancer 2024-11-17 17:55:12 +01:00
ipi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq_sim.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irqdesc.c genirq/irqdesc: Honor caller provided affinity in alloc_desc() 2024-11-23 23:20:29 +01:00
irqdomain.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig arm64: Disable GENERIC_IRQ_EFFECTIVE_AFF_MASK 2024-11-19 17:54:22 +01:00
Makefile kernel: Introduce SBalance IRQ balancer 2024-11-17 17:55:12 +01:00
manage.c task_work: s/task_work_cancel()/task_work_cancel_func()/ 2024-11-23 23:20:13 +01:00
matrix.c genirq/matrix: Exclude managed interrupts in irq_matrix_allocated() 2024-11-18 11:42:47 +01:00
migration.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
proc.c irq: Don't allow IRQ affinities to be set from userspace 2024-11-17 17:45:42 +01:00
resend.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sbalance.c kernel: Introduce SBalance IRQ balancer 2024-11-17 17:55:12 +01:00
settings.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spurious.c irq: spurious: Disable IRQ debugging by default 2024-11-19 18:05:57 +01:00
timings.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00