[PATCH v8 04/15] iommupt: Add the AMD IOMMU v1 page table format

Randy Dunlap rdunlap at infradead.org
Tue Nov 4 10:51:56 PST 2025



On 11/4/25 10:30 AM, Jason Gunthorpe wrote:
> diff --git a/drivers/iommu/generic_pt/Kconfig b/drivers/iommu/generic_pt/Kconfig
> index a81dfdd72ca016..cbdad222923b26 100644
> --- a/drivers/iommu/generic_pt/Kconfig
> +++ b/drivers/iommu/generic_pt/Kconfig
> @@ -30,4 +30,16 @@ config IOMMU_PT
>  	  related to struct iommu_domain using GENERIC_PT. It provides a single
>  	  implementation of the page table operations that can be shared by
>  	  multiple drivers.
> +
> +if IOMMU_PT
> +config IOMMU_PT_AMDV1
> +	tristate "IOMMU page table for 64-bit AMD IOMMU v1"
> +	depends on !GENERIC_ATOMIC64 # for cmpxchg64
> +	help
> +	  iommu_domain implementation for the AMD v1 page table. AMDv1 is the
> +	  "host" page table. It supports granular page sizes of almost every
> +	  power of 2 and decodes an full 64-bit IOVA space.

	                         a full
or

	                         the full

> +
> +	  Selected automatically by an IOMMU driver that uses this format.
> +endif


-- 
~Randy




More information about the linux-riscv mailing list