drm/agp/i915: trim stolen space to 32M
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 8 Jul 2010 16:22:46 +0000 (09:22 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 2 Aug 2010 02:58:57 +0000 (19:58 -0700)
commitd1d6ca73ef548748e141747e7260798327d6a2c1
tree0a69cbfb66f2b30d707f24861baf3399d77c350b
parentcda4b7d3a5b1dcbc0d8e7bad52134347798e9047
drm/agp/i915: trim stolen space to 32M

Some BIOSes will claim a large chunk of stolen space.  Unless we
reclaim it, our aperture for remapping buffer objects will be
constrained.  So clamp the stolen space to 32M and ignore the rest.

Fixes https://bugzilla.kernel.org/show_bug.cgi?id=15469 among others.

Adding the ignored stolen memory back into the general pool using the
memory hotplug code is left as an exercise for the reader.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Simon Farnsworth <simon.farnsworth@onelan.com>
Tested-by: Artem S. Tashkinov <t.artem@mailcity.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/char/agp/intel-gtt.c
drivers/gpu/drm/i915/i915_dma.c
This page took 0.025322 seconds and 5 git commands to generate.