Info on Athlon/Duron failure as requested
See attachment for info requested.
Gordon Sadler
From: [email protected] (Gordon Sadler)
Subject: Re: Athlon runtime problems
In-Reply-To: <[email protected]>
Reply-To: [email protected]
Review
Quoted 5 lines · Alan Cox
Can the folks who are seeing crashes running athlon optimised kernels all mail
me(quoted diff) +0
-1- CPU model/stepping
$ cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 6 model : 3 model name : AMD Duron(tm) Processor stepping : 1 cpu MHz : 801.828 cache size : 64 KB fdiv_bug : no hlt_bug : no sep_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 psn mmxext mmx fxsr 3dnowext 3dnow bogomips : 1599.07
Review
Quoted 1 line
(quoted diff) +0
-1- Chipset
VIA KT133A AGPset (KT133A+VT82C686B)
Review
Quoted 1 line
(quoted diff) +0
-1- Amount of RAM
128 MB
Review
Quoted 1 line
(quoted diff) +0
-1- /proc/mtrr output
$ cat /proc/mtrr reg00: base=0x00000000 ( 0MB), size= 128MB: write-back, count=1
Review
Quoted 1 line
(quoted diff) +0
-1- compiler used
$gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs gcc version 2.95.4 20010319 (Debian prerelease)
Idea for Athlon/Duron failure testing...
Hi,
Do you think it would be a good idea to check the fast_copy
athlon mmx routine by putting in code that basically compares the source & destination copies and checks if they are equal? I realize that will slow down the system, but for testing, it seems like a good idea...
--S
Athlon/VIA Kernel Experimentation (mmx.c)
In reply to Gordon SadlerHi,
I implemented a small check loop at the end of the fast_page_copy
routine in mmx.c for the Athlon. Booting the resulting kernel yields an interesting result. Every single time, the kernel panics RIGHT AFTER it frees unused kernel memory from bootup. I encourage those of you with the same problem to try this and report when it panics.
Here is my patch to mmx.c: (sorry about the long lines) -----------------------------------------------------cut here diff -r linux-ref/arch/i386/lib/mmx.c linux/arch/i386/lib/mmx.c 204a205,216
Quoted 12 lines
{
register int x = 0;
/* do mem compares to ensure written == read */
for ( /* initted above */; x < (4096/sizeof(int)); x++ )
{
if ( ((int *)to)[x] != ((int *)from)[x] ) {
panic("fast_page_copy: dest value @ 0x%lx (%x) does not equal source value @ %lx (%x)!\n",
(long) to, ((int *)to)[x], (long) from, ((int *) from)[x] );
}
}
} -----------------------------------------------------cut here
Wouldn't it be correct to say that because it is panicking, the
page copy was not completed properly? If that is so, the next step is to find out why this copy is not working properly...
For me the output is:
...
Freeing unused kernel memory: 188k freed
Kernel panic: fast_page_copy: dest value @ 0xcfed1000 (39312036) does
not equal source value @ cfed4000(79005b)!
--------
It is interesting to note that these addresses are page aligned, meaning that the copy of even
the first byte failed!
--Seth
Re: Athlon/VIA Kernel Experimentation (mmx.c)
Quoted 8 lines
is to find out why this copy is not working properly...
For me the output is:
...
Freeing unused kernel memory: 188k freedKernel panic: fast_page_copy: dest value @ 0xcfed1000 (39312036) doesnot equal source value @ cfed4000(79005b)!
Swap the panic for a printk/BUG() and see who the caller was
Re: Athlon/VIA Kernel Experimentation (mmx.c)
In reply to Gordon SadlerQuoted 26 lines · Seth Goldberg
Hi,
I implemented a small check loop at the end of the
fast_page_copy
routine inmmx.cfor the Athlon. Booting the resulting kernel yields an interesting result. Every single time, the kernel panics RIGHT AFTER it frees unused kernel memory from bootup. I encourage those of you with the same problem to try this and report when it panics.Here is my patch to
mmx.c: (sorry about the long lines) -----------------------------------------------------cut here diff -rlinux-ref/arch/i386/lib/mmx.clinux/arch/i386/lib/mmx.c204a205,216Quoted 12 lines
{ register int x = 0; /* do mem compares to ensure written == read */ for ( /* initted above */; x < (4096/sizeof(int)); x++ ) { if ( ((int *)to)[x] != ((int *)from)[x] ) { panic("fast_page_copy: dest value @ 0x%lx (%x) does not equal source value @ %lx (%x)!\n", (long) to, ((int *)to)[x], (long) from, ((int *) from)[x] ); } } }
Quoted 4 lines
-----------------------------------------------------cut here
Wouldn't it be correct to say that because it is panicking, the
page copy was not completed properly?
No, you are comparing the following two pages... from and to are incremented as the copy proceeds. Subtract PAGE_SIZE from them before comparing.
--
Brian Gerst
Re: Athlon/VIA Kernel Experimentation (mmx.c)
In reply to Gordon SadlerDoh. I feel like a moron. Thanks.. will do...
--S
Quoted 40 lines · Brian Gerst
Quoted 26 lines · Seth Goldberg
Hi,
I implemented a small check loop at the end of the
fast_page_copy
routine inmmx.cfor the Athlon. Booting the resulting kernel yields an interesting result. Every single time, the kernel panics RIGHT AFTER it frees unused kernel memory from bootup. I encourage those of you with the same problem to try this and report when it panics.Here is my patch to
mmx.c: (sorry about the long lines) -----------------------------------------------------cut here diff -rlinux-ref/arch/i386/lib/mmx.clinux/arch/i386/lib/mmx.c204a205,216Quoted 12 lines
{ register int x = 0; /* do mem compares to ensure written == read */ for ( /* initted above */; x < (4096/sizeof(int)); x++ ) { if ( ((int *)to)[x] != ((int *)from)[x] ) { panic("fast_page_copy: dest value @ 0x%lx (%x) does not equal source value @ %lx (%x)!\n", (long) to, ((int *)to)[x], (long) from, ((int *) from)[x] ); } } }Quoted 4 lines
-----------------------------------------------------cut here
Wouldn't it be correct to say that because it is panicking, the
page copy was not completed properly?No, you are comparing the following two pages... from and to are incremented as the copy proceeds. Subtract
PAGE_SIZEfrom them before comparing.--
Brian Gerst