[PATCH v4 1/7] iommu/riscv: Enable IOMMU DMA mapping support
Lv Zheng
lv.zheng at linux.spacemit.com
Thu Feb 5 01:10:24 PST 2026
From: Jingyu Li <joey.li at spacemit.com>
Enables IOMMU DMA mapping support for RISC-V, so that DMACs can be tested
with translation enabled.
Known Possible Issue:
1. When CONFIG_IOMMU_DMA is enabled, on the tested Linux, RISC-V IOMMU is
lack of PCIe support, causing riscv_iommu_fault:522 in dealing with
NVMe PCIe devices.
Signed-off-by: Jingyu Li <joey.li at spacemit.com>
Signed-off-by: Lv Zheng <lv.zheng at linux.spacemit.com>
---
drivers/iommu/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index f86262b11416..34d8a792339f 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -151,7 +151,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.43.0
More information about the linux-riscv
mailing list