Skip to content

Commit b0a6c88

Browse files
jgunthorpejoergroedel
authored andcommitted
iommu/amd: Allocate the page table root using GFP_KERNEL
Domain allocation is always done under a sleepable context, the v1 path and other drivers use GFP_KERNEL already. Fix the v2 path to also use GFP_KERNEL. Fixes: 0d571dc ("iommu/amd: Allocate page table using numa locality info") Reviewed-by: Vasant Hegde <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 8d00b77 commit b0a6c88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/amd/io_pgtable_v2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ static struct io_pgtable *v2_alloc_pgtable(struct io_pgtable_cfg *cfg, void *coo
362362
struct protection_domain *pdom = (struct protection_domain *)cookie;
363363
int ias = IOMMU_IN_ADDR_BIT_SIZE;
364364

365-
pgtable->pgd = iommu_alloc_page_node(pdom->nid, GFP_ATOMIC);
365+
pgtable->pgd = iommu_alloc_page_node(pdom->nid, GFP_KERNEL);
366366
if (!pgtable->pgd)
367367
return NULL;
368368

0 commit comments

Comments
 (0)