2.6.9-rc4 kernel -- "cannot find space for TCE table"

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu Oct 21 11:30:59 EST 2004


On Thu, 2004-10-21 at 03:04, Craig Chaney wrote:

> which causes the logic in prom_init_mem to set alloc_top to 0x40000000.
> 
> I can work around this by modifying prom_init_mem to set alloc_top to rmo_top
> if of_platform is either PLATFORM_PSERIES_LPAR or PLATFORM_PSERIES.  This
> allows me to boot a 2.6.9-rc4 kernel on a p615.

Yes, alloc_top and rmo_top should be both "clamped". Can you try that
patch and let me know ?

Index: linux-work/arch/ppc64/kernel/prom_init.c
===================================================================
--- linux-work.orig/arch/ppc64/kernel/prom_init.c	2004-10-20 18:38:08.911500096 +1000
+++ linux-work/arch/ppc64/kernel/prom_init.c	2004-10-21 11:30:23.570248584 +1000
@@ -675,7 +675,7 @@
 	if ( RELOC(of_platform) == PLATFORM_PSERIES_LPAR )
 		RELOC(alloc_top) = RELOC(rmo_top);
 	else
-		RELOC(alloc_top) = min(0x40000000ul, RELOC(ram_top));
+		RELOC(alloc_top) = RELOC(rmo_top) = min(0x40000000ul, RELOC(ram_top));
 	RELOC(alloc_bottom) = PAGE_ALIGN(RELOC(klimit) - offset + 0x4000);
 	RELOC(alloc_top_high) = RELOC(ram_top);
 





More information about the Linuxppc64-dev mailing list