]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: Reject bind_to_gtt() early if object > aperture
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 27 May 2010 12:18:21 +0000 (13:18 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:15:45 +0000 (11:15 -0700)
commitb2d17f0dfb4b4f6e961823b45e18442851304760
tree87ebf33dee7eb9c907845ab4c4c2e29539f94dc1
parentecd352f07d6321ef166c08ddf050751836b4f4f4
drm/i915: Reject bind_to_gtt() early if object > aperture

commit 654fc6073f68efa3b6c466825749e73e7fbb92cd upstream.

If the object is bigger than the entire aperture, reject it early
before evicting everything in a vain attempt to find space.

v2: Use E2BIG as suggested by Owain G. Ainsworth.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/i915_gem.c