From owner-freebsd-current@FreeBSD.ORG Thu Aug 30 07:19:33 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 626C416A41A for ; Thu, 30 Aug 2007 07:19:33 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id 13B5C13C465 for ; Thu, 30 Aug 2007 07:19:33 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (localhost [127.0.0.1]) by blah.sun-fish.com (Postfix) with ESMTP id 9312D1B10F18; Thu, 30 Aug 2007 09:19:31 +0200 (CEST) Received: from hater.cmotd.com (hater.cmotd.com [192.168.3.125]) by blah.sun-fish.com (Postfix) with ESMTP id 860311B10F14; Thu, 30 Aug 2007 09:19:31 +0200 (CEST) Message-ID: <46D66F83.2050208@moneybookers.com> Date: Thu, 30 Aug 2007 10:19:31 +0300 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.4pre (X11/20070711) MIME-Version: 1.0 To: Roman Divacky References: <-3502020561049594852@unknownmsgid> <20070829191310.GA50909@freebsd.org> In-Reply-To: <20070829191310.GA50909@freebsd.org> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP on BLAH Cc: pluknet , current@freebsd.org, Bj?rn K?nig Subject: Re: Adding k9 and k10 to bsd.cpu.mk 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, 30 Aug 2007 07:19:33 -0000 Hi all, Roman Divacky wrote: > On Wed, Aug 29, 2007 at 11:03:30PM +0400, pluknet wrote: > >> On 29/08/2007, Bj?rn K?nig wrote: >> >>> Hello, >>> >>> what do you think about adding the CPU types "k9" and "k10"? These >>> processors have support for SSE3 and I noticed up to 15% faster execution >>> of CPU-intensive programs (e.g. graphics/povray) that have been compiled >>> using -march=athlon-mp -msse3. >>> >>> Regards >>> Bj?rn >>> >>> >> there will be no k9. k10 (Barcelona) is successor of k8 and expected >> to launch late in Q4 of this year(2007). >> > > I dont think the name matters THAT MUCH, the important thing is to support > the newer CPUs with FreeBSD infrastructure... name it "blahblah" if you wish > Why not to use the same name that GCC use for those processors. If we use different names then gcc, it will make things little more complicated, and I do not see why we have to do this. Also for processor names we have references to gcc manual. From /usr/share/mk/bsd.cpu.mk : ############################################################################### # Logic to set up correct gcc optimization flag. This must be included # after /etc/make.conf so it can react to the local value of CPUTYPE # defined therein. Consult: # http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html # http://gcc.gnu.org/onlinedocs/gcc/IA-64-Options.html # http://gcc.gnu.org/onlinedocs/gcc/RS-6000-and-PowerPC-Options.html # http://gcc.gnu.org/onlinedocs/gcc/SPARC-Options.html # http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86-64-Options.html And suggested by GCC the CPU types are: k8-sse3, opteron-sse3, athlon64-sse3 Improved versions of k8, opteron and athlon64 with SSE3 instruction set support. amdfam10, barcelona AMD Family 10h core based CPUs with x86-64 instruction set support. (This supersets MMX, SSE, SSE2, SSE3, SSE4A, 3dNOW!, enhanced 3dNOW!, ABM and 64-bit instruction set extensions.) P.S. The working link is - http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options Someone is willing to fill PR? :) > my 2 cents > roman > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > -- Best Wishes, Stefan Lambrev ICQ# 24134177