Linux on G5 Xserve?

Benjamin Herrenschmidt benh at kernel.crashing.org
Sat May 15 07:34:57 EST 2004


On Sat, 2004-05-15 at 07:28, Greg Johnson wrote:

> Where is the power management in the Darwin source?  Anythoughts about
> SMP?

This patch may fix SMP for the Xserve g5, at least it should help

===== arch/ppc64/kernel/cpu_setup_power4.S 1.2 vs edited =====
--- 1.2/arch/ppc64/kernel/cpu_setup_power4.S	Wed May  5 14:54:35 2004
+++ edited/arch/ppc64/kernel/cpu_setup_power4.S	Sat May 15 07:33:10 2004
@@ -119,7 +119,9 @@
 	/* We only deal with 970 for now */
 	mfspr	r0,SPRN_PVR
 	srwi	r0,r0,16
-	cmpwi	r0,0x39
+	cmpwi	cr0,r0,0x39
+	cmpwi	cr1,r0,0x3c
+	cror	4*cr0+eq,4*cr0+eq,4*cr1+eq
 	bne	1f

 	/* Save HID0,1,4 and 5 */
@@ -149,7 +151,9 @@
 	/* We only deal with 970 for now */
 	mfspr	r0,SPRN_PVR
 	srwi	r0,r0,16
-	cmpwi	r0,0x39
+	cmpwi	cr0,r0,0x39
+	cmpwi	cr1,r0,0x3c
+	cror	4*cr0+eq,4*cr0+eq,4*cr1+eq
 	bne	1f

 	/* Clear interrupt prefix */


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





More information about the Linuxppc64-dev mailing list