public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Magnus Damm <magnus.damm@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: e820 and shared VGA memory problem
Date: Thu, 18 Nov 2004 22:20:48 +0100	[thread overview]
Message-ID: <aec7e5c304111813202f74a139@mail.gmail.com> (raw)

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

             reply	other threads:[~2004-11-18 21:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-18 21:20 Magnus Damm [this message]
2004-11-18 21:44 ` e820 and shared VGA memory problem Dave Jones
2004-11-18 21:49   ` Magnus Damm
  -- strict thread matches above, loose matches on Subject: below --
2004-11-18 21:55 Pallipadi, Venkatesh
2004-11-18 22:09 Pallipadi, Venkatesh
2004-11-18 22:11 Pallipadi, Venkatesh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aec7e5c304111813202f74a139@mail.gmail.com \
    --to=magnus.damm@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox