diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 27300aece203e4adb5846c1d2451cee7966f6231..188b81d56ac40df2613fa5684ea8185063dcf4eb 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -2996,6 +2996,13 @@ static struct iommu_domain *amd_iommu_domain_alloc(unsigned type) } pdomain = &dma_domain->domain; break; + case IOMMU_DOMAIN_IDENTITY: + pdomain = protection_domain_alloc(); + if (!pdomain) + return NULL; + + pdomain->mode = PAGE_MODE_NONE; + break; default: return NULL; }