Re: [PATCH 2/5] riscv: sbi: Use IPI_MAX for SBI IPI muxing

Anup Patel <[email protected]>
Newsgroups org.infradead.lists.linux-riscv,org.kernel.vger.linux-kernel
Message-ID <CAAhSdy0O33kwnLZ9O3MpiGSbypke5jF1arnRGs1AnSVkdfQSTg@mail.gmail.com>
On Sun, Aug 16, 2026 at 12:31 PM Guo Ren <[email protected]> wrote:
>
> From: "GUO Ren (XuanTie)" <[email protected]>
>
> Now that IPI_MAX is visible from <asm/smp.h>, replace the hard-coded
> BITS_PER_BYTE with the proper symbolic constant in the SBI IPI
> extension driver.
>
> No functional change; IPI_MAX is still 8.
>
> Signed-off-by: GUO Ren (XuanTie) <[email protected]>

LGTM.

Reviewed-by: Anup Patel <[email protected]>

Regards,
Anup

> ---
>  arch/riscv/kernel/sbi-ipi.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/riscv/kernel/sbi-ipi.c b/arch/riscv/kernel/sbi-ipi.c
> index 0cc5559c08d8..eeec178a9b95 100644
> --- a/arch/riscv/kernel/sbi-ipi.c
> +++ b/arch/riscv/kernel/sbi-ipi.c
> @@ -57,7 +57,7 @@ void __init sbi_ipi_init(void)
>                 return;
>         }
>
> -       virq = ipi_mux_create(BITS_PER_BYTE, sbi_send_ipi);
> +       virq = ipi_mux_create(IPI_MAX, sbi_send_ipi);
>         if (virq <= 0) {
>                 pr_err("unable to create muxed IPIs\n");
>                 irq_dispose_mapping(sbi_ipi_virq);
> @@ -75,7 +75,7 @@ void __init sbi_ipi_init(void)
>                           "irqchip/sbi-ipi:starting",
>                           sbi_ipi_starting_cpu, NULL);
>
> -       riscv_ipi_set_virq_range(virq, BITS_PER_BYTE);
> +       riscv_ipi_set_virq_range(virq, IPI_MAX);
>         pr_info("providing IPIs using SBI IPI extension\n");
>
>         /*
> --
> 2.43.0
>

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.