]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/agp/i915: trim stolen space to 32M
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 8 Jul 2010 16:22:46 +0000 (09:22 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Aug 2010 23:46:17 +0000 (16:46 -0700)
commit516125a1d2ea63a87969c2b176c5350d49397ec0
treeb0f9c8b77ad0c1986631d24276cf6253d39f8f17
parente29eaa0cccca2718836a26dba04ba68e98e42a62
drm/agp/i915: trim stolen space to 32M

commit d1d6ca73ef548748e141747e7260798327d6a2c1 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/agp/intel-gtt.c
drivers/gpu/drm/i915/i915_dma.c