Re: [PATCH v3 3/3] iommu/riscv: Add ACPI support
From: Andrew Jones
Date: Mon Jun 30 2025 - 04:49:01 EST
On Mon, Jun 30, 2025 at 09:18:03AM +0530, Sunil V L wrote:
> RISC-V IO Mapping Table (RIMT) provides the information about the IOMMU
> to the OS in ACPI. Add support for ACPI in RISC-V IOMMU drivers by using
> RIMT data.
>
> The changes at high level are,
>
> a) Register the IOMMU with RIMT data structures.
> b) Enable probing of platform IOMMU in ACPI way using the ACPIID defined
> for the RISC-V IOMMU in the BRS spec [1]. Configure the MSI domain if
> the platform IOMMU uses MSIs.
>
> [1] - https://github.com/riscv-non-isa/riscv-brs/blob/main/acpi-id.adoc
>
> Signed-off-by: Sunil V L <sunilvl@xxxxxxxxxxxxxxxx>
> ---
> drivers/iommu/riscv/iommu-platform.c | 17 ++++++++++++++++-
> drivers/iommu/riscv/iommu.c | 10 ++++++++++
> 2 files changed, 26 insertions(+), 1 deletion(-)
>
Reviewed-by: Andrew Jones <ajones@xxxxxxxxxxxxxxxx>