Skip to content

Commit

Permalink
[AGP] intel_agp: extra stolen mem size available for IGD_GM chipset
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhenyu Wang authored and Dave Airlie committed Jun 19, 2008
1 parent 9516b03 commit 598d144
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/char/agp/intel-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,13 +567,13 @@ static void intel_i830_init_gtt_entries(void)
gtt_entries = 0;
break;
case G33_GMCH_GMS_STOLEN_128M:
if (IS_G33)
if (IS_G33 || IS_I965)
gtt_entries = MB(128) - KB(size);
else
gtt_entries = 0;
break;
case G33_GMCH_GMS_STOLEN_256M:
if (IS_G33)
if (IS_G33 || IS_I965)
gtt_entries = MB(256) - KB(size);
else
gtt_entries = 0;
Expand Down

0 comments on commit 598d144

Please sign in to comment.