mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-10 19:35:21 +02:00
genirq/irqdesc: Honor caller provided affinity in alloc_desc()
commitedbbaae42a
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: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 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2ce998fabc
commit
0688cacd0e
|
@ -517,6 +517,7 @@ static int alloc_descs(unsigned int start, unsigned int cnt, int node,
|
|||
flags = IRQD_AFFINITY_MANAGED |
|
||||
IRQD_MANAGED_SHUTDOWN;
|
||||
}
|
||||
flags |= IRQD_AFFINITY_SET;
|
||||
mask = &affinity->mask;
|
||||
node = cpu_to_node(cpumask_first(mask));
|
||||
affinity++;
|
||||
|
|
Loading…
Reference in New Issue
Block a user