]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
irqchip/riscv-imsic: Add kernel parameter to disable IPIs
authorAnup Patel <apatel@ventanamicro.com>
Wed, 16 Jul 2025 12:37:45 +0000 (18:07 +0530)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 18 Jul 2025 14:46:09 +0000 (16:46 +0200)
commitea92b6046d352740c15f35e703c1b13a47dd99b0
treeda73b1590bd4e5a3bbbe8a816100c3c72d2a8156
parent97c03ec2c0e0621bbd7a56f5be19bd2de552e6f4
irqchip/riscv-imsic: Add kernel parameter to disable IPIs

When injecting IPIs to a set of harts, the IMSIC IPI support will do a
separate MMIO write to the SETIPNUM_LE register of each target hart. This
means on a platform where IMSIC is trap-n-emulated, there will be N MMIO
traps when injecting IPI to N target harts hence IMSIC IPIs will be slow on
such platforms compared to the SBI IPI extension.

Unfortunately, there is no DT, ACPI, or any other way of discovering
whether the underlying IMSIC is trap-n-emulated. Using MMIO write to the
SETIPNUM_LE register for injecting IPI is purely a software choice in the
IMSIC driver hence add a kernel parameter to allow users to disable IMSIC
IPIs on platforms with trap-n-emulated IMSIC.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250716123745.557585-1-apatel@ventanamicro.com
Documentation/admin-guide/kernel-parameters.txt
drivers/irqchip/irq-riscv-imsic-early.c
drivers/irqchip/irq-riscv-imsic-state.c
drivers/irqchip/irq-riscv-imsic-state.h