From owner-freebsd-i386@FreeBSD.ORG Sat Nov 18 21:30:55 2006 Return-Path: X-Original-To: freebsd-i386@hub.freebsd.org Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9B29E16A4C2 for ; Sat, 18 Nov 2006 21:30:55 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2156B43D79 for ; Sat, 18 Nov 2006 21:30:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kAILUKa3004041 for ; Sat, 18 Nov 2006 21:30:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAILUKvB004040; Sat, 18 Nov 2006 21:30:20 GMT (envelope-from gnats) Date: Sat, 18 Nov 2006 21:30:20 GMT Message-Id: <200611182130.kAILUKvB004040@freefall.freebsd.org> To: freebsd-i386@FreeBSD.org From: Rainer Alves Cc: Subject: Re: i386/104678: SMP not working on Turion XP Laptop X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rainer Alves List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Nov 2006 21:30:55 -0000 The following reply was made to PR i386/104678; it has been noted by GNATS. From: Rainer Alves To: Ariff Abdullah Cc: Bruce Evans , bug-followup@FreeBSD.org, danolson@visi.com, infofarmer@FreeBSD.org, jhb@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: on acpi0 cpu1: on acpi0 -- Rainer Alves