All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Florian Fainelli <f.fainelli@gmail.com>
Cc: linux-mips@vger.kernel.org, macro@orcam.me.uk,
	Thomas Gleixner <tglx@kernel.org>,
	open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2] MIPS: SiByte: Update effective IRQ affinity
Date: Sat, 5 Dec 2026 11:56:33 +0100	[thread overview]
Message-ID: <axPt4e9RWNra0lVr@alpha.franken.de> (raw)
In-Reply-To: <20261109182627.3517986-1-f.fainelli@gmail.com>

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@gmail.com>
> ---
> 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 ]

      reply	other threads:[~2026-12-05 11:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-09 18:26 [PATCH v2] MIPS: SiByte: Update effective IRQ affinity Florian Fainelli
2026-12-05 10:56 ` Thomas Bogendoerfer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=axPt4e9RWNra0lVr@alpha.franken.de \
    --to=tsbogend@alpha.franken.de \
    --cc=f.fainelli@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=macro@orcam.me.uk \
    --cc=tglx@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.