aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/agp/intel-agp.c
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2008-06-19 00:00:37 -0400
committerDave Airlie <airlied@redhat.com>2008-06-19 00:00:37 -0400
commit598d14482380312939a3e3a4ae0657eb6b50a532 (patch)
tree7f7086167284d0ae1b449d235395718e02d0da1d /drivers/char/agp/intel-agp.c
parent9516b030b484fc99cf24213caf88df01f99248dd (diff)
[AGP] intel_agp: extra stolen mem size available for IGD_GM chipset
This adds missing stolen memory size detect for IGD_GM, be sure to detect right size as current X intel driver (2.3.2) which has already worked out. Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/char/agp/intel-agp.c')
-rw-r--r--drivers/char/agp/intel-agp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c
index 02356595ac1c..e73f8f013283 100644
--- a/drivers/char/agp/intel-agp.c
+++ b/drivers/char/agp/intel-agp.c
@@ -567,13 +567,13 @@ static void intel_i830_init_gtt_entries(void)
567 gtt_entries = 0; 567 gtt_entries = 0;
568 break; 568 break;
569 case G33_GMCH_GMS_STOLEN_128M: 569 case G33_GMCH_GMS_STOLEN_128M:
570 if (IS_G33) 570 if (IS_G33 || IS_I965)
571 gtt_entries = MB(128) - KB(size); 571 gtt_entries = MB(128) - KB(size);
572 else 572 else
573 gtt_entries = 0; 573 gtt_entries = 0;
574 break; 574 break;
575 case G33_GMCH_GMS_STOLEN_256M: 575 case G33_GMCH_GMS_STOLEN_256M:
576 if (IS_G33) 576 if (IS_G33 || IS_I965)
577 gtt_entries = MB(256) - KB(size); 577 gtt_entries = MB(256) - KB(size);
578 else 578 else
579 gtt_entries = 0; 579 gtt_entries = 0;