]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ppc64: Use full DART table on G5
authorOlof Johansson <olof@austin.ibm.com>
Sun, 28 Mar 2004 03:28:10 +0000 (19:28 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 28 Mar 2004 03:28:10 +0000 (19:28 -0800)
This 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

index 3629ce8fd1a94f9dbd663e39f88b5ee4f4e5ec5f..a374d3d709c78ea8a1821026b990679f658a857c 100644 (file)
@@ -792,8 +792,8 @@ void prom_initialize_dart_table(void)
        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
         */