[PATCH v13 1/7] irqchip/gic-v3: Enable support for SGIs to act as NMIs

Marc Zyngier maz at kernel.org
Tue Sep 12 05:43:44 PDT 2023


On Wed, 06 Sep 2023 17:02:56 +0100,
Douglas Anderson <dianders at chromium.org> wrote:
> 
> As of commit 6abbd6988971 ("irqchip/gic, gic-v3: Make SGIs use
> handle_percpu_devid_irq()") SGIs are treated the same as PPIs/EPPIs
> and use handle_percpu_devid_irq() by default. Unfortunately,
> handle_percpu_devid_irq() isn't NMI safe, and so to run in an NMI
> context those should use handle_percpu_devid_fasteoi_nmi().
> 
> In order to accomplish this, we just have to make room for SGIs in the
> array of refcounts that keeps track of which interrupts are set as
> NMI. We also rename the array and create a new indexing scheme that
> accounts for SGIs.
> 
> Also, enable NMI support prior to gic_smp_init() as allocation of SGIs
> as IRQs/NMIs happen as part of this routine.
> 
> Co-developed-by: Sumit Garg <sumit.garg at linaro.org>
> Signed-off-by: Sumit Garg <sumit.garg at linaro.org>
> Acked-by: Mark Rutland <mark.rutland at arm.com>
> Tested-by: Chen-Yu Tsai <wenst at chromium.org>
> Signed-off-by: Douglas Anderson <dianders at chromium.org>

Acked-by: Marc Zyngier <maz at kernel.org>

	M.

-- 
Without deviation from the norm, progress is not possible.



More information about the linux-arm-kernel mailing list