From: Zhenyu Wang Date: Tue, 11 Sep 2007 22:23:57 +0000 (-0700) Subject: intel_agp: fix stolen mem range on G33 X-Git-Tag: v2.6.23-rc7~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f443675affe3f16dd428e46f0f7fd3f4d703eeab;p=platform%2Fkernel%2Flinux-stable.git 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 Acked-by: Dave Airlie Cc: Dave Jones Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c index 2c9ca2c..581f922 100644 --- a/drivers/char/agp/intel-agp.c +++ b/drivers/char/agp/intel-agp.c @@ -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);