Re: [PATCH] New: AMD K6 write allocate

Chuck Lever (cel@monkey.org)
Tue, 19 Jan 1999 01:15:53 -0500 (EST)


On Mon, 18 Jan 1999, Alexey Vyskubov wrote:

> Date: Mon, 18 Jan 1999 23:58:23 +0300 (MSK)
> From: Alexey Vyskubov <alexey@alv.stud.pu.ru>
> To: Chuck Lever <cel@monkey.org>
> Cc: linux-kernel@vger.rutgers.edu
> Subject: Re: [PATCH] New: AMD K6 write allocate
>
> Well, looks like I know where is the problem. You have 64 MB of RAM, and
> shadow RAM is enabled in BIOS setup. So Linux kernel sees just 65528k of
> memory (which is < 64Mb). When my patch tris to determine memory size in
> Mb, it gets 63. Because write allocate is enabled for 64 != 63 Mb memory,
> it tries to re-enable write allocate. Write allocate can be enabled only in
> 4Mb chunks, so it can enable write allocate only for 60Mb of memory.
>
> I can fix this, but I have two options:
>
> (1) Do not re-enable write allocate if it's already enabled for memory
> size >= memory, available for kernel (= now) - maybe with the warning
>
> (2) Try to determine physical memory size and re-enable write allocate if
> and only if it's not enabled for this memory size - maybe with warning
> about shadow memory.
>
> What to do?

perhaps your logic could check if write allocate is enabled at all. if
it's not already enabled, only then try to enable it. that would allow
Linux to use the BIOS's default setting on hardware that automatically
enables write allocate.

> P.S. Turning shadow memory off probably will fix the problem. (Write
> allocate should not be re-enabled int his case. You'll see just first
> message: "Write allocate is enabled for 64 MB of memory".) Could you try
> this for me, please?

yes, i've disabled everything marked "shadow", and turned off VGA and
System BIOS caching. no change -- it still re-enables only 60M. (i never
noticed that missing 8k before :)

- Chuck Lever

--
corporate:	<chuckl@netscape.com>
personal:	<chucklever@netscape.net> or <cel@monkey.org>

- 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/