From owner-freebsd-current@FreeBSD.ORG Mon Apr 11 18:44:07 2011 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BB36106566B for ; Mon, 11 Apr 2011 18:44:07 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id C04488FC0A for ; Mon, 11 Apr 2011 18:44:06 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id VAA03364 for ; Mon, 11 Apr 2011 21:44:05 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4DA34BF4.9010107@FreeBSD.org> Date: Mon, 11 Apr 2011 21:44:04 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110309 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-current@FreeBSD.org X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: amd family 15h topology 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: Mon, 11 Apr 2011 18:44:07 -0000 Here is a patch that should prepare us for AMD Bulldozer CPUs: http://people.freebsd.org/~avg/amd-f15h-topo.diff The patch should not affect pre-10h systems at all, on 10h systems the new code path should be taken, but the result should be the same as the legacy method. P.S. I think that the legacy method will keep working with Bulldozer, but I am not completely sure. Anyway, I hope to find some time to improve our topology detection code so that it doesn't assume uniformity and also takes into account cache topology. And then this change will be more useful. -- Andriy Gapon