Commit 598d1448 authored by Zhenyu Wang's avatar Zhenyu Wang Committed by Dave Airlie

[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: default avatarZhenyu Wang <zhenyu.z.wang@intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 9516b030
...@@ -567,13 +567,13 @@ static void intel_i830_init_gtt_entries(void) ...@@ -567,13 +567,13 @@ static void intel_i830_init_gtt_entries(void)
gtt_entries = 0; gtt_entries = 0;
break; break;
case G33_GMCH_GMS_STOLEN_128M: case G33_GMCH_GMS_STOLEN_128M:
if (IS_G33) if (IS_G33 || IS_I965)
gtt_entries = MB(128) - KB(size); gtt_entries = MB(128) - KB(size);
else else
gtt_entries = 0; gtt_entries = 0;
break; break;
case G33_GMCH_GMS_STOLEN_256M: case G33_GMCH_GMS_STOLEN_256M:
if (IS_G33) if (IS_G33 || IS_I965)
gtt_entries = MB(256) - KB(size); gtt_entries = MB(256) - KB(size);
else else
gtt_entries = 0; gtt_entries = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment