The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] [ppc64] bump IOMMU_MAX_ORDER
@ 2004-05-25  5:27 Anton Blanchard
  0 siblings, 0 replies; only message in thread
From: Anton Blanchard @ 2004-05-25  5:27 UTC (permalink / raw)
  To: torvalds; +Cc: akpm, paulus, olof, linux-kernel


Hi,

We have cards that want over 2MB of PCI consistent memory. The
IOMAP_MAX_ORDER limit is just to catch bad drivers early, so we can bump
this a bit. 

We want some room to grow but our maximum get_free_pages allocation on
ppc64 is currently 16MB, so it doesnt make sense to go above that.

Signed-off-by: Anton Blanchard <anton@samba.org>

===== include/asm-ppc64/iommu.h 1.6 vs edited =====
--- 1.6/include/asm-ppc64/iommu.h	Tue Apr 13 03:54:09 2004
+++ edited/include/asm-ppc64/iommu.h	Tue May 25 15:16:24 2004
@@ -29,10 +29,10 @@
 
 /*
  * IOMAP_MAX_ORDER defines the largest contiguous block
- * of dma (tce) space we can get.  IOMAP_MAX_ORDER = 10 
- * allows up to 2**9 pages (512 * 4096) = 2 MB
+ * of dma (tce) space we can get.  IOMAP_MAX_ORDER = 13
+ * allows up to 2**12 pages (4096 * 4096) = 16 MB
  */
-#define IOMAP_MAX_ORDER 10
+#define IOMAP_MAX_ORDER 13
 
 /*
  * Tces come in two formats, one for the virtual bus and a different

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-25  5:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-25  5:27 [PATCH] [ppc64] bump IOMMU_MAX_ORDER Anton Blanchard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox