[PATCH] ppc64: Use full DART table on G5

Olof Johansson olof at austin.ibm.com
Mon Mar 29 04:27:43 EST 2004


Hi,

Below patch increases the DART table to use the full size. We allocate
a full 16MB page anyway, so there's no difference in memory consumption.

Thanks to Ben for spotting this, it was left over from debugging...


===== arch/ppc64/kernel/prom.c 1.64 vs edited =====
--- 1.64/arch/ppc64/kernel/prom.c	Mon Mar 22 04:17:13 2004
+++ edited/arch/ppc64/kernel/prom.c	Sun Mar 28 11:54:59 2004
@@ -792,8 +792,8 @@
 	if (lmb_end_of_DRAM() <= 0x80000000ull && !RELOC(iommu_force_on))
 		return;

-	/* 512 pages is max DART tablesize. */
-	RELOC(dart_tablesize) = 1UL << 19;
+	/* 512 pages (2MB) is max DART tablesize. */
+	RELOC(dart_tablesize) = 1UL << 21;
 	/* 16MB (1 << 24) alignment. We allocate a full 16Mb chuck since we
 	 * will blow up an entire large page anyway in the kernel mapping
 	 */


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list