Re: [PATCH v2] MIPS: SiByte: Update effective IRQ affinity

From: Thomas Bogendoerfer

Date: Sat Dec 05 2026 - 06:19:24 EST


On Mon, Nov 09, 2026 at 10:26:22AM -0800, Florian Fainelli wrote:
> Booting an SB1250 kernel with CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK
> enabled reports:
>
> genirq: irq_chip SB1250-IMR did not update eff. affinity mask of irq 2
>
> The interrupt mapper selects the first online CPU in the requested mask,
> but sb1250_set_affinity() does not update the effective affinity mask.
> Returning IRQ_SET_MASK_OK makes the IRQ core copy the requested mask to
> irq_common_data.affinity, but leaves the separate effective affinity mask
> empty, triggering irq_validate_effective_affinity().
>
> Update the effective affinity with the single logical CPU selected as
> the hardware target. Apply the same update to the analogous BCM1480
> callback, and use IRQ_SET_MASK_OK explicitly in both callbacks.
>
> The IRQ core already rejects masks without an online CPU for normal
> affinity changes, so no additional mask validation is needed here.
>
> Fixes: 421d1563c662 ("mips: Validate online cpus in irq_set_affinity() callbacks")
> Signed-off-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
> ---
> Changes in v2:
>
> - update commit message
> - cover bcm1480, remove the check on nr_cpu_ids

while you removed the nr_cpu_ids check compared to your v1 version,
you are missing

+ irq_data_update_effective_affinity(d, cpumask_of(i));

As I have not reverted the applied v1, I need either a v3 with
the part the added line above or something which gets mips-next
fixed correctly. I'm fine with both.

Thomas.

--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]