e820 and shared VGA memory problem

From: Magnus Damm
Date: Thu Nov 18 2004 - 16:28:18 EST


Heya,

The machine is a Uniwill 223II0 equipped with 2GiB RAM and BIOS
1.03US. The graphics are 855GM, aka "Intel Extreme Graphics 2", ie a
chunk of system RAM is used as graphics memory. The BIOS does not
allow me to setup the amount of VGA RAM.

I am running a vanilla 2.6.9-kernel configured with highmem enabled.

The problem is that the machine is slow as hell if the kernel is
booted without limiting the amount of system ram with the command line
option "ram=xM". And by that I mean that executing user space programs
is _extremely_ slow - I've never taken the time to go through the
rc-scripts.

If I limit down the memory passed to the kernel to 2017M, the
performance is better but still not good. If I limit the amount of RAM
to 2016M everything is fine and dandy.

Funny enough, 2016M is the same as 2048 - 32 MiB. And the log of Xorg say:
..
(==) I810(0): VideoRAM: 32768 kByte
..

The "changelog" for the BIOS between 1.02 and 1.03 say:
..
2-1. VGA default share memory change from 8MB to 16MB
..

And the CMOS setup thinks that the amount of system memory is 2032MB.

This is the e820 output from the kernel when I limit to 2016 MiB.
..
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000007efd0000 (usable)
BIOS-e820: 000000007efd0000 - 000000007efdf000 (ACPI data)
BIOS-e820: 000000007efdf000 - 000000007f000000 (ACPI NVS)
user-defined physical RAM map:
user: 0000000000000000 - 000000000009fc00 (usable)
user: 000000000009fc00 - 00000000000a0000 (reserved)
user: 00000000000e0000 - 0000000000100000 (reserved)
user: 0000000000100000 - 000000007e000000 (usable)
1120MB HIGHMEM available.
896MB LOWMEM available.
...

So, the CMOS setup, the BIOS changelog, the e820 data all seem to
think that 16 MiB are used as VGA RAM. But I suspect that the extreme
slowdowns are because 32 MiB VGA RAM is used. Any ideas? Is the BIOS
funky, or are we doing something wrong in the kernel?

Thanks!

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