public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rogier Wolff <R.E.Wolff@BitWizard.nl>
To: Andi Kleen <andi@firstfloor.org>
Cc: Rogier Wolff <R.E.Wolff@BitWizard.nl>, linux-kernel@vger.kernel.org
Subject: Re: FPU emulation broken in 2.6.28-rc8 ?
Date: Thu, 18 Dec 2008 09:19:46 +0100	[thread overview]
Message-ID: <20081218081946.GA3879@bitwizard.nl> (raw)
In-Reply-To: <20081217233357.GI25779@one.firstfloor.org>

On Thu, Dec 18, 2008 at 12:33:57AM +0100, Andi Kleen wrote:
> On Wed, Dec 17, 2008 at 11:52:21PM +0100, Rogier Wolff wrote:
> > On Wed, Dec 17, 2008 at 11:45:39PM +0100, Andi Kleen wrote:
> > > Rogier Wolff <R.E.Wolff@BitWizard.nl> writes:
> > > >> 
> > > >> I'm trying to set up a thin client, which runs on a geode, which
> > > >> apparently doesn't have a FPU.... (/proc/cpuinfo mentions the flag 
> > > >> "fpu", what does THAT mean?)
> > > 
> > > Geodes all have FPUs to my knowledge.
> > > The only FPU less x87s are 386s and special 486s (and a few emulators)
> > > 
> > > If the FPU doesn't work on the Geode something else must be broken
> > > (or your CPU is not really a Geode)
> > 
> > Although the /proc/cpuinfo file shows the FPU flag, the kernel stops
> > with "no fpu found, and math emulation not present" if I disable
> > FP emulation.... 
> 
> As I said then the problem is likely with the FPU check.
> 
> That said I don't doubt that FPU emulation might have broken
> again (that is because hardly anyone uses it), just that fixing
> it is not the real fix for your problem.

In the past, I've compiled kernels with math emulation "just in case". 
That was in that time that if my with-fpu machine would break down, I
might have to put a motherboard without FPU in there, and I liked the
prospect of being able to boot in such a case. 

So, if an FPU is present, the math emulation code should just sit 
dormant. Even when the detection then thinks that no FPU is present, 
the "illegal instruction" traps that the math emulation is based on
simply should not occur.

But even if the math emulation code is actually active, then it should 
simply work, and emulate any FPU instructions without problem. 

	Roger.

-- 
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998 **
**    Delftechpark 26 2628 XH  Delft, The Netherlands. KVK: 27239233    **
*-- BitWizard writes Linux device drivers for any device you may have! --*
Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement. 
Does it sit on the couch all day? Is it unemployed? Please be specific! 
Define 'it' and what it isn't doing. --------- Adapted from lxrbot FAQ

      reply	other threads:[~2008-12-18  8:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-17  8:56 FPU emulation broken in 2.6.28-rc8 ? Rogier Wolff
2008-12-17 20:32 ` Rogier Wolff
2008-12-17 22:45   ` Andi Kleen
2008-12-17 22:52     ` Rogier Wolff
2008-12-17 23:20       ` Jesper Juhl
2008-12-17 23:33       ` Andi Kleen
2008-12-18  8:19         ` Rogier Wolff [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081218081946.GA3879@bitwizard.nl \
    --to=r.e.wolff@bitwizard.nl \
    --cc=andi@firstfloor.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox