summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/amd_iommu.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2008-12-10 18:48:59 +0100
committerJoerg Roedel <joerg.roedel@amd.com>2009-01-03 14:11:56 +0100
commite2dc14a2a6c9a83baaafc51f06b7e73cec2167be (patch)
treeba2344f04adac30ab1c4e5cace83b5390f0d7580 /arch/x86/kernel/amd_iommu.c
parent26961efe0dab9ca73f8fc3b6137b814252e04972 (diff)
downloadblackbird-op-linux-e2dc14a2a6c9a83baaafc51f06b7e73cec2167be.tar.gz
blackbird-op-linux-e2dc14a2a6c9a83baaafc51f06b7e73cec2167be.zip
AMD IOMMU: add a domain flag for default domains
Impact: adds a new protection domain flag Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/kernel/amd_iommu.c')
-rw-r--r--arch/x86/kernel/amd_iommu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
index d9b651c01186..f2956546423b 100644
--- a/arch/x86/kernel/amd_iommu.c
+++ b/arch/x86/kernel/amd_iommu.c
@@ -1574,6 +1574,7 @@ int __init amd_iommu_init_dma_ops(void)
iommu->default_dom = dma_ops_domain_alloc(iommu, order);
if (iommu->default_dom == NULL)
return -ENOMEM;
+ iommu->default_dom->domain.flags |= PD_DEFAULT_MASK;
ret = iommu_init_unity_mappings(iommu);
if (ret)
goto free_domains;
OpenPOWER on IntegriCloud