From: Thomas Gleixner <tglx@kernel.org>
To: Markus Stockhausen <markus.stockhausen@gmx.de>,
linux-kernel@vger.kernel.org
Subject: Re: AW: [PATCH v2 2/2] irqchip/irq-realtek-rtl: Add multicore support
Date: Thu, 04 Jun 2026 21:06:25 +0200 [thread overview]
Message-ID: <87tsri3z2m.ffs@fw13> (raw)
In-Reply-To: <056101dcf44f$10641360$312c3a20$@gmx.de>
On Thu, Jun 04 2026 at 20:22, Markus Stockhausen wrote:
>> Von: Thomas Gleixner <tglx@kernel.org>
>> Gesendet: Donnerstag, 4. Juni 2026 17:59
>> An: Markus Stockhausen <markus.stockhausen@gmx.de>;
> linux-kernel@vger.kernel.org
>> Cc: Markus Stockhausen <markus.stockhausen@gmx.de>
>> Betreff: Re: [PATCH v2 2/2] irqchip/irq-realtek-rtl: Add multicore support
>> ...
>> With that fixed you can drop this whole realtek_ictl_cpu_configurable
>> dance as the core will never set a non-present CPU in the destination
>> mask. It even guarantees that the CPUs in the mask are online unless
>> @force = true. The latter is only for scenarios where pseudo per CPU
>> interrupts have to be affined before a CPU goes online, so irrelevant
>> for your use case.
>
> Thanks für the explanation. That paved the way for a much
> simpler v3 series. BTW - We need those pseudo per CPU interrupts.
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/irqchip/irq-mips-gic.c?id=2250db8628a0d8293ad2e0671138b848a185fba1
Fine, but that code makes no sense:
if (force)
cpu = cpumask_first(cpumask);
else
cpu = cpumask_first_and(cpumask, cpu_online_mask);
because in the !force case @cpumask is guaranteed to be not empty and a
subset of cpu_online mask.
I missed that back then probably because the long since then fixed
original core code could supply arbitrary masks to the drivers and my
memory still stuck to this scheme.
Thanks,
tglx
prev parent reply other threads:[~2026-06-04 19:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-04 13:06 [PATCH v2 0/2] irqchip/irq-realtek-rtl: Add multicore support Markus Stockhausen
2026-06-04 13:06 ` [PATCH v2 1/2] irqchip/irq-realtek-rtl: Add/simplify register helpers Markus Stockhausen
2026-06-04 13:06 ` [PATCH v2 2/2] irqchip/irq-realtek-rtl: Add multicore support Markus Stockhausen
2026-06-04 15:58 ` Thomas Gleixner
2026-06-04 18:22 ` AW: " Markus Stockhausen
2026-06-04 19:06 ` Thomas Gleixner [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=87tsri3z2m.ffs@fw13 \
--to=tglx@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=markus.stockhausen@gmx.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox