CVSROOT:        /cvs
Module name:    src
Changes by:     dera...@cvs.openbsd.org 2013/12/19 14:30:02

Modified files:
        sys/sys        : memrange.h 
        sys/arch/i386/conf: GENERIC files.i386 
        sys/arch/i386/i386: acpi_machdep.c cpu.c ipifuncs.c mem.c mtrr.c 
        sys/arch/amd64/amd64: acpi_machdep.c cpu.c ipifuncs.c mem.c 
                              mtrr.c 
        sys/arch/amd64/conf: GENERIC files.amd64 

Log message:
Mtrr stops being a pseudo-device.  We need to probe the cpu type and
initialize the structures when we see the first cpu.  We also need to
initialize each cpu's properly (for PAT) before we setup mtrr on that
cpu.  On i386 (late hatch) we were getting this desperately wrong on
the primary cpu.

After suspend/resume, we also need to do the same work.  re-initialize
PAT before mtrr.  On some laptops apparently PAT was not turned on by the
BIOS, so we ended up with incorrect setup for the primary cpu.  Oops.

This makes mplayer on the x201 (and similar) machines work without weird
pauses after a suspend/resume.  Many other things are likely fixed.
ok kettenis

Reply via email to