RE: e820 and shared VGA memory problem

From: Pallipadi, Venkatesh
Date: Thu Nov 18 2004 - 17:18:55 EST




>-----Original Message-----
>From: Pallipadi, Venkatesh
>Sent: Thursday, November 18, 2004 2:09 PM
>To: 'Magnus Damm'; Dave Jones; linux-kernel@xxxxxxxxxxxxxxx
>Subject: RE: e820 and shared VGA memory problem
>
>
>
>>-----Original Message-----
>>From: linux-kernel-owner@xxxxxxxxxxxxxxx
>>[mailto:linux-kernel-owner@xxxxxxxxxxxxxxx] On Behalf Of Magnus Damm
>>Sent: Thursday, November 18, 2004 1:50 PM
>>To: Dave Jones; Magnus Damm; linux-kernel@xxxxxxxxxxxxxxx
>>Subject: Re: e820 and shared VGA memory problem
>>
>>On Thu, 18 Nov 2004 16:44:31 -0500, Dave Jones
>><davej@xxxxxxxxxx> wrote:
>>> In the past such problems have been attributed to BIOS's not
>>> setting up MTRRs correctly, or in extreme situations, running
>>> out of available MTRRS. How does /proc/mtrr look ?
>>
>>reg00: base=0x00000000 ( 0MB), size=1024MB: write-back, count=1
>>reg01: base=0x40000000 (1024MB), size= 512MB: write-back, count=1
>>reg02: base=0x60000000 (1536MB), size= 256MB: write-back, count=1
>>reg03: base=0x70000000 (1792MB), size= 128MB: write-back, count=1
>>reg04: base=0x78000000 (1920MB), size= 64MB: write-back, count=1
>>reg05: base=0x7c000000 (1984MB), size= 32MB: write-back, count=1
>
>The issue is with the bad MTRR setting by BIOS.
>It only sets 0-2016MB as write-back. 2016MB-2048MB is set as
>uncached. Due to this whenever you use that memory you will
>see the slowness. Probably BIOS is assuming that Video will
>always use 32MB.
>

Oops. Probably I spoke a bit too early. Was this mtrr setting for the
working (mem=2026M) case?
Can you get mtrr for one of the non-working case.

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