From owner-freebsd-smp Tue Mar 11 12:36:44 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 9F4F037B401 for ; Tue, 11 Mar 2003 12:36:42 -0800 (PST) Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF5E343F75 for ; Tue, 11 Mar 2003 12:36:41 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 431 invoked from network); 11 Mar 2003 20:36:48 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 11 Mar 2003 20:36:48 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id h2BKWshT069636; Tue, 11 Mar 2003 15:32:54 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030311203003.GA216@murmeldjur.it.su.se> Date: Tue, 11 Mar 2003 15:36:57 -0500 (EST) From: John Baldwin To: Richard Nyberg Subject: Re: hyperthreading randomness Cc: freebsd-smp@FreeBSD.org 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 On 11-Mar-2003 Richard Nyberg wrote: > On Mon, Mar 10, 2003 at 01:00:13PM -0500, John Baldwin wrote: >> >> On 08-Mar-2003 Richard Nyberg wrote: >> > I have a Dell Precision 450 with 2 xeon CPU:s. >> > The weird thing is that it randomly boots up >> > with either 2 or 4 CPUs on the same 4-STABLE kernel. >> > 2 more often than 4. It seems a bit unpredictable :( >> >> Hmm, I have no idea about that one. Hmm, it seems to be a >> "feature" of the BIOS perhaps. It seems that it may be listing >> the second CPU with an APIC ID of 3 (it's second core) instead >> of 2 (it's first core) in which case the HTT code sees that >> something is not right and doesn't start up any extra processors. >> > This patch works for me ;) It allows the physical CPUs APIC ID to > be either the lowest (as is currently assumed) or the highest > number in the range of APIC IDs for the logical cores. I'm not sure it's entirely safe since it doesn't verify that you are at the top of a boundary when it looks downwards. Really though, the current stuff is more of a quick hack to get it mostly working for now. When the ACPI stuff gets done it won't really matter anymore. I'd like to keep the current hack very conservative since I'm making assumptions that I am not completely sure I am allowed to make and I'd like to keep the number and scope of such assumptions as small as possible. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message