Re: MTRR patch v1.10

David Wragg (dpw@doc.ic.ac.uk)
Sun, 19 Apr 1998 03:35:53 +0100


Richard Gooch <Richard.Gooch@atnf.CSIRO.AU> writes:
> Changes since v1.9:
>
> - Support for fixed MTRRs
> Thanks to David Wragg <dpw@doc.ic.ac.uk>
>
> - Better implementation of synchronisation of MTRRs across CPUs
> Thanks to David Wragg <dpw@doc.ic.ac.uk>
>
> Could people please give this a thorough testing. I plan on submitting
> this to Linus soon. I'm hoping that all people experiencing lockups
> with SMP machines (such as the GigaByte boards) will find the problems
> are fixed.

Also thanks to me was a bug causing misleading warnings on SMP in many
cases. They're harmless though.

Here's the fix, apply after mtrr-patch-1.10.gz

diff -ru linux-2.1.96.mtrr/arch/i386/kernel/mtrr.c linux-2.1.96.mod/arch/i386/kernel/mtrr.c
--- linux-2.1.96.mtrr/arch/i386/kernel/mtrr.c Sun Apr 19 02:51:24 1998
+++ linux-2.1.96.mod/arch/i386/kernel/mtrr.c Sun Apr 19 02:55:36 1998
@@ -351,7 +351,7 @@
changed = TRUE;
}

- rdmsr(MTRRphysBase_MSR(index), lo, hi);
+ rdmsr(MTRRphysMask_MSR(index), lo, hi);

if ((vr->mask_lo & 0xfffff800UL) != (lo & 0xfffff800UL)
|| (vr->mask_hi & 0xfUL) != (hi & 0xfUL)) {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu