From: Anton Blanchard <anton@samba.org>
To: Christoph Hellwig <hch@lst.de>
Cc: linuxppc-dev@ozlabs.org, paulus@samba.org
Subject: [PATCH] powerpc: Fix pseries IOMMU allocations
Date: Sat, 10 Jun 2006 20:00:09 +1000 [thread overview]
Message-ID: <20060610100009.GA12634@krispykreme> (raw)
In-Reply-To: <20060606141135.GB6974@lst.de>
> Make sure dma_alloc_coherent allocates memory from the local node. This
> is important on Cell where we avoid going through the slow cpu
> interconnect.
>
> Note: I could only test this patch on Cell, it should be verified on
> some pseries machine by thos that have the hardware.
Looks like this patch is merged in Pauls tree and breaking pseries boot.
The patch below should fix it.
--
The arguments to alloc_pages_node were reversed, resulting in IOMMU
allocation failures. Fix it.
Signed-off-by: Anton Blanchard <anton@samba.org>
---
Index: build/arch/powerpc/kernel/iommu.c
===================================================================
--- build.orig/arch/powerpc/kernel/iommu.c 2006-06-10 19:49:51.000000000 +1000
+++ build/arch/powerpc/kernel/iommu.c 2006-06-10 19:52:12.000000000 +1000
@@ -561,7 +561,7 @@ void *iommu_alloc_coherent(struct iommu_
return NULL;
/* Alloc enough pages (and possibly more) */
- page = alloc_pages_node(flag, order, node);
+ page = alloc_pages_node(node, flag, order);
if (!page)
return NULL;
ret = page_address(page);
prev parent reply other threads:[~2006-06-10 10:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-06 14:11 [PATCH 2/2] powerpc: node-away dma allocations Christoph Hellwig
2006-06-10 10:00 ` Anton Blanchard [this message]
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=20060610100009.GA12634@krispykreme \
--to=anton@samba.org \
--cc=hch@lst.de \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
/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;
as well as URLs for NNTP newsgroup(s).