[RFC PATCH v2 06/10] iommu/riscv: support nested iommu for getting iommu hardware information
Jason Gunthorpe
jgg at ziepe.ca
Wed Jun 19 08:49:01 PDT 2024
On Fri, Jun 14, 2024 at 10:21:52PM +0800, Zong Li wrote:
> This patch implements .hw_info operation and the related data
> structures for passing the IOMMU hardware capabilities for iommufd.
>
> Signed-off-by: Zong Li <zong.li at sifive.com>
> ---
> drivers/iommu/riscv/iommu.c | 20 ++++++++++++++++++++
> include/uapi/linux/iommufd.h | 18 ++++++++++++++++++
> 2 files changed, 38 insertions(+)
Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
> /**
> * enum iommu_hw_info_type - IOMMU Hardware Info Types
> * @IOMMU_HW_INFO_TYPE_NONE: Used by the drivers that do not report hardware
> * info
> * @IOMMU_HW_INFO_TYPE_INTEL_VTD: Intel VT-d iommu info type
> + * @IOMMU_HW_INFO_TYPE_RISCV_IOMMU: RISC-V iommu info type
> */
Is there a more formal name than "RISCV IOMMU" here? It seems like you
will probably have a RISCV_IOMMU_V2 someday, is that naming OK?
Jason
More information about the linux-riscv
mailing list