Skip to content

Commit 4c721d6

Browse files
hegdevasantjoergroedel
authored andcommitted
iommu/amd: Do not set amd_iommu_pgtable in pass-through mode
Since AMD IOMMU page table is not used in passthrough mode, switching to v1 page table is not required. Therefore, remove redundant amd_iommu_pgtable update and misleading warning message. Signed-off-by: Vasant Hegde <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Reviewed-by: Jerry Snitselaar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 206fb06 commit 4c721d6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/iommu/amd/init.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2134,9 +2134,6 @@ static int __init iommu_init_pci(struct amd_iommu *iommu)
21342134
!iommu_feature(iommu, FEATURE_GT)) {
21352135
pr_warn("Cannot enable v2 page table for DMA-API. Fallback to v1.\n");
21362136
amd_iommu_pgtable = AMD_IOMMU_V1;
2137-
} else if (iommu_default_passthrough()) {
2138-
pr_warn("V2 page table doesn't support passthrough mode. Fallback to v1.\n");
2139-
amd_iommu_pgtable = AMD_IOMMU_V1;
21402137
}
21412138
}
21422139

0 commit comments

Comments
 (0)