Commit 65a5520a authored by Marc Zyngier's avatar Marc Zyngier
Browse files

arm64: smp: Fix pNMI setup after GICv5 rework



Breno reports that pNMIs are not behaving the way they should since
they were reworked for GICv5. Turns out we feed the IRQ number to
the pNMI helper instead of the IPI number -- not a good idea.

Fix it by providing the correct number (duh).

Fixes: ba1004f8 ("arm64: smp: Support non-SGIs for IPIs")
Reported-by: default avatarBreno Leitao <leitao@debian.org>
Suggested-by: default avatarLorenzo Pieralisi <lpieralisi@kernel.org>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
parent 53bb952a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1093,7 +1093,7 @@ static void ipi_setup_sgi(int ipi)

	irq = ipi_irq_base + ipi;

	if (ipi_should_be_nmi(irq)) {
	if (ipi_should_be_nmi(ipi)) {
		err = request_percpu_nmi(irq, ipi_handler, "IPI", &irq_stat);
		WARN(err, "Could not request IRQ %d as NMI, err=%d\n", irq, err);
	} else {