intr_remap: Allocate intr-remapping table using numa locality info
authorSuresh Siddha <suresh.b.siddha@intel.com>
Fri, 2 Oct 2009 18:01:23 +0000 (11:01 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 5 Oct 2009 06:55:29 +0000 (07:55 +0100)
Allocate intr-remapping table using numa locality info. On platforms
having remapping hardware units span different nodes, this enables
optimized intr-remapping table entry access by remapping hardware.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intr_remapping.c

index 0ed78a7..fccf0e2 100644 (file)
@@ -548,7 +548,8 @@ static int setup_intr_remapping(struct intel_iommu *iommu, int mode)
        if (!iommu->ir_table)
                return -ENOMEM;
 
-       pages = alloc_pages(GFP_ATOMIC | __GFP_ZERO, INTR_REMAP_PAGE_ORDER);
+       pages = alloc_pages_node(iommu->node, GFP_ATOMIC | __GFP_ZERO,
+                                INTR_REMAP_PAGE_ORDER);
 
        if (!pages) {
                printk(KERN_ERR "failed to allocate pages of order %d\n",