From owner-freebsd-amd64@FreeBSD.ORG Sat May 21 07:28:07 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 300C916A4CE for ; Sat, 21 May 2005 07:28:07 +0000 (GMT) Received: from sophia3.e-shell.net (sophia3.e-shell.net [64.246.46.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB3DB43D70 for ; Sat, 21 May 2005 07:28:06 +0000 (GMT) (envelope-from loox@e-shell.net) Received: from dsl-200-95-3-8.prod-infinitum.com.mx (dsl-200-95-3-8.prod-infinitum.com.mx [200.95.3.8]) by sophia3.e-shell.net (Postfix) with ESMTP id 364FB656826 for ; Sat, 21 May 2005 02:28:03 -0500 (CDT) From: Axel Gonzalez To: freebsd-amd64@freebsd.org Date: Sat, 21 May 2005 02:28:01 -0500 User-Agent: KMail/1.8 References: <20050521022130.GW52914@afflictions.org> <20050521064120.GA51907@xor.obsecurity.org> In-Reply-To: <20050521064120.GA51907@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505210228.02509.loox@e-shell.net> Subject: Re: mplayer, amd64, and CPU flags X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 May 2005 07:28:07 -0000 I did a little research... problem seems to be in TOOLS/cpuinfo # gcc -o TOOLS/cpuinfo TOOLS/cpuinfo.c # TOOLS/cpuinfo vendor_id : model name : Unknown CPU the confugure file depends on this to determine the capabilities of the CPU, since it fails to detect the correct type, it doesn't enable the extra flags. maybe its safe to enable all flags directly on configure file (and skip the x86_exts_check function) ? (configure line 929). After all, its an amd64, it should have mmx, sse 3dnow etc. the other option is to fix the cpuinfo file :) I'll do a little more hacking tomorrow, and let you know On Saturday 21 May 2005 01:41, Kris Kennaway wrote: > On Fri, May 20, 2005 at 10:21:31PM -0400, Damian Gerow wrote: > > Does anyone know why mplayer doesn't seem to acknowledge support of any > > CPU flags like SSE, MMX, 3DNow, etc? I've done some digging, but have > > only come up with stuff from OpenBSD that didn't make a whole lot of > > sense to me, and I'm not sure how applicable it is to FreeBSD (that the > > flags aren't present in the machdep sysctl). > > > > The dmesg: > > > > CPU: AMD Opteron(tm) Processor 244 (1808.34-MHz K8-class CPU) > > > > Features=0x78bfbff >CA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> AMD > > Features=0xe0500800 > > > > The mplayer output: > > > > MPlayer 1.0pre7-3.4.2 (C) 2000-2005 MPlayer Team > > CPU: Advanced Micro Devices Opteron Sledgehammer (Family: 8, > > Stepping: 10) Detected cache-line size is 64 bytes > > MMX supported but disabled > > MMX2 supported but disabled > > SSE supported but disabled > > SSE2 supported but disabled > > 3DNow supported but disabled > > 3DNowExt supported but disabled > > CPUflags: MMX: 0 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0 > > Compiled for x86 CPU with extensions: > > > > This is with automagic CPU detection compiled in, but when I take it out, > > I still get the same thing. > > Look at what the port does..it looks like it only enables runtime > detection support on i386. Talk to the maintainer. > > Kris