summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2007-09-05 14:52:56 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2007-09-05 14:52:56 +0800
commit2a8592f2ebcba86b1127aa889155d58a3dc186ca (patch)
tree3733d2fa0ab56f2e29dfc30cb4cce37e35979d27
parent7fd9a98178cdebda4213796fdc452a8a265a1197 (diff)
Fix G33 GTT stolen mem range
G33 GTT table lives in seperate stolen mem with graphics data stolen mem.
-rw-r--r--src/i830_driver.c3
1 files changed, 3 insertions, 0 deletions
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);