Skip to contentSkip to conversation

ppc64: Fix boot on some non-LPAR pSeries

PATCH New Benjamin Herrenschmidt 1 participant 1 message Oct 22, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc64: Fix boot on some non-LPAR pSeries

Hi !

This patch fixes a problem when allocating the TCE tables (iommu) during early boot on some non-LPAR machines with a lot of memory.

arch/ppc64/kernel/prom_init.c +1 -1
@@ -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);