Commit 4951eb26 authored by Jason Gunthorpe's avatar Jason Gunthorpe Committed by Joerg Roedel

iommu/intel: Use GFP_KERNEL in sleepable contexts

These contexts are sleepable, so use the proper annotation. The GFP_ATOMIC
was added mechanically in the prior patches.
Reviewed-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: default avatarKevin Tian <kevin.tian@intel.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/8-v3-76b587fe28df+6e3-iommu_map_gfp_jgg@nvidia.comSigned-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 2d4d7676
...@@ -2372,7 +2372,7 @@ static int iommu_domain_identity_map(struct dmar_domain *domain, ...@@ -2372,7 +2372,7 @@ static int iommu_domain_identity_map(struct dmar_domain *domain,
return __domain_mapping(domain, first_vpfn, return __domain_mapping(domain, first_vpfn,
first_vpfn, last_vpfn - first_vpfn + 1, first_vpfn, last_vpfn - first_vpfn + 1,
DMA_PTE_READ|DMA_PTE_WRITE, GFP_ATOMIC); DMA_PTE_READ|DMA_PTE_WRITE, GFP_KERNEL);
} }
static int md_domain_init(struct dmar_domain *domain, int guest_width); static int md_domain_init(struct dmar_domain *domain, int guest_width);
...@@ -2680,7 +2680,7 @@ static int copy_context_table(struct intel_iommu *iommu, ...@@ -2680,7 +2680,7 @@ static int copy_context_table(struct intel_iommu *iommu,
if (!old_ce) if (!old_ce)
goto out; goto out;
new_ce = alloc_pgtable_page(iommu->node, GFP_ATOMIC); new_ce = alloc_pgtable_page(iommu->node, GFP_KERNEL);
if (!new_ce) if (!new_ce)
goto out_unmap; goto out_unmap;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment