Skip to content

Commit a34f3e2

Browse files
Jacob Panjoergroedel
authored andcommitted
iommu/vt-d: Allocate local memory for page request queue
The page request queue is per IOMMU, its allocation should be made NUMA-aware for performance reasons. Fixes: a222a7f ("iommu/vt-d: Implement page request handling") Signed-off-by: Jacob Pan <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lu Baolu <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent 5b3625a commit a34f3e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/intel/svm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ int intel_svm_enable_prq(struct intel_iommu *iommu)
6666
struct page *pages;
6767
int irq, ret;
6868

69-
pages = alloc_pages(GFP_KERNEL | __GFP_ZERO, PRQ_ORDER);
69+
pages = alloc_pages_node(iommu->node, GFP_KERNEL | __GFP_ZERO, PRQ_ORDER);
7070
if (!pages) {
7171
pr_warn("IOMMU: %s: Failed to allocate page request queue\n",
7272
iommu->name);

0 commit comments

Comments
 (0)