From owner-freebsd-mobile@FreeBSD.ORG Wed Mar 16 00:30:39 2005 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CD1C16A4CF for ; Wed, 16 Mar 2005 00:30:39 +0000 (GMT) Received: from smtp815.mail.sc5.yahoo.com (smtp815.mail.sc5.yahoo.com [66.163.170.1]) by mx1.FreeBSD.org (Postfix) with SMTP id 9793C43D2F for ; Wed, 16 Mar 2005 00:30:38 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noacks@swbell.net@70.240.225.210 with login) by smtp815.mail.sc5.yahoo.com with SMTP; 16 Mar 2005 00:30:38 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 6953261D2; Tue, 15 Mar 2005 18:30:37 -0600 (CST) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05503-14; Tue, 15 Mar 2005 18:30:34 -0600 (CST) Received: from [127.0.0.1] (optimator [192.168.1.11]) by optimator.noacks.org (Postfix) with ESMTP id C6D846172; Tue, 15 Mar 2005 18:30:33 -0600 (CST) Message-ID: <42377E29.2080909@alumni.rice.edu> Date: Tue, 15 Mar 2005 18:30:33 -0600 From: Jon Noack User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: noackjr@alumni.rice.edu References: <422ACE0B.4060503@lumachedelcervello.cjb.net> <422B502C.6090003@chillt.de> <20050312022324.GA4899@hub.freebsd.org> <423363C4.60508@chillt.de> <20050315020930.GA14246@dragon.NUXI.org> <42373A83.6040201@alumni.rice.edu> <20050315203959.GB41996@dragon.NUXI.org> <42374EBD.6080501@alumni.rice.edu> In-Reply-To: <42374EBD.6080501@alumni.rice.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at noacks.org cc: Bartosz Fabianowski cc: freebsd-stable@freebsd.org cc: obrien@freebsd.org cc: freebsd-mobile@freebsd.org cc: Eugenio cc: freebsd-i386@freebsd.org Subject: Re: CPUTYPE=pentium-m X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 00:30:39 -0000 Jon Noack wrote: > David O'Brien wrote: >> On Tue, Mar 15, 2005 at 01:41:55PM -0600, Jon Noack wrote: >>> David O'Brien wrote: >>>> On Sat, Mar 12, 2005 at 10:48:52PM +0100, Bartosz Fabianowski wrote: >>>>>> Are you saying, all we need to do is commit this diff to make >>>>>> everyone's >>>>>> environment happy? >>>> >>>> Can you try with just -mno-sse2? I'd like to litter the compile >>>> command >>>> line as little as possible. >>> >>> I had this issue a while back with my Athlon-XP box >>> (http://lists.freebsd.org/pipermail/freebsd-current/2004-November/042127.html). >>> Note that I would get instant reboots with CPUTYPE?=athlon-xp, >>> CPUTYPE?=p3, and CPUTYPE?=p2. However, it worked fine with >>> CPUTYPE?=k6-2. I think you are right to be cautious and disable >>> anything that uses FP registers. >> >> I remember that problem but I don't know why I don't experience it, since >> I also use CPUTYPE=athlon-mp on my home desktop. I suspect the problem >> is SSE2 usage, which the Althon {X,M}P doesn't support. > > Huh. That didn't fix it for me. I manually merged the > sys/boot/i386/Makefile.inc and sys/boot/i386/boot2/Makefile changes, > added CPUTYPE?=athlon-xp, rebuilt world and kernel, and rebooted. Same > behavior. Oh crap -- I just noticed the sys/conf/kern.mk patch. > > Rebuilding kernel... Well, that didn't work either. I even rebuilt the loader with a hardcoded CPUTYPE=i686 for sys/boot/i386/Makefile.inc and sys/boot/i386/boot2/Makefile and it STILL rebooted instantly. Is it possible GCC compiled with CPUTYPE?=athlon-xp produces bad code? I guess my BIOS writer could've been on crack, but the machine is rock solid without CPUTYPE defined so I don't think it is a hardware problem. I'm willing to debug this but I need someone's hand to hold... Jon