From owner-freebsd-stable@FreeBSD.ORG Fri Aug 27 22:46:20 2010 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6659D10656A7; Fri, 27 Aug 2010 22:46:20 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 7EBF38FC16; Fri, 27 Aug 2010 22:46:19 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id BAA25731; Sat, 28 Aug 2010 01:46:17 +0300 (EEST) (envelope-from avg@icyb.net.ua) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1Op7gf-0003ZW-7S; Sat, 28 Aug 2010 01:46:17 +0300 Message-ID: <4C784038.4070305@icyb.net.ua> Date: Sat, 28 Aug 2010 01:46:16 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.8) Gecko/20100822 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: Jung-uk Kim References: <201007141414.o6EEEUx9014690@lurza.secnetix.de> <201008271743.29393.jkim@FreeBSD.org> <4C7835E6.6070309@icyb.net.ua> <201008271833.42133.jkim@FreeBSD.org> In-Reply-To: <201008271833.42133.jkim@FreeBSD.org> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@FreeBSD.org Subject: Re: 8.1-PRERELEASE: CPU packages not detected correctly X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 22:46:20 -0000 on 28/08/2010 01:33 Jung-uk Kim said the following: > If you are really up to this, it has to be a two-pass process. Even > then, the dmesg won't be pretty because the topology can only be > "announced" after all APs have been started. I mean, nobody's going > to like to see a message like this from dmesg output: > > ... > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > > --- >8 --- Snip several hundred lines! --- >8 --- > > SMP: AP CPU #1 Launched! > FreeBSD/SMP: 1 package(s) x 2 core(s) > Root mount waiting for: usbus5 usbus2 > Root mount waiting for: usbus5 usbus2 > ... > > In fact, I implemented something like that while I was writing the > patch but I discarded it for an obvious reason. ;-) Well, I was just going to write that I would still keep the assumption that physical packages are identical :-) Not nice, but messing with APs I don't want :) > Also, don't forget jhb's work based on ACPI affinity tables. Not sure how they are applicable here. -- Andriy Gapon