From owner-freebsd-smp Tue Feb 4 17:59:27 2003 Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B35737B406; Tue, 4 Feb 2003 17:59:25 -0800 (PST) Received: from humphrey.dyndns.org (12-230-212-231.client.attbi.com [12.230.212.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id F037543F93; Tue, 4 Feb 2003 17:59:20 -0800 (PST) (envelope-from brendy33@attbi.com) Received: from bigboot.humphrey.world (unknown [192.168.8.3]) by humphrey.dyndns.org (Postfix) with ESMTP id 6906643A25B; Tue, 4 Feb 2003 18:52:15 -0800 (PST) Content-Type: text/plain; charset="iso-8859-1" From: Brendon and Wendy To: John Baldwin Subject: Re: mp_machdep.c patch Date: Tue, 4 Feb 2003 17:59:23 -0800 User-Agent: KMail/1.4.3 References: In-Reply-To: Cc: freebsd-smp@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200302041759.23937.brendy33@attbi.com> Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Yep, the apic ids are the same with/without the htt patch. When you say "is a problem with your motherboard" do you mean a physical=20 design flaw, a fault or a BIOS issue? It does run HTT under linux and win= XP.=20 I dont have either of those OSes on the machine right now, so I cant dump= the=20 diagnostic info. Linux did need the ACPI SMP information to find the=20 extra "cores". Thanks for the reply. Brendon On Tuesday 04 February 2003 11:28 am, you wrote: > On 04-Feb-2003 Brendon and Wendy wrote: > > Hi, > > > > Saw the announce for the mp_machdep.c patch for hyperthreading. > > Installed, built kernel and world. Everything seems fine. > > > > Question - how does one determine whether the hyperthreading working?= My > > DMESG is below, as well as output from top. Booting with HTT disabled > > looks the same to me. > > > > This is on a supermicro p4dce+ (i860) with 2x HTT 2.0G xeons. > > > > Cheers, > > Brendon > > > > Copyright (c) 1992-2003 The FreeBSD Project. > > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1= 994 > > The Regents of the University of California. All rightands > > reserved. FreeBSD 4.7-STABLE #2: Mon Feb 3 18:35:10 PST 2003 > > root@bigboot.humphrey.world:/usr/obj/usr/src/sys/BRENDY-STABLE > > Timecounter "i8254" frequency 1193182 Hz > > CPU: Intel(R) XEON(TM) CPU 2.00GHz (1982.52-MHz 686-class CPU) > > Origin =3D "GenuineIntel" Id =3D 0xf24 Stepping =3D 4 > > > > Features=3D0x3febfbff >MCA,CMOV,PAT,PSE36,CLFLUS H,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM> > > Hyperthreading: 2 logical CPUs > > real memory =3D 536805376 (524224K bytes) > > avail memory =3D 517742592 (505608K bytes) > > Programming 24 pins in IOAPIC #0 > > IOAPIC #0 intpin 2 -> irq 0 > > FreeBSD/SMP: Multiprocessor motherboard > > cpu0 (BSP): apic id: 0, version: 0x00050014, at 0xfee00000 > > cpu1 (AP): apic id: 1, version: 0x00050014, at 0xfee00000 > > io0 (APIC): apic id: 2, version: 0x00178020, at 0xfec00000 > > This set of APIC ID's is very odd and is your problem. :( Is your > AP on apic id 1 when you booted up prior to having the HTT support? > My guess is that it is. According to Intel, when you have HTT cores, > the APIC ID's of the cores in a physical processor are sequential. > The typical SMP + HTT setup I've seen is a physical cpu at ID 0 > with it's 2nd core at ID 1 and the 2nd physical cpu at ID 6 with > it's 2nd core at ID 7. The HTT core enumeration code assumes that > this is the case, and if it finds that any of the APIC ID's that > should be HTT cores are already in use by another physical CPU, it > doesn't turn on any of the HTT cores because it has no way of > talking to them. :) > > My guess is that this is a problem with your motherboard. You still > have SMP, but it is just with one core per processor. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message