From 2a8592f2ebcba86b1127aa889155d58a3dc186ca Mon Sep 17 00:00:00 2001 From: Zhenyu Wang Date: Wed, 5 Sep 2007 14:52:56 +0800 Subject: [PATCH] Fix G33 GTT stolen mem range G33 GTT table lives in seperate stolen mem with graphics data stolen mem. --- src/i830_driver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/i830_driver.c b/src/i830_driver.c index 9fa231df..983be769 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -483,6 +483,9 @@ I830DetectMemory(ScrnInfoPtr pScrn) range = gtt_size + 4; if (IS_I85X(pI830) || IS_I865G(pI830) || IS_I9XX(pI830)) { + /* G33 has seperate GTT stolen mem */ + if (IS_G33CLASS(pI830)) + range = 0; switch (gmch_ctrl & I830_GMCH_GMS_MASK) { case I855_GMCH_GMS_STOLEN_1M: memsize = MB(1) - KB(range);