]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc: use IRQF_NO_DEBUG for IPIs
authorCédric Le Goater <clg@kaod.org>
Mon, 19 Jul 2021 13:06:14 +0000 (15:06 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 10 Aug 2021 13:15:01 +0000 (23:15 +1000)
There is no need to use the lockup detector ("noirqdebug") for IPIs.
The ipistorm benchmark measures a ~10% improvement on high systems
when this flag is set.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210719130614.195886-1-clg@kaod.org
arch/powerpc/sysdev/xics/xics-common.c
arch/powerpc/sysdev/xive/common.c

index 4a7687caec7553ad5ac4ffe3effb95ab5d7a4e38..5c1a157a83b8989928dcd816d404852d1ff10a8e 100644 (file)
@@ -132,7 +132,7 @@ static void xics_request_ipi(void)
         * IPIs are marked IRQF_PERCPU. The handler was set in map.
         */
        BUG_ON(request_irq(ipi, icp_ops->ipi_action,
-                          IRQF_PERCPU | IRQF_NO_THREAD, "IPI", NULL));
+                          IRQF_NO_DEBUG | IRQF_PERCPU | IRQF_NO_THREAD, "IPI", NULL));
 }
 
 void __init xics_smp_probe(void)
index d0deaebbfeeb66612f81ef985c90a0a28347c365..4018964bbd69924b1d9d7ad2285315d5b789f126 100644 (file)
@@ -1149,7 +1149,8 @@ static int __init xive_request_ipi(void)
                snprintf(xid->name, sizeof(xid->name), "IPI-%d", node);
 
                ret = request_irq(xid->irq, xive_muxed_ipi_action,
-                                 IRQF_PERCPU | IRQF_NO_THREAD, xid->name, NULL);
+                                 IRQF_NO_DEBUG | IRQF_PERCPU | IRQF_NO_THREAD,
+                                 xid->name, NULL);
 
                WARN(ret < 0, "Failed to request IPI %d: %d\n", xid->irq, ret);
        }