Re: [PATCH] Typo in write allocation enabling code

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 22 Dec 1999 14:42:27 +0000 (GMT)


> There seems to be a typo in the K6-2 write allocation code which prevents
> its enabling.

I dont think that is a typo.

> if(mbytes>4092)
> mbytes=4092;
> rdmsr(0xC0000082, l, h);
> - if((l&0xFFFF0000)==0)
> + if((l&0x0000FFFF)==0)

If the MSR isnt already 0 in the non reserved bits then the BIOS has set it
up for us and we avoid touching it on the basis the BIOS knows more about
this than we do. On the K6-2 the WAELIM in WHCR is in bits 16->31. If those
are non-zero the BIOS set something.

Earlier K6-2's use the other set of code and the low bits.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/