From: Suresh Siddha <suresh.b.siddha@intel.com>
To: dwmw2@infradead.org
Cc: jbarnes@virtuousgeek.org, len.brown@intel.com,
linux-kernel@vger.kernel.org, rdreier@cisco.com,
Suresh Siddha <suresh.b.siddha@intel.com>
Subject: [patch 3/4] intr_remap: Allocate intr-remapping table using numa locality info
Date: Fri, 02 Oct 2009 11:01:23 -0700 [thread overview]
Message-ID: <20091002180257.787016872@sbs-t61.sc.intel.com> (raw)
In-Reply-To: <20091002180257.600389229@sbs-t61.sc.intel.com>
[-- Attachment #1: intr_remap_use_affinity_info.patch --]
[-- Type: text/plain, Size: 913 bytes --]
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>
---
drivers/pci/intr_remapping.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: iommu-2.6/drivers/pci/intr_remapping.c
===================================================================
--- iommu-2.6.orig/drivers/pci/intr_remapping.c
+++ iommu-2.6/drivers/pci/intr_remapping.c
@@ -548,7 +548,8 @@ static int setup_intr_remapping(struct i
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",
next prev parent reply other threads:[~2009-10-02 18:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-02 18:01 [patch 1/4] dmar: support for parsing Remapping Hardware Static Affinity structure Suresh Siddha
2009-10-02 18:01 ` [patch 2/4] dmar: Allocate queued invalidation structure using numa locality info Suresh Siddha
2009-10-02 18:01 ` Suresh Siddha [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-10-01 23:06 [patch 1/4] dmar: support for parsing Remapping Hardware Static Affinity structure Suresh Siddha
2009-10-01 23:06 ` [patch 3/4] intr_remap: Allocate intr-remapping table using numa locality info Suresh Siddha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091002180257.787016872@sbs-t61.sc.intel.com \
--to=suresh.b.siddha@intel.com \
--cc=dwmw2@infradead.org \
--cc=jbarnes@virtuousgeek.org \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rdreier@cisco.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®