i386/104678: SMP not working on Turion XP Laptop

Rainer Alves rainer.alves at gmail.com
Sat Nov 18 21:30:55 UTC 2006


The following reply was made to PR i386/104678; it has been noted by GNATS.

From: Rainer Alves <rainer.alves at gmail.com>
To: Ariff Abdullah <ariff at FreeBSD.org>
Cc: Bruce Evans <bde at zeta.org.au>,  bug-followup at FreeBSD.org, 
 danolson at visi.com,  infofarmer at FreeBSD.org,  jhb at FreeBSD.org
Subject: Re: i386/104678: SMP not working on Turion XP Laptop
Date: Sat, 18 Nov 2006 19:26:11 -0200

 Ariff Abdullah wrote:
 > Currently, this is my crude crack on
 > machdep.c (both for i386 and amd64):
 > 
 ...
 > 	if (cpu_idle_hlt) {
 > 		disable_intr();
 >   		if (sched_runnable())
 > 			enable_intr();
 > 		else if (PCPU_GET(cpuid) == 0) <<<<<
 > 			enable_intr();         <<<<<
 > 		else
 > 			(*cpu_idle_hook)();
 > 	}
 
 Thanks, with the above patch my system is now working properly, and I'm 
 (finally) able to use both CPU cores.
 
 CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-50 (1607.33-MHz K8-class CPU)
    Origin = "AuthenticAMD"  Id = 0x40f82  Stepping = 2
    Cores per package: 2
 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
   cpu0 (BSP): APIC ID:  0
   cpu1 (AP): APIC ID:  1
 cpu0: <ACPI CPU> on acpi0
 cpu1: <ACPI CPU> on acpi0
 
 --
 Rainer Alves
 
 


More information about the freebsd-i386 mailing list