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 <davej@redhat.com> 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 -
git: | |
| Linus Torvalds | irc usage.. |
| Petko Manolov | git and binary files |
| Ken Pratt | pack operation is thrashing my server |
| Daniel Barkalow | Re: Call Me Gitless |
| Carsten Otte | Re: [PATCH 00/10] AXFS: Advanced XIP filesystem |
| David Miller | Slow DOWN, please!!! |
| Alan Cox | Re: ata_piix broken in 2.6.22 |
| Linus Torvalds | Linux 2.6.27-rc8 |
| Chris Kuethe | Re: Logging failed SSH users and the passwords they typed |
| Richard Stallman | Real men don't attack straw men |
| Leon Dippenaar | New tcp stack attack |
| nachocheeze | Re: Packets Per Second Limit? |
| Patrick McHardy | netfilter 05/29: netns ebtables: part 2 |
| Tomasz Grobelny | Re: [DCCP] [RFC] [Patchv2 1/1]: Queuing policies -- reworked version of Tomasz's p... |
| Suresh Siddha | Re: Kernel oops with 2.6.26, padlock and ipsec: probably problem with fpu state ch... |
| Eric Dumazet | [PATCH] fs: pipe/sockets/anon dentries should not have a parent |
