[PATCH v1] riscv: iommu: Kconfig: Add RISC-V to IOMMU_DMA def_bool
Yaxing Guo
guoyaxing at bosc.ac.cn
Wed Sep 10 03:11:25 PDT 2025
The IOMMU_DMA configuration option is used to enable DMA mapping
support via IOMMU for platforms that require it. Currently, it is
enabled for ARM64, X86, and S390 architectures.
This patch adds RISC-V (RISCV) to the def_bool condition, enabling
IOMMU_DMA support for RISC-V platforms that have an IOMMU and require
DMA remapping.
Signed-off-by: Yaxing Guo <guoyaxing at bosc.ac.cn>
---
drivers/iommu/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index 70d29b14d851..9d8c90690275 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -150,7 +150,7 @@ config OF_IOMMU
# IOMMU-agnostic DMA-mapping layer
config IOMMU_DMA
- def_bool ARM64 || X86 || S390
+ def_bool ARM64 || X86 || S390 || RISCV
select DMA_OPS_HELPERS
select IOMMU_API
select IOMMU_IOVA
--
2.34.1
More information about the linux-riscv
mailing list