Re: [PATCH v7 5/5] iommu/dma: Enable IOMMU_DMA for 64-bit RISC-V
From: Jason Gunthorpe
Date: Wed Dec 02 2026 - 13:00:16 EST
> Enable IOMMU_DMA for 64-bit RISC-V now that the RISC-V
> IOMMU driver supports MSI remapping.
>
> Signed-off-by: Tomasz Jeznach <tjeznach@xxxxxxxxxxxx>
> Signed-off-by: Andrew Jones <andrew.jones@xxxxxxxxxxxxxxxx>
> Signed-off-by: Andrew Jones <andrew.jones@xxxxxxxxx>
> Tested-by: Fangyu Yu <fangyu.yu@xxxxxxxxxxxxxxxxx>
> Reviewed-by: Nutty Liu <nutty.liu@xxxxxxxxxxx>
> ---
> drivers/iommu/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
> index 6e07bd69467a3d..1c9f2ad10f3618 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 && 64BIT)
Why not 32 bit too? Explain in the commit message
Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
--
Jason