public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Freeze on FPU exception with Athlon
@ 2000-11-18  1:40 Markus Schoder
  2000-11-18  3:48 ` Linus Torvalds
  2000-11-18  4:10 ` Linus Torvalds
  0 siblings, 2 replies; 23+ messages in thread
From: Markus Schoder @ 2000-11-18  1:40 UTC (permalink / raw)
  To: linux-kernel

The following small program (linked against glibc
2.1.3) reliably
freezes my system (Athlon Thunderbird CPU) with at
least kernels
2.4.0-test10 and 2.4.0-test11-pre5.  Even the SysRq
keys do not work
after the freeze.

Older kernels (e.g. 2.3.40) seem to work.  Any Ideas?

---------------------------------------

#define _GNU_SOURCE

#include <fenv.h>
#include <unistd.h>

int
main(void)
{
  double a;
  fesetenv(FE_NOMASK_ENV);
  a = 1.0 / 0.0;
  sleep(10);
  return a;
}

---------------------------------------

--
Markus



__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Gratis zum Millionär! - http://10millionenspiel.yahoo.de
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: Freeze on FPU exception with Athlon
@ 2000-11-18 18:22 Markus Schoder
  2000-11-18 18:33 ` Udo A. Steinberg
                   ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: Markus Schoder @ 2000-11-18 18:22 UTC (permalink / raw)
  To: Linus Torvalds, Brian Gerst; +Cc: linux-kernel


--- Linus Torvalds <torvalds@transmeta.com> wrote: > 

> If I'm right, the proper test-program should be
> something like
> 

Your test program is indeed sufficient to trigger the
freeze.  Unfortunately the patch does not make a
difference :(

My test program caused the exception (and the freeze)
unintendedly in the return statement since the
division was optimized away as Brian pointed out.

Some more data points:

SysRq is definitely not working after the freeze :(
Judging from the processor temperature after rebooting
the processor is very busy.

I know of another guy with the exact same CPU (Athlon
Thunderbird 900MHz) and mainboard (ABIT KT7-RAID) who
has the same problem.

I use gcc 2.95.2 to compile the kernel.

I couldn't so far find out where the problem was
introduced since the older 2.4.0-test kernels do not
support the HPT370.  I will recable the drive to the
primary controller and try again.

I will also try to compile a non AMD specific kernel
and see if that makes a difference.  If just this 40GB
drive would fsck faster :)

Note that cpuinfo shows model 4 whereas e.g. Brian had
model 2 if that means anything.

/proc/cpuinfo:
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 4
model name      : AMD Athlon(tm) Processor
stepping        : 2
cpu MHz         : 900.000063
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
features        : fpu vme de pse tsc msr pae mce cx8
sep mtrr pge mca cmov pat pse36 mmx fxsr syscall
mmxext 3dnowext 3dnow
bogomips        : 1795.69


--
Markus


__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Gratis zum Millionär! - http://10millionenspiel.yahoo.de
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: Freeze on FPU exception with Athlon
@ 2000-11-18 19:06 Markus Schoder
  2000-11-19 14:53 ` Brian Gerst
  2000-11-20  1:10 ` Horst von Brand
  0 siblings, 2 replies; 23+ messages in thread
From: Markus Schoder @ 2000-11-18 19:06 UTC (permalink / raw)
  To: Linus Torvalds, adrian; +Cc: Alan Cox, Udo A. Steinberg, Linux Kernel


--- Linus Torvalds <torvalds@transmeta.com> schrieb: >

> 
> On Sat, 18 Nov 2000, adrian wrote:
> 
> > 
> > 
> > On Sat, 18 Nov 2000, Linus Torvalds wrote:
> > 
> > > There's almost certainly more than that. I'd
> love to have a report on my
> > > asm-only version, but even so I suspect it also
> requires the 3dnow stuff,
> > 
> > I tried all three versions, and no freezes.  I
> forgot to mention the tests
> > were run on a model 2 Athlon (original slot K7,
> .18 micron).  The kernel
> > is compiled with 3dnow support.
> 
> Apparently it isn't the stepping, as we have Athlon
> model 4's both showing
> it and not showing it. The motherboard seems to be
> the only real
> difference here, which is why I like the irq13
> explanation more and more.
> 
> I've been wanting to get rid of irq13 anyway (some
> boards wire up USB
> and/or ACPI to irq13 and the fact that the FPU has
> claimed it makes those
> machines unhappy), so if the solution is to only
> check for irq13 on old
> i386 and i486sx machines and just leave it alone for
> newer CPU's, I won't
> complain.
> 
> Markus, can you make the irq13 test the first thing
> - don't worry about
> 3dnow as that seems to not be a deciding factor..
> 
> 			Linus
> 

Ok, that was it!  It's IRQ 13.  Guess I should have
tried that first.  Now everything works perfectly. 
Thanks everybody.

--
Markus

__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Gratis zum Millionär! - http://10millionenspiel.yahoo.de
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: Freeze on FPU exception with Athlon
@ 2000-11-19 17:48 Markus Schoder
  0 siblings, 0 replies; 23+ messages in thread
From: Markus Schoder @ 2000-11-19 17:48 UTC (permalink / raw)
  To: Brian Gerst; +Cc: Linux Kernel


--- Brian Gerst <bgerst@didntduck.org> wrote: 
> > Ok, that was it!  It's IRQ 13.  Guess I should
have
> > tried that first.  Now everything works perfectly.
> > Thanks everybody.
> 
> What motherboard do you have?  I can't reproduce
> this on my FIC SD11.
> 
> -- 
> 
> 				Brian Gerst

It's a ABIT KT7-100 RAID.  And I know somebody else
who has the same problem with this board.  So it seems
definitely board related.

--
Markus


__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Gratis zum Millionär! - http://10millionenspiel.yahoo.de
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: Freeze on FPU exception with Athlon
@ 2000-11-21  8:33 Aron Hsiao
  0 siblings, 0 replies; 23+ messages in thread
From: Aron Hsiao @ 2000-11-21  8:33 UTC (permalink / raw)
  To: linux-kernel


This may not be helpful (and the thread is now two days
old), but I just wanted to add that after using Mr.
Torvalds' comment-out-irq13 suggestion and Vojtech
Pavlik's "Possible critical VIA vt82c686a chip bug"
patch (Oct 26), both with 2.4.0-t10, I've successfully
had a 2.4 series uptime >48 hours for the first time
with an Athlon/KX133 setup! Whopee!

Hopefully both of these are incorporated in some way
into 2.4.0-t11? I'm about to test it out...

Thanks all... I'm just so overjoyed. *sniff*

-A. Hsiao



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2000-11-21  9:04 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-18  1:40 Freeze on FPU exception with Athlon Markus Schoder
2000-11-18  3:48 ` Linus Torvalds
2000-11-18  4:10 ` Linus Torvalds
2000-11-18  7:20   ` adrian
2000-11-18 14:53     ` Michael Meding
2000-11-18  7:48   ` Udo A. Steinberg
2000-11-18 17:17     ` Alan Cox
2000-11-18 18:03       ` Linus Torvalds
2000-11-18 18:27         ` Udo A. Steinberg
2000-11-18 18:34         ` adrian
2000-11-18 18:43           ` Linus Torvalds
2000-11-18 22:33           ` TimO
2000-11-18 14:15   ` Brian Gerst
2000-11-18 16:26     ` Linus Torvalds
  -- strict thread matches above, loose matches on Subject: below --
2000-11-18 18:22 Markus Schoder
2000-11-18 18:33 ` Udo A. Steinberg
2000-11-18 18:38 ` Linus Torvalds
2000-11-20  1:05 ` Horst von Brand
2000-11-18 19:06 Markus Schoder
2000-11-19 14:53 ` Brian Gerst
2000-11-20  1:10 ` Horst von Brand
2000-11-19 17:48 Markus Schoder
2000-11-21  8:33 Aron Hsiao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox