Re: [PATCH v4 3/7] genirq: Implement synchronous disable_nmi()
From: Doug Anderson
Date: Mon Nov 23 2026 - 18:28:53 EST
Hi,
On Wed, Nov 11, 2026 at 7:16 PM Mayank Rungta <mrungta@xxxxxxxxxx> wrote:
>
> Currently, disable_nmi_nosync() is the only interface to disable an NMI
> line. Drivers stopping their devices need a synchronous variant that
> guarantees any running instance of the NMI handler has completed on other
> CPUs before returning.
>
> Implement disable_nmi() by validating the descriptor, disabling the line
> via __disable_irq_nosync(), and synchronizing in-flight NMI handlers via
> __synchronize_nmi().
>
> Signed-off-by: Mayank Rungta <mrungta@xxxxxxxxxx>
> ---
> include/linux/interrupt.h | 1 +
> kernel/irq/manage.c | 24 ++++++++++++++++++++++++
> 2 files changed, 25 insertions(+)
Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx>