diff options
| author | Jacob Pan <[email protected]> | 2024-04-11 03:07:43 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2024-04-12 10:06:24 +0000 |
| commit | a34f3e20ddff02c4f12df2c0635367394e64c63d (patch) | |
| tree | d64c357800cc3f11e25d1baf3e0dc274da48ab7c /drivers/iommu/intel/svm.c | |
| parent | iommu/vt-d: Fix wrong use of pasid config (diff) | |
| download | kernel-a34f3e20ddff02c4f12df2c0635367394e64c63d.tar.gz kernel-a34f3e20ddff02c4f12df2c0635367394e64c63d.zip | |
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: a222a7f0bb6c ("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]>
Diffstat (limited to 'drivers/iommu/intel/svm.c')
| -rw-r--r-- | drivers/iommu/intel/svm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/intel/svm.c b/drivers/iommu/intel/svm.c index c1bed89b1026..ee3b469e2da1 100644 --- a/drivers/iommu/intel/svm.c +++ b/drivers/iommu/intel/svm.c @@ -66,7 +66,7 @@ int intel_svm_enable_prq(struct intel_iommu *iommu) struct page *pages; int irq, ret; - pages = alloc_pages(GFP_KERNEL | __GFP_ZERO, PRQ_ORDER); + pages = alloc_pages_node(iommu->node, GFP_KERNEL | __GFP_ZERO, PRQ_ORDER); if (!pages) { pr_warn("IOMMU: %s: Failed to allocate page request queue\n", iommu->name); |
