projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d4d767
)
iommu/intel: Use GFP_KERNEL in sleepable contexts
author
Jason Gunthorpe
<jgg@nvidia.com>
Mon, 23 Jan 2023 20:36:01 +0000
(16:36 -0400)
committer
Joerg Roedel
<jroedel@suse.de>
Wed, 25 Jan 2023 10:52:06 +0000
(11:52 +0100)
These contexts are sleepable, so use the proper annotation. The GFP_ATOMIC
was added mechanically in the prior patches.
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link:
https://lore.kernel.org/r/8-v3-76b587fe28df+6e3-iommu_map_gfp_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/intel/iommu.c
b/drivers/iommu/intel/iommu.c
index
e95f770
..
a1a6679
100644
(file)
--- a/
drivers/iommu/intel/iommu.c
+++ b/
drivers/iommu/intel/iommu.c
@@
-2372,7
+2372,7
@@
static int iommu_domain_identity_map(struct dmar_domain *domain,
return __domain_mapping(domain, first_vpfn,
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);
@@
-2680,7
+2680,7
@@
static int copy_context_table(struct intel_iommu *iommu,
if (!old_ce)
goto out;
- new_ce = alloc_pgtable_page(iommu->node, GFP_
ATOMIC
);
+ new_ce = alloc_pgtable_page(iommu->node, GFP_
KERNEL
);
if (!new_ce)
goto out_unmap;