intel_agp: fix stolen mem range on G33

G33 GTT stolen memory is below graphics data stolen memory and be seperate,
so don't subtract it in stolen mem counting.

Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com>
Acked-by: Dave Airlie <airlied@linux.ie>
Cc: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Zhenyu Wang 2007-09-11 15:23:57 -07:00 committed by Linus Torvalds
parent e845498e4c
commit f443675aff
1 changed files with 5 additions and 0 deletions

View File

@ -506,6 +506,11 @@ static void intel_i830_init_gtt_entries(void)
break;
}
} else {
/* G33's GTT stolen memory is separate from gfx data
* stolen memory.
*/
if (IS_G33)
size = 0;
switch (gmch_ctrl & I830_GMCH_GMS_MASK) {
case I855_GMCH_GMS_STOLEN_1M:
gtt_entries = MB(1) - KB(size);