]> git.baikalelectronics.ru Git - kernel.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)
committerEric Anholt <eric@anholt.net>
Mon, 2 Aug 2010 02:58:57 +0000 (19:58 -0700)
commitedabe31b9b1b746cff0610f6aa43269fad2dbbbf
tree0a69cbfb66f2b30d707f24861baf3399d77c350b
parentd99c634e3ebdbd05bd1b5feff1bb0b97d5d1493c
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