Re: [BUG] (regression) AMD k6-III/450 won't boot w/2.6.22-rc1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 16, 2007 at 03:22:48PM -0400, Dave Jones wrote:
 > On Wed, May 16, 2007 at 02:11:56PM -0500, Bob Tracy wrote:
 > 
 >  > flags		: fpu vme de pse tsc msr mce cx8 pge mmx syscall 3dnow k6_mtrr
 >  > bogomips	: 902.78
 >  > clflush size	: 32
 > 
 > Ah so it really does think it has mce.
 > I just dug out the datasheet for the K6-3, and true enough, it did have MCE, however,
 > it isn't intel compatible. It has two MSRs (MCAR at 0x0, and MCTR at 0x01).
 > Then the punchline..
 > 
 > "Because the processor does not support machine check exceptions, the contents of the
 > MCAR and MCTR are only affected by the WRMSR instruction and by RESET being sampled
 > asserted (where all bits in each register are reset to 0)."
 > 
 > In short, it's useless.
 > We could clear the capability bit and pretend it isn't there, at no loss of
 > functionality, or we could revert back to doing model checks instead of cpuid flag checks.

Bob, does this patch make it boot again for you?

	Dave

Some AMD K6's advertise machine check capability, but don't actually
have an Intel compatible implementation. It also doesn't actually work,
so don't advertise it as being present.

Signed-off-by: Dave Jones <[email protected]>

diff --git a/arch/i386/kernel/cpu/amd.c b/arch/i386/kernel/cpu/amd.c
index 4fec702..3a75c5b 100644
--- a/arch/i386/kernel/cpu/amd.c
+++ b/arch/i386/kernel/cpu/amd.c
@@ -197,7 +197,14 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
 				/* placeholder for any needed mods */
 				break;
 			}
+
+			/*
+			 * Some K6's advertise MCE, but it's incompatible
+			 * to Intel style MCE, and also non-functional.
+			 */
+			clear_bit(X86_FEATURE_MCE, c->x86_capability);
 			break;
+
 		case 6: /* An Athlon/Duron */
  
 			/* Bit 15 of Athlon specific MSR 15, needs to be 0
-- 
http://www.codemonkey.org.uk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux