projects
/
wrapfs-5.15.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81f3ad6
)
iommu/vt-d: Allocate local memory for page request queue
author
Jacob Pan
<jacob.jun.pan@linux.intel.com>
Thu, 11 Apr 2024 03:07:43 +0000
(11:07 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 17 Apr 2024 09:15:16 +0000
(11:15 +0200)
[ Upstream commit
a34f3e20ddff02c4f12df2c0635367394e64c63d
]
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 <jacob.jun.pan@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link:
https://lore.kernel.org/r/20240403214007.985600-1-jacob.jun.pan@linux.intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iommu/intel/svm.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/intel/svm.c
b/drivers/iommu/intel/svm.c
index 3a9468b1d2c3c217ec2efc19258aaaf644517c44..a96c9a15c9feee93721ee690b3f1fbf7d7f14b23 100644
(file)
--- a/
drivers/iommu/intel/svm.c
+++ b/
drivers/iommu/intel/svm.c
@@
-88,7
+88,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);