diff options
author | Vasant Hegde <vasant.hegde@amd.com> | 2022-08-25 08:39:36 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2022-09-07 16:12:35 +0200 |
commit | aaac38f614871df252aa7459647bf68d42f7c3e7 (patch) | |
tree | d3ffddd3ebef1fb2fa6fd4a0c1365f75eb58bb44 /drivers/iommu/io-pgtable.c | |
parent | iommu/amd: Update sanity check when enable PRI/ATS for IOMMU v1 table (diff) | |
download | linux-aaac38f614871df252aa7459647bf68d42f7c3e7.tar.xz linux-aaac38f614871df252aa7459647bf68d42f7c3e7.zip |
iommu/amd: Initial support for AMD IOMMU v2 page table
Introduce IO page table framework support for AMD IOMMU v2 page table.
This patch implements 4 level page table within iommu amd driver and
supports 4K/2M/1G page sizes.
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/20220825063939.8360-7-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/io-pgtable.c')
-rw-r--r-- | drivers/iommu/io-pgtable.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/io-pgtable.c b/drivers/iommu/io-pgtable.c index f4bfcef98297..ac02a45ed798 100644 --- a/drivers/iommu/io-pgtable.c +++ b/drivers/iommu/io-pgtable.c @@ -27,6 +27,7 @@ io_pgtable_init_table[IO_PGTABLE_NUM_FMTS] = { #endif #ifdef CONFIG_AMD_IOMMU [AMD_IOMMU_V1] = &io_pgtable_amd_iommu_v1_init_fns, + [AMD_IOMMU_V2] = &io_pgtable_amd_iommu_v2_init_fns, #endif }; |