Freeze on FPU exception with Athlon
--- Linus Torvalds <[email protected]> wrote: >
Quoted 3 lines
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 : 0vendor_id : AuthenticAMD
cpu family : 6
model : 4
model name : AMD Athlon(tm) Processor
stepping : 2
cpu MHz : 900.000063
cache size : 256 KBfdiv_bug : nohlt_bug : nof00f_bug : nocoma_bug : no
fpu : yesfpu_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 [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 3 lines · Markus Schoder
My test program caused the exception (and the freeze) unintendedly in the return statement since the division was optimized away as Brian pointed out.
It's quite strange that I cannot seem to trigger the problem here on my machine.
Quoted 5 lines
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.
Makes me wonder whether it could be an issue with your board (I have an Asus A7V) or with gcc 2.95-2 (I use egcs-1.1.2).
Quoted 2 lines
Note that cpuinfo shows model 4 whereas e.g. Brian had model 2 if that means anything.
Mine is a model 4 also, so if it's related to that, I should probably see the problem here as well.
/proc/cpuinfo
processor : 0vendor_id : AuthenticAMD
cpu family : 6
model : 4
model name : AMD Athlon(tm) Processor
stepping : 2
cpu MHz : 807.000213
cache size : 256 KBfdiv_bug : nohlt_bug : nof00f_bug : nocoma_bug : no
fpu : yesfpu_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 : 1608.91
-Udo.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 4 lines · Markus Schoder
Your test program is indeed sufficient to trigger the freeze. Unfortunately the patch does not make a difference :(
Ok.
This may in fact be an Athlon CPU bug. But before we contact anybody from AMD, I'd really need to know what the result from the irq13 disabling and the non-3dnow thing is.
Considering that Udo reports no lockup at all with the same test-program even with an Athlon and 3dnow, it looks like it's either irq13 (and a motherboard routing issue: sane modern motherboards shouldn't even route the external FERR at _all_ any more), or something stepping-specific on your Athlon. It doesn't sound kernel-related per se.
Let's hope it's irq13. If so, it will be easy to fix (tentative fix: any CPU that reports a built-in FPU just doesn't get irq13 enabled at all).
Current workign theory:
- Athlons do FERR wrong. They drive FERR externally when the unmasked exception happens, rather than when the next FP instruction actually detects the exception. This means that the external FERR irq13 actually happens _before_ the internal exception 16, which is wrong.
- Linux has seen exception 16 working, so it ignores irq13 and assumes that it's some real external device (which does happen - sometimes SCI is wired to irq13).
- irq13 is not only wired on the motherboard (which was right in 1989, but is not right in 2000), but is marked level-triggered (which probably wasn't right even in 1989). So when the irq13 happens, it _keeps_ on happening, and we never get an exception 16 at all.
The reason 2.2.x works on your machine might be that the early bootup test for FP exceptions will have done something to mask the fpu exception just by luck. I forget the exact details of the test - it got removed in later kernels because it made it really nasty to handle XMM faults correctly.
Does anybody have any better ideas?
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
=?iso-8859-1?q?Markus=20Schoder?= <[email protected]> said:
[...]
Quoted 3 lines
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 :)
mount -o remount,ro [...]
Signature · 6 lines
Horst von Brand [email protected] Casilla 9G, Vin~a del Mar, Chile +56 32 672616 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/