* [PATCH] Cleanup SEP errata workaround.
@ 2003-09-29 17:04 davej
2003-09-29 17:53 ` Linus Torvalds
0 siblings, 1 reply; 3+ messages in thread
From: davej @ 2003-09-29 17:04 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
This looks a little simpler, and has the same effect.
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/arch/i386/kernel/cpu/intel.c linux-2.5/arch/i386/kernel/cpu/intel.c
--- bk-linus/arch/i386/kernel/cpu/intel.c 2003-09-10 20:35:24.000000000 +0100
+++ linux-2.5/arch/i386/kernel/cpu/intel.c 2003-09-24 01:34:29.000000000 +0100
@@ -238,12 +269,9 @@ static void __init init_intel(struct cpu
}
/* SEP CPUID bug: Pentium Pro reports SEP but doesn't have it until model 3 mask 3 */
- if ( c->x86 == 6) {
- unsigned model_mask = (c->x86_model << 8) + c->x86_mask;
- if (model_mask < 0x0303)
- clear_bit(X86_FEATURE_SEP, c->x86_capability);
- }
-
+ if ((c->x86<<8 | c->x86_model<<4 | c->x86_mask) < 0x633)
+ clear_bit(X86_FEATURE_SEP, c->x86_capability);
+
/* Names for the Pentium II/Celeron processors
detectable only by also checking the cache size.
Dixon is NOT a Celeron. */
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Cleanup SEP errata workaround.
2003-09-29 17:04 [PATCH] Cleanup SEP errata workaround davej
@ 2003-09-29 17:53 ` Linus Torvalds
2003-09-29 17:59 ` Dave Jones
0 siblings, 1 reply; 3+ messages in thread
From: Linus Torvalds @ 2003-09-29 17:53 UTC (permalink / raw)
To: davej; +Cc: linux-kernel
On Mon, 29 Sep 2003 davej@redhat.com wrote:
>
> This looks a little simpler, and has the same effect.
Well, "almost same". Let's hope that Intel never releases an old Pentium
with SEP ;)
Applied.
Linus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Cleanup SEP errata workaround.
2003-09-29 17:53 ` Linus Torvalds
@ 2003-09-29 17:59 ` Dave Jones
0 siblings, 0 replies; 3+ messages in thread
From: Dave Jones @ 2003-09-29 17:59 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel
On Mon, Sep 29, 2003 at 10:53:45AM -0700, Linus Torvalds wrote:
>
> On Mon, 29 Sep 2003 davej@redhat.com wrote:
> >
> > This looks a little simpler, and has the same effect.
>
> Well, "almost same". Let's hope that Intel never releases an old Pentium
> with SEP ;)
8-) FWIW, Intel doc 24161823.pdf (Processor Identification & CPUID
instruction reference) section 3.4 does this check the same way as I did..
But lets worry about Intel being silly if/when they decide
to do so 8-)
Dave
--
Dave Jones http://www.codemonkey.org.uk
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-09-29 18:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-29 17:04 [PATCH] Cleanup SEP errata workaround davej
2003-09-29 17:53 ` Linus Torvalds
2003-09-29 17:59 ` Dave Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).