]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu/riscv: Add ACPI support
authorSunil V L <sunilvl@ventanamicro.com>
Mon, 18 Aug 2025 04:58:07 +0000 (10:28 +0530)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 5 Sep 2025 13:06:06 +0000 (15:06 +0200)
commit4f901b3dce57d26c6ae869607d2e16296587a250
treeb4edca3a45cda53d9205414ab5d9851cc7b6aaa3
parentcbf4fbc484e1730cbcb5187b923fadc842f632ce
iommu/riscv: Add ACPI support

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@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20250818045807.763922-4-sunilvl@ventanamicro.com
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/riscv/iommu-platform.c
drivers/iommu/riscv/iommu.c