From owner-freebsd-current@FreeBSD.ORG Thu Sep 22 06:37:11 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E295C16A41F; Thu, 22 Sep 2005 06:37:11 +0000 (GMT) (envelope-from martin@gneto.com) Received: from mxfep02.bredband.com (mxfep02.bredband.com [195.54.107.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC44343D45; Thu, 22 Sep 2005 06:37:09 +0000 (GMT) (envelope-from martin@gneto.com) Received: from ua-83-227-181-30.cust.bredbandsbolaget.se ([83.227.181.30] [83.227.181.30]) by mxfep02.bredband.com with ESMTP id <20050922063708.JCKT3281.mxfep02.bredband.com@ua-83-227-181-30.cust.bredbandsbolaget.se>; Thu, 22 Sep 2005 08:37:08 +0200 Received: from [192.168.10.11] (euklides.gneto.com [192.168.10.11]) by ua-83-227-181-30.cust.bredbandsbolaget.se (Postfix) with ESMTP id D0276678B3; Thu, 22 Sep 2005 08:37:07 +0200 (CEST) Message-ID: <43325114.4090907@gneto.com> Date: Thu, 22 Sep 2005 08:37:08 +0200 From: Martin Nilsson User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050909) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jung-uk Kim References: <200509211550.27524.jkim@FreeBSD.org> In-Reply-To: <200509211550.27524.jkim@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org Subject: Re: [PATCH] AMD multicore detection X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2005 06:37:12 -0000 Jung-uk Kim wrote: > New patch is here: > http://people.freebsd.org/~jkim/multicore.diff > > Please test and let me know. I don't have multicore CPU to test it > for myself. :-( The below is on a Pentium D 820 (Dualcore). I don't like that the two cores are reported as hyperthreading when the CPU does not support hyperthreading (only the 840 EE does). If we ship 6.0 with HT disabled I'm afraid that it will turn off one of the cores, right? Regards, Martin # uname -a FreeBSD t121.gneto.com 6.0-BETA5 FreeBSD 6.0-BETA5 #4: Thu Sep 22 08:15:42 CEST 2005 root@t121.gneto.com:/usr/obj/usr/src/sys/DCORE amd64 Before: FreeBSD 6.0-BETA5 #3: Wed Sep 21 21:32:53 CEST 2005 root@t121.gneto.com:/usr/obj/usr/src/sys/DCORE Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) D CPU 2.80GHz (2805.62-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0xf44 Stepping = 4 Features=0xbfebfbff Features2=0x641d> AMD Features=0x20100800 Hyperthreading: 2 logical CPUs real memory = 2137407488 (2038 MB) avail memory = 2055442432 (1960 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 After: Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.0-BETA5 #4: Thu Sep 22 08:15:42 CEST 2005 root@t121.gneto.com:/usr/obj/usr/src/sys/DCORE Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) D CPU 2.80GHz (2805.61-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0xf44 Stepping = 4 Features=0xbfebfbff Features2=0x641d> AMD Features=0x20100800 Hyperthreading: 2 logical CPUs real memory = 2137407488 (2038 MB) avail memory = 2055438336 (1960 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1