From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1M8ovU-0008DN-Q3 for garchives@archives.gentoo.org; Tue, 26 May 2009 05:10:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 53CA4E044A; Tue, 26 May 2009 05:10:11 +0000 (UTC) Received: from mail-ew0-f213.google.com (mail-ew0-f213.google.com [209.85.219.213]) by pigeon.gentoo.org (Postfix) with ESMTP id E9ECFE044A for ; Tue, 26 May 2009 05:10:10 +0000 (UTC) Received: by ewy9 with SMTP id 9so3195866ewy.34 for ; Mon, 25 May 2009 22:10:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=WWL6U0WGHxulTX9Wd9cr3C3Jhvo3aGnWGNrK+xEUN2c=; b=Lo9mngySzhfS3Jeqeiilg8tf3XfI5IOYCusOwcqNx659rLfl1LQX77pcOi/Q+eDcMD wt/yZsVVPOuWuyJ9bGX/Nw+QBQHFq8RwnjSsH4mnmKb9se9ZvzwXo/uF0fqzQG9JNR+0 hovQ1k1E8GWF/dGp9DJZlxV2LChF9q4H9F2ZE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=ZVb3nXDPCqFSxDzzFjWU+cBuXOH4MA4Ee5OQVuTwpNbbGdM8HT9IduZyXwu2JX5oBd HSCvplXBB/jeTAmUAJE7f4hi+wC0Ehm5eP2zOvIXayOaqpdcLCb7h+VIPaeYTuNT53xX 4oQsTFGYEBIU9ISkss9G1RrXSiLKKUBGT9TY4= Received: by 10.216.30.71 with SMTP id j49mr2749160wea.89.1243314610349; Mon, 25 May 2009 22:10:10 -0700 (PDT) Received: from energy.localnet (energy.heim10.tu-clausthal.de [139.174.197.94]) by mx.google.com with ESMTPS id 17sm9498125ewy.115.2009.05.25.22.10.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 25 May 2009 22:10:09 -0700 (PDT) From: Volker Armin Hemmann To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] USE="mmx mmxext sse sse2 ssse3 3dnow 3dnowext" Date: Tue, 26 May 2009 07:10:08 +0200 User-Agent: KMail/1.11.90 (Linux/2.6.29.3r4; KDE/4.2.87; x86_64; ; ) References: <4E38BD16-0410-4A31-839C-290364A8D735@stellar.eclipse.co.uk> <200905260637.49384.volkerarmin@googlemail.com> <195F8064-21ED-4FBB-8C2D-78F45FBAF59A@stellar.eclipse.co.uk> In-Reply-To: <195F8064-21ED-4FBB-8C2D-78F45FBAF59A@stellar.eclipse.co.uk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200905260710.08709.volkerarmin@googlemail.com> X-Archives-Salt: ce06386f-69d6-4fad-bf2c-c8baa20bfd9e X-Archives-Hash: be86717fde0aba4e5d1ad525233e6bb1 On Dienstag 26 Mai 2009, Stroller wrote: > On 26 May 2009, at 05:37, Volker Armin Hemmann wrote: > > ... > > If a package would build using say 3dnow without the cpu supporting > > it it will > > crash with an instruction error. So either it works always or never. > > Hmmmn.... so if I use it my applications might crash, but it's safe to > use? > > The mplayer ebuild is stated to be "intelligent" about ignoring these > flags if necessary, so I'm not sure that "if mplayer works, so will > everything else" is a safe conclusion. My question was exactly if it > was so - are other ebuilds also as "intelligent" as mplayer? > > > Just look at /proc/cpuinfo you find everything you need to know > > there. It > > isn't hard. In fact, it is really ,really simple. > > I'd disagree. If it were really simple, Portage would take care of it > automagically for me. It (apparently?) doesn't. portage does not take care. mplayers build has a cpu feature autodection. Different stuff. Really. > > It's kinda a pain to have to look up what's supported on each system, > and then edit make.conf accordingly. Especially as some translation is > required: Adam Carter states, 'apparently "pni" = sse3'. What else > might be this or that or something else? The suggested `grep flags / > proc/cpuinfo` shows "apic sep mtrr" amongst others, but there appears > no USE flags corresponding to those. Or are there? apic is interrupt controller. mtrr is about ram access - and supported since pentium ... 1? mmx? 2? very early. There are no flags, because that stuff really is nothing apps care about (with the exception of X and mtrr - luckily for you, that is nothing YOU have to care about). > Looks like `echo media-video/mplayer mmx mmxext sse sse2 ssse3 3dnow > 3dnowext >> /etc/portage/package.use` unless someone else is able to > be more informative. yeah, except that is bullshit no pentium can do 3dnow. Or was there a 3dnow flag in /proc/mtrr? No? Then don't even touch it. Same for ssse3. This has nothing to do with sse3. It is something completly different. And p4 never had this. Enable mmx, mmxext, sse, sse2 for everything and you are fine. Check for pni if you want sse3. Everything else is not for you. look also here: http://en.wikipedia.org/wiki/Pentium_4 as you can see:MMX, SSE, SSE2, SSE3 but sse3 only if you have 'pni' among your cpu's features.