Message ID | 1517466839.3715.115.camel@gmail.com |
---|---|
State | Awaiting Upstream, archived |
Delegated to: | David Miller |
Headers | show |
Series | [v2] iommu/vt-d: add NUMA awareness to intel_alloc_coherent() | expand |
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index a1373cf343269455808f66ad18dc0a2fb7aa73f2..3c538466a98bdb8fffdca688462b1350d536791b 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -3735,7 +3735,7 @@ static void *intel_alloc_coherent(struct device *dev, size_t size, } if (!page) - page = alloc_pages(flags, order); + page = alloc_pages_node(dev_to_node(dev), flags, order); if (!page) return NULL; memset(page_address(page), 0, size);