From owner-freebsd-questions Tue Jul 2 5:45:14 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DFD3137B405 for ; Tue, 2 Jul 2002 05:45:07 -0700 (PDT) Received: from mailb.telia.com (mailb.telia.com [194.22.194.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A2BF43E35 for ; Tue, 2 Jul 2002 05:45:06 -0700 (PDT) (envelope-from erikt@midgard.homeip.net) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailb.telia.com (8.11.6/8.11.6) with ESMTP id g62Cj4I17418 for ; Tue, 2 Jul 2002 14:45:04 +0200 (CEST) Received: from falcon.midgard.homeip.net (h53n2fls20o913.telia.com [212.181.163.53]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id OAA15845 for ; Tue, 2 Jul 2002 14:45:02 +0200 (CEST) Received: (qmail 35246 invoked by uid 1001); 2 Jul 2002 12:45:01 -0000 Date: Tue, 2 Jul 2002 14:45:01 +0200 From: Erik Trulsson To: Paulo Roberto Cc: Aaron Burke , FreeBSD-Questions Subject: Re: kernel - pentium FDIV bug corrected? Message-ID: <20020702124501.GA35222@falcon.midgard.homeip.net> Mail-Followup-To: Paulo Roberto , Aaron Burke , FreeBSD-Questions References: <20020702061857.GA29547@falcon.midgard.homeip.net> <20020702123343.23356.qmail@web14911.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020702123343.23356.qmail@web14911.mail.yahoo.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Jul 02, 2002 at 05:33:43AM -0700, Paulo Roberto wrote: > --- Erik Trulsson wrote: > > On Mon, Jul 01, 2002 at 10:52:53PM -0700, Aaron Burke wrote: > > > There is a kernel config option that takes care of it. Also, the > > > problem affected more than just the pentium. > > > > > > But check out /sys/i386/conf/LINT for the "NO_F00F_HACK" option. > > > > The F00F bug is not the same as the FDIV bug. Also the FDIV bug > > affected only the earliest Pentiums (I think it was only the 60 and > > 66 > > MHz versions) while the F00F bug affected all Pentiums and > > Pentium/MMX. > > Wow. So there is one more bug I was not aware of? Is it also related to > math operations? Not math related. It is a certain instruction (whose opcode starts with f00f, hence the name) that can lock up the machine if it is executed. This instruction should never be generated by any compiler so if you ever encounter it, it is due to a buggy or malicious program. > > I got a few boxes and I am planning in compiling one kernel for all of > them (same sort of hardware). Can I enable this "NO_FOOF_HACK" and use > this kernel with a machine that has a cpu that possibly do not have > this bug? The "NO_F00F_HACK" (zeroes, not "o"'s) option actually disables the workaround which is turned on by default. It is recommended but not necessary that this option be used to *turn off* the workaround on machines that do *not* suffer from this bug. (AFAIK it is Pentiums and only Pentiums that have the bug.) > > > One possible workaround could be to use the emulator instead of the > > hardware FPU. Check the [GPL_]MATH_EMULATE option and the npx device > > in LINT. Note that this will cause all floating point operations to > > go > > slower so it might not be an acceptable solution. > > I will try that. > > > If you really have a machine with the FDIV bug, I would actually > > suggest you replace the machine, or at least the CPU. It can't be > > that > > expensive. > > The problem is that it would have to change the cpu in seven machines, > and probably the motherboards as well. That might be a bit more trouble and money than it is worth, yes. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message