Re: [PATCH v4 2/7] genirq: Allow global interrupts in request_nmi()
From: Doug Anderson
Date: Mon Nov 23 2026 - 18:28:46 EST
Hi,
On Wed, Nov 11, 2026 at 7:16 PM Mayank Rungta <mrungta@xxxxxxxxxx> wrote:
>
> request_nmi() currently requires IRQF_PERCPU and forces
> IRQF_NOBALANCING. For global system-wide interrupts (such as watchdog
> pretimeout SPIs), forcing IRQF_PERCPU sets IRQD_PER_CPU and prevents CPU
> hotplug teardown (migrate_one_irq()) from migrating the interrupt off an
> offline CPU.
>
> Now that in-flight NMI handlers are synchronized via
> __synchronize_nmi(), drop the mandatory IRQF_PERCPU check and stop
> forcing IRQF_NOBALANCING in request_nmi() (existing per-CPU callers
> already pass both flags explicitly). Also check irq_is_nmi(desc) in
> irq_seq_show() (matching kstat_irqs_desc() from commit c09cb1293523
> ("genirq: Update irq stats from NMI handlers")) so /proc/interrupts
> emits per-CPU counts for non-IRQF_PERCPU NMIs.
>
> Signed-off-by: Mayank Rungta <mrungta@xxxxxxxxxx>
> ---
> kernel/irq/manage.c | 9 +++------
> kernel/irq/proc.c | 6 ++++--
> 2 files changed, 7 insertions(+), 8 deletions(-)
Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx>