[PATCH v5 07/11] lib: utils/ipi: Exposing the ACLINT IPI device

Anup Patel anup at brainfault.org
Mon Sep 1 23:16:08 PDT 2025


On Tue, Sep 2, 2025 at 7:49 AM Nick Hu <nick.hu at sifive.com> wrote:
>
> Exposing the ACLINT IPI device so the other driver can send the CLINT
> IPI on the platform with IMSIC.
>
> Signed-off-by: Nick Hu <nick.hu at sifive.com>
> Reviewed-by: Cyan Yang <cyan.yang at sifive.com>

LGTM.

Reviewed-by: Anup Patel <anup at brainfault.org>

Regards,
Anup

> ---
>  include/sbi_utils/ipi/aclint_mswi.h | 1 +
>  lib/utils/ipi/aclint_mswi.c         | 5 +++++
>  2 files changed, 6 insertions(+)
>
> diff --git a/include/sbi_utils/ipi/aclint_mswi.h b/include/sbi_utils/ipi/aclint_mswi.h
> index 4b8249f25e7e9ee4a053af54e8c8c03dae8674a1..311228eb27faae040f8a603a083ff28c038d8f6c 100644
> --- a/include/sbi_utils/ipi/aclint_mswi.h
> +++ b/include/sbi_utils/ipi/aclint_mswi.h
> @@ -26,6 +26,7 @@ struct aclint_mswi_data {
>         u32 hart_count;
>  };
>
> +struct sbi_ipi_device *aclint_mswi_get(void);
>  int aclint_mswi_cold_init(struct aclint_mswi_data *mswi);
>
>  #endif
> diff --git a/lib/utils/ipi/aclint_mswi.c b/lib/utils/ipi/aclint_mswi.c
> index 9e55078a0b9b0f47acc006d3232402da6148828c..a4173b7c29d03dfd8dc316ab42a166e05c7eb9a8 100644
> --- a/lib/utils/ipi/aclint_mswi.c
> +++ b/lib/utils/ipi/aclint_mswi.c
> @@ -66,6 +66,11 @@ static struct sbi_ipi_device aclint_mswi = {
>         .ipi_clear = mswi_ipi_clear
>  };
>
> +struct sbi_ipi_device *aclint_mswi_get(void)
> +{
> +       return &aclint_mswi;
> +}
> +
>  int aclint_mswi_cold_init(struct aclint_mswi_data *mswi)
>  {
>         u32 i;
>
> --
> 2.34.1
>
>
> --
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi



More information about the opensbi mailing list